{"action":"created","issue":{"url":"https://api.github.com/repos/instabot-py/instabot.py/issues/1153","repository_url":"https://api.github.com/repos/instabot-py/instabot.py","labels_url":"https://api.github.com/repos/instabot-py/instabot.py/issues/1153/labels{/name}","comments_url":"https://api.github.com/repos/instabot-py/instabot.py/issues/1153/comments","events_url":"https://api.github.com/repos/instabot-py/instabot.py/issues/1153/events","html_url":"https://github.com/instabot-py/instabot.py/issues/1153","id":313512745,"number":1153,"title":"Json Decoder","user":{"login":"davirami88","id":26613984,"avatar_url":"https://avatars1.githubusercontent.com/u/26613984?v=4","gravatar_id":"","url":"https://api.github.com/users/davirami88","html_url":"https://github.com/davirami88","followers_url":"https://api.github.com/users/davirami88/followers","following_url":"https://api.github.com/users/davirami88/following{/other_user}","gists_url":"https://api.github.com/users/davirami88/gists{/gist_id}","starred_url":"https://api.github.com/users/davirami88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davirami88/subscriptions","organizations_url":"https://api.github.com/users/davirami88/orgs","repos_url":"https://api.github.com/users/davirami88/repos","events_url":"https://api.github.com/users/davirami88/events{/privacy}","received_events_url":"https://api.github.com/users/davirami88/received_events","type":"User","site_admin":false},"labels":[{"id":575331093,"url":"https://api.github.com/repos/instabot-py/instabot.py/labels/priority/critical","name":"priority/critical","color":"e11d21","default":false},{"id":575333206,"url":"https://api.github.com/repos/instabot-py/instabot.py/labels/status/review-needed","name":"status/review-needed","color":"fbca04","default":false},{"id":802119000,"url":"https://api.github.com/repos/instabot-py/instabot.py/labels/type/instagram-bug","name":"type/instagram-bug","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":88,"created_at":"2018-04-11T22:41:25Z","updated_at":"2018-04-14T10:30:53Z","closed_at":null,"author_association":"NONE","body":"> Fill in all requirements *before* submitting an issue.\r\n> Do not delete any of the template, fill all of it in; even if you think it doesn't apply to your issue.\r\n> If you fail to follow these simple instructions, we will close the ticket.\r\n\r\n- [x] This is a checked box. **Do not leave spaces around the `x`!**\r\n\r\n- [x] I have searched for other issues with the same problem.\r\n\r\n## Hosting\r\n- [ ] Are you hosting the bot on a VPS or other Cloud hosting?\r\n- [ ] If so; have you tried running the code on your local machine?\r\n\r\n#### Select one:\r\n- [x] Bug\r\n- [ ] Feature Request\r\n- [x] Technical Help\r\n- [ ] Other\r\n\r\n### Operating System? (include version)\r\nWindows \r\n\r\n## Python Version?\r\n3\r\n\r\n## Description\r\n\r\nHi guys, I started to have this issue today, I've been using the bot for a couple of weeks and it has worked okay. I really don't understand the error log, at first I thought it has to be something about the packages or the version so I updated everything and it still hasn't worked.\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"example.py\", line 63, in <module>\r\n    unfollow_whitelist=[])\r\n  File \"C:\\Users\\David Ramírez\\Desktop\\Python\\instabot\\instabot.py\\instabot.py\\src\\instabot.py\", line 231, in __init__\r\n    self.login()\r\n  File \"C:\\Users\\David Ramírez\\Desktop\\Python\\instabot\\instabot.py\\instabot.py\\src\\instabot.py\", line 300, in login\r\n    self.user_id = ui.get_user_id_by_login(self.user_login)\r\n  File \"C:\\Users\\David Ramírez\\Desktop\\Python\\instabot\\instabot.py\\instabot.py\\src\\userinfo.py\", line 41, in get_user_id_by_login\r\n    all_data = json.loads(info.text)\r\n  File \"C:\\Users\\David Ramírez\\Anaconda3\\lib\\json\\__init__.py\", line 354, in loads\r\n    return _default_decoder.decode(s)\r\n  File \"C:\\Users\\David Ramírez\\Anaconda3\\lib\\json\\decoder.py\", line 339, in decode\r\n    obj, end = self.raw_decode(s, idx=_w(s, 0).end())\r\n  File \"C:\\Users\\David Ramírez\\Anaconda3\\lib\\json\\decoder.py\", line 357, in raw_decode\r\n    raise JSONDecodeError(\"Expecting value\", s, err.value) from None\r\njson.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/instabot-py/instabot.py/issues/comments/381319731","html_url":"https://github.com/instabot-py/instabot.py/issues/1153#issuecomment-381319731","issue_url":"https://api.github.com/repos/instabot-py/instabot.py/issues/1153","id":381319731,"user":{"login":"manguszta","id":18244325,"avatar_url":"https://avatars3.githubusercontent.com/u/18244325?v=4","gravatar_id":"","url":"https://api.github.com/users/manguszta","html_url":"https://github.com/manguszta","followers_url":"https://api.github.com/users/manguszta/followers","following_url":"https://api.github.com/users/manguszta/following{/other_user}","gists_url":"https://api.github.com/users/manguszta/gists{/gist_id}","starred_url":"https://api.github.com/users/manguszta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manguszta/subscriptions","organizations_url":"https://api.github.com/users/manguszta/orgs","repos_url":"https://api.github.com/users/manguszta/repos","events_url":"https://api.github.com/users/manguszta/events{/privacy}","received_events_url":"https://api.github.com/users/manguszta/received_events","type":"User","site_admin":false},"created_at":"2018-04-14T10:30:53Z","updated_at":"2018-04-14T10:30:53Z","author_association":"NONE","body":"@Instaerror All I understood that those two lines need to go. But I had the script running with or without them. Not sure what I need to do with Try & Except lines, tabbing back them.\r\n\r\n```\r\nuser_info = loads(text)\r\n                    user_info = user_info[\"entry_data\"][\"ProfilePage\"][0][\"graphql\"][\"user\"]\r\n                         \r\n                        \r\n                    try:\r\n                        i = 0\r\n                        #log_string = \"Checking user info..\"\r\n                        #self.write_log(log_string)\r\n\r\n                        while i < 1:\r\n                            follows = self.user_info['edge_follow']['count']\r\n                            follower = self.user_info['edge_followed_by']['count']\r\n                            media = self.user_info['edge_owner_to_timeline_media']['count']\r\n                            follow_viewer = self.user_info['follows_viewer']\r\n                            followed_by_viewer = self.user_info['followed_by_viewer']\r\n                            requested_by_viewer = self.user_info['requested_by_viewer']\r\n                            has_requested_viewer = self.user_info['has_requested_viewer']\r\n                            #log_string = \"Follower : %i\" % (follower)\r\n                            #self.write_log(log_string)\r\n                            #log_string = \"Following : %s\" % (follows)\r\n                            #self.write_log(log_string)\r\n                            #log_string = \"Media : %i\" % (media)\r\n                            #self.write_log(log_string)\r\n                            #if follower / follows > 20:\r\n                                #self.is_selebgram = True\r\n                                #self.is_fake_account = False\r\n                                #print('  [U] This is probably Selebgram account')\r\n                            #elif follows / follower > 40:\r\n                                #self.is_fake_account = True\r\n                                #self.is_selebgram = False\r\n                                #print('  [U] This is probably Fake account')\r\n                            #else:\r\n                                #self.is_selebgram = False\r\n                                #self.is_fake_account = False\r\n                                #print('  [-] This is a normal account')\r\n\r\n                            #if follows / media < 10 and follower / media < 10:\r\n                                #self.is_active_user = True\r\n                            #    print('  [-] This user is active')\r\n                            #else:\r\n                            #    self.is_active_user = False\r\n                            #    print('  [U] This user is passive')\r\n\r\n                            if follow_viewer or has_requested_viewer:\r\n                                self.is_follower = True\r\n                                #print(\"  [-] %s is following you (%s users left)\" % (self.current_user, len(self.following)-1))\r\n                                self.unfollow_whitelist.append(self.current_id)\r\n                            else:\r\n                                self.is_follower = False\r\n                                #print(\"  [U] %s is NOT following you (%s users left)\" % (self.current_user, len(self.following)-1))\r\n\r\n                            #if followed_by_viewer or requested_by_viewer:\r\n                            #    self.is_following = True\r\n                            #    print('  [-] You are following this account')\r\n\r\n                            #else:\r\n                            #    self.is_following = False\r\n                            #    print('  [U] You are NOT following this account')\r\n\r\n                            i += 1\r\n\r\n                    except:\r\n                        self.write_log(\"  [-] Except on get info of %s (%s users left)\" % (self.current_user, len(self.following)))\r\n                        self.unfollow_whitelist.append(self.current_id)\r\n                        try:\r\n                            del self.following[chooser]\r\n                        except:\r\n                            self.write_log(\"  [-] Except on deleting user from list! #%s %s (%s users left)\" % (chooser, self.current_user, len(self.following)))\r\n                        time.sleep(2)\r\n                        return 0\r\n```"}}
{"actor":{"display_login":"manguszta"}}