skyme5 / snapchat-dl

Snapchat story downloader
MIT License
71 stars 13 forks source link

APIResponseError exception occurred #11

Closed skyme5 closed 3 years ago

skyme5 commented 3 years ago

Description

Getting snapchat_dl.utils.APIResponseError

What I Did

$> snapchat-dl -P Z:/Snapchat -s
2021-10-13 10:56:49.021 | INFO     | snapchat_dl.utils:use_prefix_dir:128 - Added 165 usernames from Z:/Snapchat
Traceback (most recent call last):
  File "c:\python\python38\lib\site-packages\snapchat_dl\snapchat_dl.py", line 65, in _web_fetch_story
    user_info = util_web_user_info(response_json)
  File "c:\python\python38\lib\site-packages\snapchat_dl\utils.py", line 167, in util_web_user_info
    return content["props"]["pageProps"]["userProfile"]["publicProfileInfo"]
KeyError: 'publicProfileInfo'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\python\python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "c:\python\python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Python\Python38\Scripts\snapchat-dl.exe\__main__.py", line 7, in <module>
  File "c:\python\python38\lib\site-packages\snapchat_dl\app.py", line 57, in main
    download_users(usernames)
  File "c:\python\python38\lib\site-packages\snapchat_dl\app.py", line 52, in download_users
    downlaoder.download(username)
  File "c:\python\python38\lib\site-packages\snapchat_dl\snapchat_dl.py", line 81, in download
    stories, snap_user = self._web_fetch_story(username)
  File "c:\python\python38\lib\site-packages\snapchat_dl\snapchat_dl.py", line 68, in _web_fetch_story
    raise APIResponseError
snapchat_dl.utils.APIResponseError