{"action":"created","comment":{"url":"https://api.github.com/repos/instabot-py/instabot.py/pulls/comments/240394505","pull_request_review_id":183416587,"id":240394505,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MDM5NDUwNQ==","diff_hunk":"@@ -428,20 +432,28 @@ def get_username_by_media_id(self, media_id):\n                 return \"\"\n \n     def get_username_by_user_id(self, user_id):\n-        \"\"\" Get username by user_id \"\"\"\n         if self.login_status:\n-            try:\n-                url_info = self.api_user_detail % user_id\n-                r = self.s.get(url_info, headers=\"\")\n-                all_data = json.loads(r.text)\n-                username = all_data[\"user\"][\"username\"]\n-                return username\n-            except:\n-                logging.exception(\"Except on get_username_by_user_id\")\n-                return False\n+            profile = instaloader.Profile.from_id(self.instaload.context,  user_id)","path":"src/instabot.py","position":42,"original_position":42,"commit_id":"b6e4b6e65ea3f886443fbac420b419ba3b8c5dd6","original_commit_id":"c32821b8fb996d4415c1bf6cda3ddae09afb6ae2","user":{"login":"idiegoa","id":29132435,"node_id":"MDQ6VXNlcjI5MTMyNDM1","avatar_url":"https://avatars1.githubusercontent.com/u/29132435?v=4","gravatar_id":"","url":"https://api.github.com/users/idiegoa","html_url":"https://github.com/idiegoa","followers_url":"https://api.github.com/users/idiegoa/followers","following_url":"https://api.github.com/users/idiegoa/following{/other_user}","gists_url":"https://api.github.com/users/idiegoa/gists{/gist_id}","starred_url":"https://api.github.com/users/idiegoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idiegoa/subscriptions","organizations_url":"https://api.github.com/users/idiegoa/orgs","repos_url":"https://api.github.com/users/idiegoa/repos","events_url":"https://api.github.com/users/idiegoa/events{/privacy}","received_events_url":"https://api.github.com/users/idiegoa/received_events","type":"User","site_admin":false},"body":"I have seen some errors regarding this line in the errors.log when I have executed Instabot with this workarround. \r\n\r\nIt should be self.instaloader.context","created_at":"2018-12-10T21:52:25Z","updated_at":"2018-12-10T21:52:25Z","html_url":"https://github.com/instabot-py/instabot.py/pull/1788#discussion_r240394505","pull_request_url":"https://api.github.com/repos/instabot-py/instabot.py/pulls/1788","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/instabot-py/instabot.py/pulls/comments/240394505"},"html":{"href":"https://github.com/instabot-py/instabot.py/pull/1788#discussion_r240394505"},"pull_request":{"href":"https://api.github.com/repos/instabot-py/instabot.py/pulls/1788"}}},"pull_request":{"url":"https://api.github.com/repos/instabot-py/instabot.py/pulls/1788","id":237157471,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3MTU3NDcx","html_url":"https://github.com/instabot-py/instabot.py/pull/1788","diff_url":"https://github.com/instabot-py/instabot.py/pull/1788.diff","patch_url":"https://github.com/instabot-py/instabot.py/pull/1788.patch","issue_url":"https://api.github.com/repos/instabot-py/instabot.py/issues/1788","number":1788,"state":"open","locked":false,"title":"Instaloader Workaround (Fixes Error 403, Loops, CSRFToken)","user":{"login":"dimisdas","id":1391441,"node_id":"MDQ6VXNlcjEzOTE0NDE=","avatar_url":"https://avatars0.githubusercontent.com/u/1391441?v=4","gravatar_id":"","url":"https://api.github.com/users/dimisdas","html_url":"https://github.com/dimisdas","followers_url":"https://api.github.com/users/dimisdas/followers","following_url":"https://api.github.com/users/dimisdas/following{/other_user}","gists_url":"https://api.github.com/users/dimisdas/gists{/gist_id}","starred_url":"https://api.github.com/users/dimisdas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimisdas/subscriptions","organizations_url":"https://api.github.com/users/dimisdas/orgs","repos_url":"https://api.github.com/users/dimisdas/repos","events_url":"https://api.github.com/users/dimisdas/events{/privacy}","received_events_url":"https://api.github.com/users/dimisdas/received_events","type":"User","site_admin":false},"body":".ZIP of the working fix https://dimisme.s3.amazonaws.com/instabot.py-instaloader-workaround.zip","created_at":"2018-12-09T21:11:27Z","updated_at":"2018-12-10T21:52:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"45bfd13f49162bf585d05b654e2479c72af2a1ba","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/instabot-py/instabot.py/pulls/1788/commits","review_comments_url":"https://api.github.com/repos/instabot-py/instabot.py/pulls/1788/comments","review_comment_url":"https://api.github.com/repos/instabot-py/instabot.py/pulls/comments{/number}","comments_url":"https://api.github.com/repos/instabot-py/instabot.py/issues/1788/comments","statuses_url":"https://api.github.com/repos/instabot-py/instabot.py/statuses/b6e4b6e65ea3f886443fbac420b419ba3b8c5dd6","head":{"label":"dimisdas:master","ref":"master","sha":"b6e4b6e65ea3f886443fbac420b419ba3b8c5dd6","user":{"login":"dimisdas","id":1391441,"node_id":"MDQ6VXNlcjEzOTE0NDE=","avatar_url":"https://avatars0.githubusercontent.com/u/1391441?v=4","gravatar_id":"","url":"https://api.github.com/users/dimisdas","html_url":"https://github.com/dimisdas","followers_url":"https://api.github.com/users/dimisdas/followers","following_url":"https://api.github.com/users/dimisdas/following{/other_user}","gists_url":"https://api.github.com/users/dimisdas/gists{/gist_id}","starred_url":"https://api.github.com/users/dimisdas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimisdas/subscriptions","organizations_url":"https://api.github.com/users/dimisdas/orgs","repos_url":"https://api.github.com/users/dimisdas/repos","events_url":"https://api.github.com/users/dimisdas/events{/privacy}","received_events_url":"https://api.github.com/users/dimisdas/received_events","type":"User","site_admin":false},"repo":{"id":161081413,"node_id":"MDEwOlJlcG9zaXRvcnkxNjEwODE0MTM=","name":"instabot.py","full_name":"dimisdas/instabot.py","private":false,"owner":{"login":"dimisdas","id":1391441,"node_id":"MDQ6VXNlcjEzOTE0NDE=","avatar_url":"https://avatars0.githubusercontent.com/u/1391441?v=4","gravatar_id":"","url":"https://api.github.com/users/dimisdas","html_url":"https://github.com/dimisdas","followers_url":"https://api.github.com/users/dimisdas/followers","following_url":"https://api.github.com/users/dimisdas/following{/other_user}","gists_url":"https://api.github.com/users/dimisdas/gists{/gist_id}","starred_url":"https://api.github.com/users/dimisdas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimisdas/subscriptions","organizations_url":"https://api.github.com/users/dimisdas/orgs","repos_url":"https://api.github.com/users/dimisdas/repos","events_url":"https://api.github.com/users/dimisdas/events{/privacy}","received_events_url":"https://api.github.com/users/dimisdas/received_events","type":"User","site_admin":false},"html_url":"https://github.com/dimisdas/instabot.py","description":"Instagram bot. It works without instagram api, need only login and password. Write on python.","fork":true,"url":"https://api.github.com/repos/dimisdas/instabot.py","forks_url":"https://api.github.com/repos/dimisdas/instabot.py/forks","keys_url":"https://api.github.com/repos/dimisdas/instabot.py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dimisdas/instabot.py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dimisdas/instabot.py/teams","hooks_url":"https://api.github.com/repos/dimisdas/instabot.py/hooks","issue_events_url":"https://api.github.com/repos/dimisdas/instabot.py/issues/events{/number}","events_url":"https://api.github.com/repos/dimisdas/instabot.py/events","assignees_url":"https://api.github.com/repos/dimisdas/instabot.py/assignees{/user}","branches_url":"https://api.github.com/repos/dimisdas/instabot.py/branches{/branch}","tags_url":"https://api.github.com/repos/dimisdas/instabot.py/tags","blobs_url":"https://api.github.com/repos/dimisdas/instabot.py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dimisdas/instabot.py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dimisdas/instabot.py/git/refs{/sha}","trees_url":"https://api.github.com/repos/dimisdas/instabot.py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dimisdas/instabot.py/statuses/{sha}","languages_url":"https://api.github.com/repos/dimisdas/instabot.py/languages","stargazers_url":"https://api.github.com/repos/dimisdas/instabot.py/stargazers","contributors_url":"https://api.github.com/repos/dimisdas/instabot.py/contributors","subscribers_url":"https://api.github.com/repos/dimisdas/instabot.py/subscribers","subscription_url":"https://api.github.com/repos/dimisdas/instabot.py/subscription","commits_url":"https://api.github.com/repos/dimisdas/instabot.py/commits{/sha}","git_commits_url":"https://api.github.com/repos/dimisdas/instabot.py/git/commits{/sha}","comments_url":"https://api.github.com/repos/dimisdas/instabot.py/comments{/number}","issue_comment_url":"https://api.github.com/repos/dimisdas/instabot.py/issues/comments{/number}","contents_url":"https://api.github.com/repos/dimisdas/instabot.py/contents/{+path}","compare_url":"https://api.github.com/repos/dimisdas/instabot.py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dimisdas/instabot.py/merges","archive_url":"https://api.github.com/repos/dimisdas/instabot.py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dimisdas/instabot.py/downloads","issues_url":"https://api.github.com/repos/dimisdas/instabot.py/issues{/number}","pulls_url":"https://api.github.com/repos/dimisdas/instabot.py/pulls{/number}","milestones_url":"https://api.github.com/repos/dimisdas/instabot.py/milestones{/number}","notifications_url":"https://api.github.com/repos/dimisdas/instabot.py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dimisdas/instabot.py/labels{/name}","releases_url":"https://api.github.com/repos/dimisdas/instabot.py/releases{/id}","deployments_url":"https://api.github.com/repos/dimisdas/instabot.py/deployments","created_at":"2018-12-09T21:06:12Z","updated_at":"2018-12-09T21:09:26Z","pushed_at":"2018-12-09T21:09:25Z","git_url":"git://github.com/dimisdas/instabot.py.git","ssh_url":"git@github.com:dimisdas/instabot.py.git","clone_url":"https://github.com/dimisdas/instabot.py.git","svn_url":"https://github.com/dimisdas/instabot.py","homepage":null,"size":344,"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":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"instabot-py:master","ref":"master","sha":"492da5093a9bae9529dc44d1d56f137ebe6b3314","user":{"login":"instabot-py","id":26767440,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2NzY3NDQw","avatar_url":"https://avatars3.githubusercontent.com/u/26767440?v=4","gravatar_id":"","url":"https://api.github.com/users/instabot-py","html_url":"https://github.com/instabot-py","followers_url":"https://api.github.com/users/instabot-py/followers","following_url":"https://api.github.com/users/instabot-py/following{/other_user}","gists_url":"https://api.github.com/users/instabot-py/gists{/gist_id}","starred_url":"https://api.github.com/users/instabot-py/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/instabot-py/subscriptions","organizations_url":"https://api.github.com/users/instabot-py/orgs","repos_url":"https://api.github.com/users/instabot-py/repos","events_url":"https://api.github.com/users/instabot-py/events{/privacy}","received_events_url":"https://api.github.com/users/instabot-py/received_events","type":"Organization","site_admin":false},"repo":{"id":49864290,"node_id":"MDEwOlJlcG9zaXRvcnk0OTg2NDI5MA==","name":"instabot.py","full_name":"instabot-py/instabot.py","private":false,"owner":{"login":"instabot-py","id":26767440,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2NzY3NDQw","avatar_url":"https://avatars3.githubusercontent.com/u/26767440?v=4","gravatar_id":"","url":"https://api.github.com/users/instabot-py","html_url":"https://github.com/instabot-py","followers_url":"https://api.github.com/users/instabot-py/followers","following_url":"https://api.github.com/users/instabot-py/following{/other_user}","gists_url":"https://api.github.com/users/instabot-py/gists{/gist_id}","starred_url":"https://api.github.com/users/instabot-py/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/instabot-py/subscriptions","organizations_url":"https://api.github.com/users/instabot-py/orgs","repos_url":"https://api.github.com/users/instabot-py/repos","events_url":"https://api.github.com/users/instabot-py/events{/privacy}","received_events_url":"https://api.github.com/users/instabot-py/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/instabot-py/instabot.py","description":"Instagram bot. It works without instagram api, need only login and password. Write on python.","fork":false,"url":"https://api.github.com/repos/instabot-py/instabot.py","forks_url":"https://api.github.com/repos/instabot-py/instabot.py/forks","keys_url":"https://api.github.com/repos/instabot-py/instabot.py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/instabot-py/instabot.py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/instabot-py/instabot.py/teams","hooks_url":"https://api.github.com/repos/instabot-py/instabot.py/hooks","issue_events_url":"https://api.github.com/repos/instabot-py/instabot.py/issues/events{/number}","events_url":"https://api.github.com/repos/instabot-py/instabot.py/events","assignees_url":"https://api.github.com/repos/instabot-py/instabot.py/assignees{/user}","branches_url":"https://api.github.com/repos/instabot-py/instabot.py/branches{/branch}","tags_url":"https://api.github.com/repos/instabot-py/instabot.py/tags","blobs_url":"https://api.github.com/repos/instabot-py/instabot.py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/instabot-py/instabot.py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/instabot-py/instabot.py/git/refs{/sha}","trees_url":"https://api.github.com/repos/instabot-py/instabot.py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/instabot-py/instabot.py/statuses/{sha}","languages_url":"https://api.github.com/repos/instabot-py/instabot.py/languages","stargazers_url":"https://api.github.com/repos/instabot-py/instabot.py/stargazers","contributors_url":"https://api.github.com/repos/instabot-py/instabot.py/contributors","subscribers_url":"https://api.github.com/repos/instabot-py/instabot.py/subscribers","subscription_url":"https://api.github.com/repos/instabot-py/instabot.py/subscription","commits_url":"https://api.github.com/repos/instabot-py/instabot.py/commits{/sha}","git_commits_url":"https://api.github.com/repos/instabot-py/instabot.py/git/commits{/sha}","comments_url":"https://api.github.com/repos/instabot-py/instabot.py/comments{/number}","issue_comment_url":"https://api.github.com/repos/instabot-py/instabot.py/issues/comments{/number}","contents_url":"https://api.github.com/repos/instabot-py/instabot.py/contents/{+path}","compare_url":"https://api.github.com/repos/instabot-py/instabot.py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/instabot-py/instabot.py/merges","archive_url":"https://api.github.com/repos/instabot-py/instabot.py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/instabot-py/instabot.py/downloads","issues_url":"https://api.github.com/repos/instabot-py/instabot.py/issues{/number}","pulls_url":"https://api.github.com/repos/instabot-py/instabot.py/pulls{/number}","milestones_url":"https://api.github.com/repos/instabot-py/instabot.py/milestones{/number}","notifications_url":"https://api.github.com/repos/instabot-py/instabot.py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/instabot-py/instabot.py/labels{/name}","releases_url":"https://api.github.com/repos/instabot-py/instabot.py/releases{/id}","deployments_url":"https://api.github.com/repos/instabot-py/instabot.py/deployments","created_at":"2016-01-18T08:56:34Z","updated_at":"2018-12-10T17:51:58Z","pushed_at":"2018-12-09T21:11:28Z","git_url":"git://github.com/instabot-py/instabot.py.git","ssh_url":"git@github.com:instabot-py/instabot.py.git","clone_url":"https://github.com/instabot-py/instabot.py.git","svn_url":"https://github.com/instabot-py/instabot.py","homepage":null,"size":331,"stargazers_count":3534,"watchers_count":3534,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1656,"mirror_url":null,"archived":false,"open_issues_count":390,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1656,"open_issues":390,"watchers":3534,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/instabot-py/instabot.py/pulls/1788"},"html":{"href":"https://github.com/instabot-py/instabot.py/pull/1788"},"issue":{"href":"https://api.github.com/repos/instabot-py/instabot.py/issues/1788"},"comments":{"href":"https://api.github.com/repos/instabot-py/instabot.py/issues/1788/comments"},"review_comments":{"href":"https://api.github.com/repos/instabot-py/instabot.py/pulls/1788/comments"},"review_comment":{"href":"https://api.github.com/repos/instabot-py/instabot.py/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/instabot-py/instabot.py/pulls/1788/commits"},"statuses":{"href":"https://api.github.com/repos/instabot-py/instabot.py/statuses/b6e4b6e65ea3f886443fbac420b419ba3b8c5dd6"}},"author_association":"NONE"}}
{"actor":{"display_login":"idiegoa"}}