{"action":"created","issue":{"url":"https://api.github.com/repos/instagrambot/instabot/issues/593","repository_url":"https://api.github.com/repos/instagrambot/instabot","labels_url":"https://api.github.com/repos/instagrambot/instabot/issues/593/labels{/name}","comments_url":"https://api.github.com/repos/instagrambot/instabot/issues/593/comments","events_url":"https://api.github.com/repos/instagrambot/instabot/issues/593/events","html_url":"https://github.com/instagrambot/instabot/issues/593","id":341453150,"node_id":"MDU6SXNzdWUzNDE0NTMxNTA=","number":593,"title":"suddendly stopped to work follow_user_followers.py","user":{"login":"kintaro1981","id":2357176,"node_id":"MDQ6VXNlcjIzNTcxNzY=","avatar_url":"https://avatars3.githubusercontent.com/u/2357176?v=4","gravatar_id":"","url":"https://api.github.com/users/kintaro1981","html_url":"https://github.com/kintaro1981","followers_url":"https://api.github.com/users/kintaro1981/followers","following_url":"https://api.github.com/users/kintaro1981/following{/other_user}","gists_url":"https://api.github.com/users/kintaro1981/gists{/gist_id}","starred_url":"https://api.github.com/users/kintaro1981/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kintaro1981/subscriptions","organizations_url":"https://api.github.com/users/kintaro1981/orgs","repos_url":"https://api.github.com/users/kintaro1981/repos","events_url":"https://api.github.com/users/kintaro1981/events{/privacy}","received_events_url":"https://api.github.com/users/kintaro1981/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-07-16T09:50:05Z","updated_at":"2018-07-20T19:56:34Z","closed_at":null,"author_association":"NONE","body":"### Before submitting an issue, make sure you have:\r\n- [x] Updated to the latest version\r\n- [x] Read the [README](https://github.com/instagrambot/instabot/blob/master/README.md) and [docs](https://github.com/instagrambot/instabot/tree/master/docs)\r\n- [x] [Searched](https://github.com/instagrambot/instabot/search?type=Issues) the bugtracker for similar issues including **closed** ones\r\n\r\n### Purpose of your issue?\r\n- [ ] Bug report (encountered problems/errors)\r\n- [ ] Feature request (request for a new functionality)\r\n- [x] Question\r\n- [ ] Other\r\n\r\n---\r\n\r\n### The following sections requests more details for particular types of issues, you can remove any section (the contents between the triple ---) not applicable to your issue.\r\n\r\n---\r\n\r\n### For a *bug report*, you **must** include the Python version used, *code* that will reproduce the error, and the *error log/traceback*.\r\n\r\nPaste the output of ``python -V`` here:\r\n\r\nPython 2.7.13\r\n\r\nCode:\r\n\r\n```\r\nfollow_user_followers.py username\r\nunfollow_non_followers.py\r\n```\r\n\r\nError/Debug Log:\r\n\r\n\r\nfollow_user_followers.py username\r\n```python\r\nTraceback (most recent call last):                                                                                                                                          \r\n  File \"/Users/xxx/Google Drive/xxx/Social Media/InstaBot/scripts/follow_user_followers.py\", line 27, in <module>\r\n    bot.follow_followers(username)\r\n  File \"/usr/local/lib/python2.7/site-packages/instabot/bot/bot.py\", line 471, in follow_followers\r\n    return follow_followers(self, user_id, nfollows)\r\n  File \"/usr/local/lib/python2.7/site-packages/instabot/bot/bot_follow.py\", line 76, in follow_followers\r\n    followers = self.get_user_followers(user_id, nfollows)\r\n  File \"/usr/local/lib/python2.7/site-packages/instabot/bot/bot.py\", line 356, in get_user_followers\r\n    return get_user_followers(self, user_id, nfollows)\r\n  File \"/usr/local/lib/python2.7/site-packages/instabot/bot/bot_get.py\", line 181, in get_user_followers\r\n    followers = self.api.get_total_followers(user_id, nfollows)\r\n  File \"/usr/local/lib/python2.7/site-packages/instabot/api/api.py\", line 610, in get_total_followers\r\n    user_id, amount, 'followers')\r\n  File \"/usr/local/lib/python2.7/site-packages/instabot/api/api.py\", line 585, in get_total_followers_or_followings\r\n    get(user_id, next_max_id)\r\n  File \"/usr/local/lib/python2.7/site-packages/instabot/api/api.py\", line 427, in get_user_followers\r\n    return self.send_request(url)\r\n  File \"/usr/local/lib/python2.7/site-packages/instabot/api/api.py\", line 171, in send_request\r\n    self.last_json = json.loads(response.text)\r\n  File \"/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py\", line 339, in loads\r\n    return _default_decoder.decode(s)\r\n  File \"/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py\", line 364, in decode\r\n    obj, end = self.raw_decode(s, idx=_w(s, 0).end())\r\n  File \"/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py\", line 380, in raw_decode\r\n    obj, end = self.scan_once(s, idx)\r\nValueError: Unterminated string starting at: line 1 column 30220 (char 30219)\r\n2018-07-16 12:01:06,880 - INFO - Bot stopped. Worked: 0:00:11.363886\r\n2018-07-16 12:01:06,881 - INFO - Total requests: 34004\r\n```\r\n\r\nunfollow_non_followers.py\r\n```\r\n ===> Start unfollowing non-followers <===\r\n\r\n`bot.following` is empty, will download.\r\n                                                                                                                                                                            \r\n`bot.followers` is empty, will download.\r\nTraceback (most recent call last):                                                                                                                                          \r\n  File \"/Users/xxx/Google Drive/xxx/Social Media/InstaBot/scripts/unfollow_non_followers.py\", line 25, in <module>\r\n    bot.unfollow_non_followers()\r\n  File \"/usr/local/lib/python2.7/site-packages/instabot/bot/bot.py\", line 485, in unfollow_non_followers\r\n    return unfollow_non_followers(self, n_to_unfollows)\r\n  File \"/usr/local/lib/python2.7/site-packages/instabot/bot/bot_unfollow.py\", line 48, in unfollow_non_followers\r\n    non_followers = set(self.following) - set(self.followers) - self.friends_file.set\r\n  File \"/usr/local/lib/python2.7/site-packages/instabot/bot/bot.py\", line 213, in followers\r\n    self._followers = self.get_user_followers(self.user_id)\r\n  File \"/usr/local/lib/python2.7/site-packages/instabot/bot/bot.py\", line 356, in get_user_followers\r\n    return get_user_followers(self, user_id, nfollows)\r\n  File \"/usr/local/lib/python2.7/site-packages/instabot/bot/bot_get.py\", line 181, in get_user_followers\r\n    followers = self.api.get_total_followers(user_id, nfollows)\r\n  File \"/usr/local/lib/python2.7/site-packages/instabot/api/api.py\", line 610, in get_total_followers\r\n    user_id, amount, 'followers')\r\n  File \"/usr/local/lib/python2.7/site-packages/instabot/api/api.py\", line 585, in get_total_followers_or_followings\r\n    get(user_id, next_max_id)\r\n  File \"/usr/local/lib/python2.7/site-packages/instabot/api/api.py\", line 427, in get_user_followers\r\n    return self.send_request(url)\r\n  File \"/usr/local/lib/python2.7/site-packages/instabot/api/api.py\", line 171, in send_request\r\n    self.last_json = json.loads(response.text)\r\n  File \"/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py\", line 339, in loads\r\n    return _default_decoder.decode(s)\r\n  File \"/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py\", line 364, in decode\r\n    obj, end = self.raw_decode(s, idx=_w(s, 0).end())\r\n  File \"/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py\", line 380, in raw_decode\r\n    obj, end = self.scan_once(s, idx)\r\nValueError: Expecting object: line 1 column 55822 (char 55821)\r\n2018-07-16 12:03:36,123 - INFO - Bot stopped. Worked: 0:02:40.607539\r\n2018-07-16 12:03:36,124 - INFO - Total requests: 34010\r\n```\r\n\r\n---\r\n\r\n### Describe your issue\r\n\r\nThe account I want to follow followers have 10k and the script stop after it loads 30/40%. \r\nIt's suddenly started to do it.\r\n\r\nI tried to run unfollow_non_followers.py and i stop immediatly."},"comment":{"url":"https://api.github.com/repos/instagrambot/instabot/issues/comments/406710410","html_url":"https://github.com/instagrambot/instabot/issues/593#issuecomment-406710410","issue_url":"https://api.github.com/repos/instagrambot/instabot/issues/593","id":406710410,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjcxMDQxMA==","user":{"login":"kintaro1981","id":2357176,"node_id":"MDQ6VXNlcjIzNTcxNzY=","avatar_url":"https://avatars3.githubusercontent.com/u/2357176?v=4","gravatar_id":"","url":"https://api.github.com/users/kintaro1981","html_url":"https://github.com/kintaro1981","followers_url":"https://api.github.com/users/kintaro1981/followers","following_url":"https://api.github.com/users/kintaro1981/following{/other_user}","gists_url":"https://api.github.com/users/kintaro1981/gists{/gist_id}","starred_url":"https://api.github.com/users/kintaro1981/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kintaro1981/subscriptions","organizations_url":"https://api.github.com/users/kintaro1981/orgs","repos_url":"https://api.github.com/users/kintaro1981/repos","events_url":"https://api.github.com/users/kintaro1981/events{/privacy}","received_events_url":"https://api.github.com/users/kintaro1981/received_events","type":"User","site_admin":false},"created_at":"2018-07-20T19:56:34Z","updated_at":"2018-07-20T19:56:34Z","author_association":"NONE","body":"I have done:\r\n\r\n`sudo pip uninstall -y instabot`\r\n\r\nthen:\r\n\r\n`sudo pip install https://github.com/instagrambot/instabot/archive/master.zip`\r\n\r\nif I launch follow_user_followers.py I get this:\r\n\r\n```\r\nTraceback (most recent call last):                                                                                                                                          \r\n  File \"/Users/xxx/Google Drive/xxx/Social Media/InstaBot/scripts/follow_user_followers.py\", line 27, in <module>\r\n    bot.follow_followers(username)\r\n  File \"/usr/local/lib/python2.7/site-packages/instabot/bot/bot.py\", line 472, in follow_followers\r\n    return follow_followers(self, user_id, nfollows)\r\n  File \"/usr/local/lib/python2.7/site-packages/instabot/bot/bot_follow.py\", line 76, in follow_followers\r\n    followers = self.get_user_followers(user_id, nfollows)\r\n  File \"/usr/local/lib/python2.7/site-packages/instabot/bot/bot.py\", line 357, in get_user_followers\r\n    return get_user_followers(self, user_id, nfollows)\r\n  File \"/usr/local/lib/python2.7/site-packages/instabot/bot/bot_get.py\", line 183, in get_user_followers\r\n    followers = self.api.get_total_followers(user_id, nfollows)\r\n  File \"/usr/local/lib/python2.7/site-packages/instabot/api/api.py\", line 613, in get_total_followers\r\n    user_id, amount, 'followers')\r\n  File \"/usr/local/lib/python2.7/site-packages/instabot/api/api.py\", line 588, in get_total_followers_or_followings\r\n    get(user_id, next_max_id)\r\n  File \"/usr/local/lib/python2.7/site-packages/instabot/api/api.py\", line 430, in get_user_followers\r\n    return self.send_request(url)\r\n  File \"/usr/local/lib/python2.7/site-packages/instabot/api/api.py\", line 174, in send_request\r\n    except json.decoder.JSONDecodeError:\r\nAttributeError: 'module' object has no attribute 'JSONDecodeError'\r\n2018-07-20 21:54:33,990 - INFO - Bot stopped. Worked: 3:49:08.314985\r\n2018-07-20 21:54:33,991 - INFO - Total requests: 35289\r\n```"}}
{"actor":{"display_login":"kintaro1981"}}