{"action":"created","comment":{"url":"https://api.github.com/repos/rofl0r/twatscrape/pulls/comments/230962822","pull_request_review_id":171820809,"id":230962822,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMDk2MjgyMg==","diff_hunk":"@@ -207,18 +207,32 @@ def user_at_link(user):\n \t\treturn '<a href=\"?user=%s\">@</a>' % user\n \treturn '<a href=\"https://twitter.com/%s\">@</a>' % user\n \n+def has_profile_pic(user):\n+\tuser = user.lower()\n+\treturn os.path.isfile('users/%s/profile.jpg' % user)\n+\n def htmlize_twat(twat, vars):\n \ttw = '<div class=\"twat-container\">'\n-\n-\tif os.path.isfile('users/%s/profile.jpg' % twat['owner'].lower()):\n-\t\ttw += '<div class=\"profile_picture\"><img width=\"100%%\" height=\"100%%\" src=\"users/%s/profile.jpg\"></div>' % twat['owner'].lower()\n+\ttweet_pic = None\n+\tretweet_pic = None\n \n \tif not 'rid' in twat:\n \t\tretweet_str = \"\"\n+\t\tif has_profile_pic(twat['owner']): tweet_pic = 'users/%s/profile.jpg' % twat['owner'].lower()\n+\t\telse: tweet_pic = None","path":"twatbot.py","position":34,"original_position":19,"commit_id":"cf4c9174933eefa345ee2004d3b8b99d09b2170f","original_commit_id":"cf4c9174933eefa345ee2004d3b8b99d09b2170f","user":{"login":"rofl0r","id":341425,"node_id":"MDQ6VXNlcjM0MTQyNQ==","avatar_url":"https://avatars2.githubusercontent.com/u/341425?v=4","gravatar_id":"","url":"https://api.github.com/users/rofl0r","html_url":"https://github.com/rofl0r","followers_url":"https://api.github.com/users/rofl0r/followers","following_url":"https://api.github.com/users/rofl0r/following{/other_user}","gists_url":"https://api.github.com/users/rofl0r/gists{/gist_id}","starred_url":"https://api.github.com/users/rofl0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rofl0r/subscriptions","organizations_url":"https://api.github.com/users/rofl0r/orgs","repos_url":"https://api.github.com/users/rofl0r/repos","events_url":"https://api.github.com/users/rofl0r/events{/privacy}","received_events_url":"https://api.github.com/users/rofl0r/received_events","type":"User","site_admin":false},"body":"tweet_pic is already None","created_at":"2018-11-06T00:21:04Z","updated_at":"2018-11-06T00:21:04Z","html_url":"https://github.com/rofl0r/twatscrape/pull/28#discussion_r230962822","pull_request_url":"https://api.github.com/repos/rofl0r/twatscrape/pulls/28","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/rofl0r/twatscrape/pulls/comments/230962822"},"html":{"href":"https://github.com/rofl0r/twatscrape/pull/28#discussion_r230962822"},"pull_request":{"href":"https://api.github.com/repos/rofl0r/twatscrape/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/rofl0r/twatscrape/pulls/28","id":228515924,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4NTE1OTI0","html_url":"https://github.com/rofl0r/twatscrape/pull/28","diff_url":"https://github.com/rofl0r/twatscrape/pull/28.diff","patch_url":"https://github.com/rofl0r/twatscrape/pull/28.patch","issue_url":"https://api.github.com/repos/rofl0r/twatscrape/issues/28","number":28,"state":"open","locked":false,"title":"improvements/typo fixes + (blank) profile pic","user":{"login":"mserneels","id":18099861,"node_id":"MDQ6VXNlcjE4MDk5ODYx","avatar_url":"https://avatars0.githubusercontent.com/u/18099861?v=4","gravatar_id":"","url":"https://api.github.com/users/mserneels","html_url":"https://github.com/mserneels","followers_url":"https://api.github.com/users/mserneels/followers","following_url":"https://api.github.com/users/mserneels/following{/other_user}","gists_url":"https://api.github.com/users/mserneels/gists{/gist_id}","starred_url":"https://api.github.com/users/mserneels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mserneels/subscriptions","organizations_url":"https://api.github.com/users/mserneels/orgs","repos_url":"https://api.github.com/users/mserneels/repos","events_url":"https://api.github.com/users/mserneels/events{/privacy}","received_events_url":"https://api.github.com/users/mserneels/received_events","type":"User","site_admin":false},"body":"urls are now unshortened;\r\nsearch_terms are unquote_plus'ed whitin the search box\r\nadd timestamp when scraping handle\r\nbetter logic regarding first_run","created_at":"2018-11-05T22:40:30Z","updated_at":"2018-11-06T00:21:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"faa60de981cb3d4299e598ef5f5aabd80f18da9c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rofl0r/twatscrape/pulls/28/commits","review_comments_url":"https://api.github.com/repos/rofl0r/twatscrape/pulls/28/comments","review_comment_url":"https://api.github.com/repos/rofl0r/twatscrape/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rofl0r/twatscrape/issues/28/comments","statuses_url":"https://api.github.com/repos/rofl0r/twatscrape/statuses/cf4c9174933eefa345ee2004d3b8b99d09b2170f","head":{"label":"mserneels:fork","ref":"fork","sha":"cf4c9174933eefa345ee2004d3b8b99d09b2170f","user":{"login":"mserneels","id":18099861,"node_id":"MDQ6VXNlcjE4MDk5ODYx","avatar_url":"https://avatars0.githubusercontent.com/u/18099861?v=4","gravatar_id":"","url":"https://api.github.com/users/mserneels","html_url":"https://github.com/mserneels","followers_url":"https://api.github.com/users/mserneels/followers","following_url":"https://api.github.com/users/mserneels/following{/other_user}","gists_url":"https://api.github.com/users/mserneels/gists{/gist_id}","starred_url":"https://api.github.com/users/mserneels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mserneels/subscriptions","organizations_url":"https://api.github.com/users/mserneels/orgs","repos_url":"https://api.github.com/users/mserneels/repos","events_url":"https://api.github.com/users/mserneels/events{/privacy}","received_events_url":"https://api.github.com/users/mserneels/received_events","type":"User","site_admin":false},"repo":{"id":144001132,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQwMDExMzI=","name":"twatscrape","full_name":"mserneels/twatscrape","private":false,"owner":{"login":"mserneels","id":18099861,"node_id":"MDQ6VXNlcjE4MDk5ODYx","avatar_url":"https://avatars0.githubusercontent.com/u/18099861?v=4","gravatar_id":"","url":"https://api.github.com/users/mserneels","html_url":"https://github.com/mserneels","followers_url":"https://api.github.com/users/mserneels/followers","following_url":"https://api.github.com/users/mserneels/following{/other_user}","gists_url":"https://api.github.com/users/mserneels/gists{/gist_id}","starred_url":"https://api.github.com/users/mserneels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mserneels/subscriptions","organizations_url":"https://api.github.com/users/mserneels/orgs","repos_url":"https://api.github.com/users/mserneels/repos","events_url":"https://api.github.com/users/mserneels/events{/privacy}","received_events_url":"https://api.github.com/users/mserneels/received_events","type":"User","site_admin":false},"html_url":"https://github.com/mserneels/twatscrape","description":"because twatter sucks","fork":true,"url":"https://api.github.com/repos/mserneels/twatscrape","forks_url":"https://api.github.com/repos/mserneels/twatscrape/forks","keys_url":"https://api.github.com/repos/mserneels/twatscrape/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mserneels/twatscrape/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mserneels/twatscrape/teams","hooks_url":"https://api.github.com/repos/mserneels/twatscrape/hooks","issue_events_url":"https://api.github.com/repos/mserneels/twatscrape/issues/events{/number}","events_url":"https://api.github.com/repos/mserneels/twatscrape/events","assignees_url":"https://api.github.com/repos/mserneels/twatscrape/assignees{/user}","branches_url":"https://api.github.com/repos/mserneels/twatscrape/branches{/branch}","tags_url":"https://api.github.com/repos/mserneels/twatscrape/tags","blobs_url":"https://api.github.com/repos/mserneels/twatscrape/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mserneels/twatscrape/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mserneels/twatscrape/git/refs{/sha}","trees_url":"https://api.github.com/repos/mserneels/twatscrape/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mserneels/twatscrape/statuses/{sha}","languages_url":"https://api.github.com/repos/mserneels/twatscrape/languages","stargazers_url":"https://api.github.com/repos/mserneels/twatscrape/stargazers","contributors_url":"https://api.github.com/repos/mserneels/twatscrape/contributors","subscribers_url":"https://api.github.com/repos/mserneels/twatscrape/subscribers","subscription_url":"https://api.github.com/repos/mserneels/twatscrape/subscription","commits_url":"https://api.github.com/repos/mserneels/twatscrape/commits{/sha}","git_commits_url":"https://api.github.com/repos/mserneels/twatscrape/git/commits{/sha}","comments_url":"https://api.github.com/repos/mserneels/twatscrape/comments{/number}","issue_comment_url":"https://api.github.com/repos/mserneels/twatscrape/issues/comments{/number}","contents_url":"https://api.github.com/repos/mserneels/twatscrape/contents/{+path}","compare_url":"https://api.github.com/repos/mserneels/twatscrape/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mserneels/twatscrape/merges","archive_url":"https://api.github.com/repos/mserneels/twatscrape/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mserneels/twatscrape/downloads","issues_url":"https://api.github.com/repos/mserneels/twatscrape/issues{/number}","pulls_url":"https://api.github.com/repos/mserneels/twatscrape/pulls{/number}","milestones_url":"https://api.github.com/repos/mserneels/twatscrape/milestones{/number}","notifications_url":"https://api.github.com/repos/mserneels/twatscrape/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mserneels/twatscrape/labels{/name}","releases_url":"https://api.github.com/repos/mserneels/twatscrape/releases{/id}","deployments_url":"https://api.github.com/repos/mserneels/twatscrape/deployments","created_at":"2018-08-08T10:59:35Z","updated_at":"2018-10-25T20:42:19Z","pushed_at":"2018-11-06T00:06:36Z","git_url":"git://github.com/mserneels/twatscrape.git","ssh_url":"git@github.com:mserneels/twatscrape.git","clone_url":"https://github.com/mserneels/twatscrape.git","svn_url":"https://github.com/mserneels/twatscrape","homepage":null,"size":178,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rofl0r:master","ref":"master","sha":"75da8faecf2c28b1516ef7013be410f38018e4c9","user":{"login":"rofl0r","id":341425,"node_id":"MDQ6VXNlcjM0MTQyNQ==","avatar_url":"https://avatars2.githubusercontent.com/u/341425?v=4","gravatar_id":"","url":"https://api.github.com/users/rofl0r","html_url":"https://github.com/rofl0r","followers_url":"https://api.github.com/users/rofl0r/followers","following_url":"https://api.github.com/users/rofl0r/following{/other_user}","gists_url":"https://api.github.com/users/rofl0r/gists{/gist_id}","starred_url":"https://api.github.com/users/rofl0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rofl0r/subscriptions","organizations_url":"https://api.github.com/users/rofl0r/orgs","repos_url":"https://api.github.com/users/rofl0r/repos","events_url":"https://api.github.com/users/rofl0r/events{/privacy}","received_events_url":"https://api.github.com/users/rofl0r/received_events","type":"User","site_admin":false},"repo":{"id":140121257,"node_id":"MDEwOlJlcG9zaXRvcnkxNDAxMjEyNTc=","name":"twatscrape","full_name":"rofl0r/twatscrape","private":false,"owner":{"login":"rofl0r","id":341425,"node_id":"MDQ6VXNlcjM0MTQyNQ==","avatar_url":"https://avatars2.githubusercontent.com/u/341425?v=4","gravatar_id":"","url":"https://api.github.com/users/rofl0r","html_url":"https://github.com/rofl0r","followers_url":"https://api.github.com/users/rofl0r/followers","following_url":"https://api.github.com/users/rofl0r/following{/other_user}","gists_url":"https://api.github.com/users/rofl0r/gists{/gist_id}","starred_url":"https://api.github.com/users/rofl0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rofl0r/subscriptions","organizations_url":"https://api.github.com/users/rofl0r/orgs","repos_url":"https://api.github.com/users/rofl0r/repos","events_url":"https://api.github.com/users/rofl0r/events{/privacy}","received_events_url":"https://api.github.com/users/rofl0r/received_events","type":"User","site_admin":false},"html_url":"https://github.com/rofl0r/twatscrape","description":"because twatter sucks","fork":false,"url":"https://api.github.com/repos/rofl0r/twatscrape","forks_url":"https://api.github.com/repos/rofl0r/twatscrape/forks","keys_url":"https://api.github.com/repos/rofl0r/twatscrape/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rofl0r/twatscrape/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rofl0r/twatscrape/teams","hooks_url":"https://api.github.com/repos/rofl0r/twatscrape/hooks","issue_events_url":"https://api.github.com/repos/rofl0r/twatscrape/issues/events{/number}","events_url":"https://api.github.com/repos/rofl0r/twatscrape/events","assignees_url":"https://api.github.com/repos/rofl0r/twatscrape/assignees{/user}","branches_url":"https://api.github.com/repos/rofl0r/twatscrape/branches{/branch}","tags_url":"https://api.github.com/repos/rofl0r/twatscrape/tags","blobs_url":"https://api.github.com/repos/rofl0r/twatscrape/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rofl0r/twatscrape/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rofl0r/twatscrape/git/refs{/sha}","trees_url":"https://api.github.com/repos/rofl0r/twatscrape/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rofl0r/twatscrape/statuses/{sha}","languages_url":"https://api.github.com/repos/rofl0r/twatscrape/languages","stargazers_url":"https://api.github.com/repos/rofl0r/twatscrape/stargazers","contributors_url":"https://api.github.com/repos/rofl0r/twatscrape/contributors","subscribers_url":"https://api.github.com/repos/rofl0r/twatscrape/subscribers","subscription_url":"https://api.github.com/repos/rofl0r/twatscrape/subscription","commits_url":"https://api.github.com/repos/rofl0r/twatscrape/commits{/sha}","git_commits_url":"https://api.github.com/repos/rofl0r/twatscrape/git/commits{/sha}","comments_url":"https://api.github.com/repos/rofl0r/twatscrape/comments{/number}","issue_comment_url":"https://api.github.com/repos/rofl0r/twatscrape/issues/comments{/number}","contents_url":"https://api.github.com/repos/rofl0r/twatscrape/contents/{+path}","compare_url":"https://api.github.com/repos/rofl0r/twatscrape/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rofl0r/twatscrape/merges","archive_url":"https://api.github.com/repos/rofl0r/twatscrape/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rofl0r/twatscrape/downloads","issues_url":"https://api.github.com/repos/rofl0r/twatscrape/issues{/number}","pulls_url":"https://api.github.com/repos/rofl0r/twatscrape/pulls{/number}","milestones_url":"https://api.github.com/repos/rofl0r/twatscrape/milestones{/number}","notifications_url":"https://api.github.com/repos/rofl0r/twatscrape/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rofl0r/twatscrape/labels{/name}","releases_url":"https://api.github.com/repos/rofl0r/twatscrape/releases{/id}","deployments_url":"https://api.github.com/repos/rofl0r/twatscrape/deployments","created_at":"2018-07-07T22:38:22Z","updated_at":"2018-11-05T21:36:24Z","pushed_at":"2018-11-06T00:06:37Z","git_url":"git://github.com/rofl0r/twatscrape.git","ssh_url":"git@github.com:rofl0r/twatscrape.git","clone_url":"https://github.com/rofl0r/twatscrape.git","svn_url":"https://github.com/rofl0r/twatscrape","homepage":null,"size":164,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rofl0r/twatscrape/pulls/28"},"html":{"href":"https://github.com/rofl0r/twatscrape/pull/28"},"issue":{"href":"https://api.github.com/repos/rofl0r/twatscrape/issues/28"},"comments":{"href":"https://api.github.com/repos/rofl0r/twatscrape/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/rofl0r/twatscrape/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/rofl0r/twatscrape/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rofl0r/twatscrape/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/rofl0r/twatscrape/statuses/cf4c9174933eefa345ee2004d3b8b99d09b2170f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"rofl0r"}}