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
166 stars 44 forks source link

It stopped working #17

Closed arda1984 closed 10 months ago

arda1984 commented 1 year ago

Describe the bug Everything was fine when running start.py but after 5 posts posting every 4 hours each it start.py stopped somehow, it logs in and just does nothing. I thought that this may have something to do with the session so I deleted session.json and tried running it again, this time it logged in but didn't do anything even though I kept running start.py for like an hour. As you can see on the screenshot it just stays like this

Expected behavior Log in and start posting with the interval given as always.

Screenshots ![Ekran görüntüsü 2023-06-25 144014](https://github.com/Avnsh1111/Instagram-Reels-Scraper-Auto-Poster/assets/70358147/643bbfa4-0a3b-413e-8b5c-6c78

Version Newest one

Additional context Thank you for reviewing the problem

arda1984 commented 1 year ago

Ekran görüntüsü 2023-06-25 144014

mitanshh227k commented 1 year ago

Same genuine issue.

It's stuck in

Press Enter to start the setup... Are you running this tool for first time? (y/n) : n Initializing login... Logging with previous session...

Avnsh1111 commented 1 year ago

Okay, I will check this issue. for more quick response you can DM me in insta : @avnshrathod

Bussin537 commented 1 year ago

Okay, I will check this issue. for more quick response you can DM me in insta : @avnshrathod

Same problem

arda1984 commented 1 year ago

Okay, I will check this issue. for more quick response you can DM me in insta : @avnshrathod

I tried running the code again and this might be the problem: Ekran görüntüsü 2023-06-29 213208

`Traceback (most recent call last): File "C:\Users\Arda\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\instagrapi\mixins\private.py", line 342, in _send_private_request response.raise_for_status() File "C:\Users\Arda\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\requests\models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://i.instagram.com/api/v1/feed/timeline/

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "D:\Instagram-Reels-Scraper-Auto-Poster-2.0\src\app.py", line 18, in api = auth.login() File "D:\Instagram-Reels-Scraper-Auto-Poster-2.0\src\auth.py", line 23, in login api.get_timeline_feed() File "C:\Users\Arda\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\instagrapi\mixins\auth.py", line 218, in get_timeline_feed return self.private_request( File "C:\Users\Arda\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\instagrapi\mixins\private.py", line 492, in private_request raise e File "C:\Users\Arda\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\instagrapi\mixins\private.py", line 477, in private_request self._send_private_request(endpoint, kwargs) File "C:\Users\Arda\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\instagrapi\mixins\private.py", line 416, in _send_private_request raise ClientError(e, response=e.response, last_json) instagrapi.exceptions.ClientError: Please wait a few minutes before you try again.`

Amagedon5 commented 1 year ago

Same

arda1984 commented 1 year ago

We are slowly getting closer to the solution, I thought that I visit https://i.instagram.com/api/v1/feed/timeline/ by google chrome and it turned out that it gives a json response saying that we should wait a couple minutes, even though I waited for days. So I decided to turn a vpn on and it seems to have fixed that problem, I thought that I restart "start.py" then, after it asked me if I run that file the first time I said no, then some other error came unfortunately:

`Press Enter to start the setup... Are you running this tool for first time? (y/n) : n Initializing login... Logging with previous session... Traceback (most recent call last): File "C:\Users\Arda\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\instagrapi\mixins\private.py", line 342, in _send_private_request response.raise_for_status() File "C:\Users\Arda\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\requests\models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://i.instagram.com/api/v1/feed/timeline/

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "D:\Instagram-Reels-Scraper-Auto-Poster-2.0\src\app.py", line 18, in api = auth.login() File "D:\Instagram-Reels-Scraper-Auto-Poster-2.0\src\auth.py", line 23, in login api.get_timeline_feed() File "C:\Users\Arda\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\instagrapi\mixins\auth.py", line 218, in get_timeline_feed return self.private_request( File "C:\Users\Arda\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\instagrapi\mixins\private.py", line 492, in private_request raise e File "C:\Users\Arda\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\instagrapi\mixins\private.py", line 477, in private_request self._send_private_request(endpoint, kwargs) File "C:\Users\Arda\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\instagrapi\mixins\private.py", line 366, in _send_private_request raise LoginRequired(response=e.response, last_json) instagrapi.exceptions.LoginRequired: login_required`

Avnsh1111 commented 10 months ago

Resolved in latest commit @arda1984 @mitanshh227k @Bussin537 @Amagedon5