InstaPy / InstaPy

📷 Instagram Bot - Tool for automated Instagram interactions
GNU General Public License v3.0
16.85k stars 3.78k forks source link

One account works but another doesn't. WHY???? #2213

Closed thankmelater23 closed 5 years ago

thankmelater23 commented 6 years ago

Expected Behavior

Wont run quickstart.py file with one account, but not with other. I've been running Instapy on the account a few months. Not sure if it got blocked or something.

Current Behavior

Traceback (most recent call last): File "quickstart.py", line 22, in multi_logs=True) File "/Users/AndreVillanueva_Com/Dropbox/Bots/InstaPy/instapy/instapy.py", line 122, in __init__ self.follow_restrict = load_follow_restriction(self.logfolder) File "/Users/AndreVillanueva_Com/Dropbox/Bots/InstaPy/instapy/unfollow_util.py", line 849, in load_follow_restriction return json.load(followResFile) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 290, in load **kw) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/__init__.py", line 338, in loads return _default_decoder.decode(s) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 366, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py", line 384, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded

Possible Solution (optional)

InstaPy configuration

CharlesCCC commented 6 years ago

whoever the user you are using must have a corrupsted followedrestriction.json file @uluQulu is working on a fix to prevent this happening in the future.

thankmelater23 commented 6 years ago

Ok so what do I have to do? Wait till it’s fixed?

Sent from my iPhone

On Jun 11, 2018, at 5:33 AM, Charles Cai notifications@github.com wrote:

whoever the user you are using must have a corrupsted followedrestriction.json file @uluQulu is working on a fix to prevent this happening in the future.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

CharlesCCC commented 6 years ago

wait or delete the existing corrupsted json file from that user's folder. but this will cause some user get follow/unfollowed again (you decision if you would like do that or not)

thankmelater23 commented 6 years ago

Ok I think I’ll do that! Thanks!

uluQulu commented 6 years ago

Hey guys @thankmelater23 Have a read https://github.com/timgrossmann/InstaPy/pull/2086#issuecomment-394117784 to fix that file without purging it completely. @CharlesCCC I think I can write that DB after finishing with current feature set.

thankmelater23 commented 6 years ago

Will do! Thanks!

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

If this problem still occurs, please open a new issue