Closed AleksFimin closed 1 year ago
Highlights are not accessible when not logged in (via web browser or yt-dlp).
This is an issue with logging in. See also: #5154, although this error is new.
Is it possible to authorize automatically?
Is it possible to authorize automatically?
since login w/credentials seems to be broken for this extractor currently, the only way is to use --cookies-from-browser
or --cookies
And the cookie is temporary, it turns out it will need to update manually the cookie after some time?
--cookies-from-browser
will extract the instagram cookies from your browser's cookie storage each time you run yt-dlp with that option. If you have logged into instagram or browsed instagram while logged in with your browser recently, the cookies should be up-to-date.
I would caution you to use your login cookies only when absolutely necessary / sparingly, since usage of yt-dlp (and other 3rd party tools) can be detected by instagram and it could lead to an account suspension or ban.
Thanks for the advice, but isn't there a way to download a lot of videos automatically without getting blocked?
And the cookie is temporary, it turns out it will need to update manually the cookie after some time?
In my experience, the login cookie generated by your browser will generate a cookie file that contains a "sessionid" cookie. When this cookie and other cookies are still valid and not expired, then you can download just about anything from Insta. However, the sessionid cookie expires after about 4 hours?, while the other cookies last much longer. This means that after ~4 hours, a sizable percentage of videos will stop downloading because the sessionid has expired. But, there are still many videos that can download even with an expired sessionid.
Since Insta login auth logic is broken, the only recourse (currently), IF you want to download as many Insta videos as possible all of the time, is to manually generate a cookie file every ~4 hours. In terms of automation, that is an awful solution. But that is where we're at right now.
Closing in favor of #5154
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
Region
Uzbekistan
Provide a description that is worded well enough to be understood
I can't get information about instagram highlits. If you specify --cookies-from-browser, everything is fine
Provide verbose output that clearly demonstrates the problem
yt-dlp -vU <your command line>
)[debug] Command-line config
) and insert it belowComplete Verbose Output