Avnsh1111 / Instagram-Reels-Scraper-Auto-Poster

Reels-AutoPilot: Reels-AutoPilot is a powerful GitHub repository that scrapes reels from specified Instagram accounts and automatically posts them to your account. Keep up with the latest content from your favorite creators and effortlessly share it with your followers. Enhance your Instagram presence and grow your account with Reels-AutoPilot!
GNU General Public License v3.0
196 stars 47 forks source link

Session.json failure #24

Open g-raffie opened 1 year ago

g-raffie commented 1 year ago

Hello, I'm having issues while using start.py at first run

Error: [WinError 2] The system cannot find the file specified: 'session.json'
    Initializing login...
    Logging with username and password...
Traceback (most recent call last):
  File "C:\Users\EMRE\AppData\Local\Programs\Python\Python311\Lib\site-packages\instagrapi\mixins\private.py", line 360, in _send_private_request
    response.raise_for_status()
  File "C:\Users\EMRE\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://i.instagram.com/api/v1/feed/reels_tray/

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\EMRE\AppData\Local\Programs\Python\Python311\Lib\site-packages\instagrapi\mixins\private.py", line 527, in private_request
    self._send_private_request(endpoint, **kwargs)
  File "C:\Users\EMRE\AppData\Local\Programs\Python\Python311\Lib\site-packages\instagrapi\mixins\private.py", line 393, in _send_private_request
    raise ChallengeRequired(**last_json)
instagrapi.exceptions.ChallengeRequired: challenge_required

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\EMRE\AppData\Local\Programs\Python\Python311\Lib\site-packages\instagrapi\mixins\private.py", line 360, in _send_private_request
    response.raise_for_status()
  File "C:\Users\EMRE\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://i.instagram.com/api/v1/feed/reels_tray/

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\TokDep\Instagram-Reels-Scraper-Auto-Poster\src\start.py", line 184, in <module>
    auth.login()
  File "C:\TokDep\Instagram-Reels-Scraper-Auto-Poster\src\auth.py", line 29, in login
    api.login(config.USERNAME, config.PASSWORD)
  File "C:\Users\EMRE\AppData\Local\Programs\Python\Python311\Lib\site-packages\instagrapi\mixins\auth.py", line 472, in login
    self.login_flow()
  File "C:\Users\EMRE\AppData\Local\Programs\Python\Python311\Lib\site-packages\instagrapi\mixins\auth.py", line 186, in login_flow
    check_flow.append(self.get_reels_tray_feed("cold_start"))
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\EMRE\AppData\Local\Programs\Python\Python311\Lib\site-packages\instagrapi\mixins\auth.py", line 277, in get_reels_tray_feed
    return self.private_request("feed/reels_tray/", data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\EMRE\AppData\Local\Programs\Python\Python311\Lib\site-packages\instagrapi\mixins\private.py", line 546, in private_request
    return self._send_private_request(endpoint, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\EMRE\AppData\Local\Programs\Python\Python311\Lib\site-packages\instagrapi\mixins\private.py", line 393, in _send_private_request
    raise ChallengeRequired(**last_json)
instagrapi.exceptions.ChallengeRequired: challenge_required
ricky-smith4 commented 11 months ago

Did you find the solution?

RyujiXX commented 8 months ago

emre hocam unable to open database file sorununu çözebildiniz mi?