RyanLua / InstaWebhooks

Discord webhooks for new Instagram posts from any account. Get notified of posts from Instagram to your Discord server.
https://pypi.org/project/instawebhooks
MIT License
4 stars 1 forks source link

11/08/2024 09:52:27 AM - CRITICAL - instaloader: error: Redirected to login page. Use --login or --load-cookies. Not logged into Instaloader #16

Open mike855 opened 13 hours ago

mike855 commented 13 hours ago

Description

Hello,

Seems that instaloader do not work without --login even for public profiles. I'm logged in on instaloader, session file is present. But instawebhooks do not seems to use it

Have a nice day

Expected behavior

No response

Actual behavior


[mmuguet@muguet ~]$ instaloader --login michaelmuguet
Loaded session from /home/mmuguet/.config/instaloader/session-michaelmuguet.
Logged in as michaelmuguet.
Saved session to /home/mmuguet/.config/instaloader/session-michaelmuguet.
No targets were specified, thus nothing has been downloaded.
[mmuguet@muguet ~]$ instawebhooks michaelmuguet https://discord.com/api/webhooks/1304352859214839839/YUJy3lTfAQcgthtbwSZW1moJWKJKjadB211OqVcQ4y-TJe6vdUnYDbI1X1IQQTRrNWAx
11/08/2024 09:52:27 AM - INFO - Starting InstaWebhooks...
11/08/2024 09:52:27 AM - INFO - InstaWebhooks started successfully.
11/08/2024 09:52:27 AM - INFO - Monitoring 'michaelmuguet' every 3600 seconds on ̀https://discord.com/api/webhooks/1304352859214839839/YUJy3lTfAQcgthtbwSZW1moJWKJKjadB211OqVcQ4y-TJe6vdUnYDbI1X1IQQTRrNWAx.
11/08/2024 09:52:27 AM - INFO - Checking for new posts

HTTP redirect from https://i.instagram.com/api/v1/users/web_profile_info/?username=michaelmuguet to https://i.instagram.com/accounts/login/?next=/api/v1/users/web_profile_info/
11/08/2024 09:52:27 AM - CRITICAL - instaloader: error: Redirected to login page. Use --login or --load-cookies.
Not logged into Instaloader.
  instaloader --login YOUR-USERNAME

Steps to reproduce

No response

Other details

No response

InstaWebhooks version

0.1.3

Python version

3.9.18

Platform

Linux

Code of Conduct

RyanLua commented 5 hours ago

Quite a few people are getting the login error even when logged in. Instagram heavily rate limits you even when logged in. From my personal experience I recommend the following:

I will likely increase the default refresh interval in a future version to avoid rate limiting.

Related Links

https://github.com/RyanLua/InstaWebhooks/discussions/15 https://github.com/instaloader/instaloader/issues/1617