althonos / InstaLooter

Another API-less Instagram pictures and videos downloader.
GNU General Public License v3.0
2.01k stars 256 forks source link

downloads fail with CRITICAL 'PostPage' #309

Open LazyBoot opened 3 years ago

LazyBoot commented 3 years ago

Library version

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

instalooter v2.4.4

Environment

Describe here your environment, including:

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'```
bialyrycerz commented 3 years ago

Same issue on Mac with 2.4.4_1, macos 10.15.7.

jhein05 commented 3 years ago

Same here. Mac 10.14.6, Python 3.8.6

bjente commented 3 years ago

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.

SsJVasto commented 3 years ago

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

ghost commented 3 years ago

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.

richieadler commented 3 years ago

Same error in Windows 7, instalooter 2.4.4, python 3.8.5

max-arnold commented 3 years ago
 /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.

aalliikk commented 3 years ago
 /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?

max-arnold commented 3 years ago

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

jhein05 commented 3 years ago

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 commented 3 years ago

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.

ibex-are-goats commented 3 years ago

Be careful, though, your account might get blacklisted.

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