InstaLooter icon indicating copy to clipboard operation
InstaLooter copied to clipboard

downloads fail with CRITICAL 'PostPage'

Open LazyBoot opened this issue 4 years ago • 12 comments

Library version

What's the installed library version ? Check with instalooter --version:

instalooter v2.4.4

Environment

Describe here your environment, including:

  • windows 10
  • Python 3.7.9

Error description - runtime

If you have an issue at runtime, include the required information below:

Reproducible test case

Are you using the CLI ? If so, include a command that can be used to re-raise the error, with actual arguments anybody can try:

instalooter user purplemuffinz purplemuffinz -v --traceback

Expected behaviour

*What's supposed to happen ? * downloads completes

Actual behaviour

Traceback (most recent call last):
  File "d:\source\repos\instalooter\.env\lib\site-packages\instalooter\cli\__init__.py", line 173, in main
    dlpbar_cls=None if args['--quiet'] else TqdmProgressBar)
  File "d:\source\repos\instalooter\.env\lib\site-packages\instalooter\looters.py", line 471, in download
    new_only, condition)
  File "d:\source\repos\instalooter\.env\lib\site-packages\instalooter\looters.py", line 620, in _fill_media_queue
    media = self.get_post_info(media['shortcode'])
  File "d:\source\repos\instalooter\.env\lib\site-packages\instalooter\looters.py", line 350, in get_post_info
    if 'graphql' in data['entry_data']['PostPage'][0]:
KeyError: 'PostPage'```

LazyBoot avatar Nov 20 '20 16:11 LazyBoot

Same issue on Mac with 2.4.4_1, macos 10.15.7.

bialyrycerz avatar Nov 20 '20 23:11 bialyrycerz

Same here. Mac 10.14.6, Python 3.8.6

jhein05 avatar Nov 26 '20 15:11 jhein05

Same here. Mac 10.13.6. Instalooter 2.4.4. Python 3.7.3

And the weird thing is, this morning it did work with complete url's. All of a sudden it stopped working and now I keep on getting this critical postpage error.

bjente avatar Nov 30 '20 10:11 bjente

Same on linux Debian Buster, python 3.7.3 Same on linux Raspbian, python 3.7.3

SsJVasto avatar Dec 03 '20 18:12 SsJVasto

Here's my story (fedora 31, python 3.7.9, instalooter 2.4.4, i'm login BTW): i launched a script (just a dozen calls to instalooter post) to download multiple post at once all worked. Next i tried to download instalooter user and failed in the middle. Same error as OP anything i tried was same error my account was blocked for some reason, i had to retrieve it through codes from email and phone. same error trying to download anything. instalooter logout ; instalooter login worked. Not sure why.

ghost avatar Dec 03 '20 18:12 ghost

Same error in Windows 7, instalooter 2.4.4, python 3.8.5

richieadler avatar Dec 08 '20 17:12 richieadler

 /Users/user/.virtualenvs/instagram-story/lib/python3.7/site-packages/instalooter/looters.py(351)get_post_info()                                                           | 1/5534 [00:09<13:51:56,  9.02s/it]
    350             import ipdb; ipdb.set_trace()
--> 351             if 'graphql' in data['entry_data']['PostPage'][0]:
    352                 return data['entry_data']['PostPage'][0]['graphql']['shortcode_media']

ipdb> data['entry_data']
{'LoginAndSignupPage': [{'captcha': {'enabled': False, 'key': ''}, 'gdpr_required': False, 'tos_version': 'row', 'username_hint': ''}]}

instalooter login did help.

max-arnold avatar Dec 31 '20 05:12 max-arnold

 /Users/user/.virtualenvs/instagram-story/lib/python3.7/site-packages/instalooter/looters.py(351)get_post_info()                                                           | 1/5534 [00:09<13:51:56,  9.02s/it]
    350             import ipdb; ipdb.set_trace()
--> 351             if 'graphql' in data['entry_data']['PostPage'][0]:
    352                 return data['entry_data']['PostPage'][0]['graphql']['shortcode_media']

ipdb> data['entry_data']
{'LoginAndSignupPage': [{'captcha': {'enabled': False, 'key': ''}, 'gdpr_required': False, 'tos_version': 'row', 'username_hint': ''}]}

instalooter login did help.

Please, what does it mean instalooter login did help?

aalliikk avatar Feb 13 '21 17:02 aalliikk

Please, what does it mean instalooter login did help?

It means that you need to run the instalooter login command and enter your instagram login details

max-arnold avatar Feb 14 '21 03:02 max-arnold

Please, what does it mean instalooter login did help?

It means that you need to run the instalooter login command and enter your instagram login details

YES, fixed the problem here too.

jhein05 avatar Mar 01 '21 17:03 jhein05

Please, what does it mean instalooter login did help?

It means that you need to run the instalooter login command and enter your instagram login details

Be careful, though, your account might get blacklisted.

jhein05 avatar May 29 '21 11:05 jhein05

Be careful, though, your account might get blacklisted.

By logging into instagram? Or by downloading pictures? Who says you'll get blacklisted for that?

ibex-are-goats avatar May 29 '21 11:05 ibex-are-goats