-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
feat: add --reels flag for downloading Reels videos from profiles #2355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Needed feature. Please merge it |
|
Very needed feature. The current wave of content creators are using IG similarly to Tiktok and have only a few hundred posts but multiple hundreds to thousands of reels |
|
@exwm A quick note as I just tested your update: When downloading reels vs stories or posts, the total count isn't functioning as expected. For example, I just downloaded the reels for a certain profile. Instead of [1/22], [2/22], [3/22]...[22/22], it was just [1], [2], [3]...[22] then done. Could this be a bug, or just that IG doesn't give a total for reels like posts? Is that what you meant in your notes on structures.py? Also could be user error as I didn't update to your branch, but edited my library to match your update. I can restore to my backup and reupdate if you think I'm wrong. |
|
using Edit: it looks like |
Yes, I wasn't able to find a total count for reels so that is expected. |
aandergr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for figuring this out! This is a well-desired feature. I have only some very minor suggestions and then we are happy to merge :)
|
@exwm I installed your fork, but unfortunately, I am unable to download reels. I get the error Do you maybe have an idea on how to fix it? I tried to download the reels by running Thank you :) |
|
EDIT: Nvm, I actually broke profile downloading because I didn't update callers when I reordered function parameters. Should be fixed now. |
…rds compat * fixes doc uses of igtv instead of reels for reels-related features * ensure versionadded and versionchanged directives are added for new reels-related features
|
@exwm With the new version, the reels-download works now! Thanks a lot for the fix :) |
|
@exwm Hmmm. I seem to be running into an error and not sure why, because I thought references to "rhx_gis" this were removed. For this example, I'm currently scraping only stories. I use an arg file that has about 12 profiles in it. Then I run it from the CL. One of the 12 profiles is one that goes active and inactive every few days, so I keep it in the list just to let me know when she's back. Essentially, if I gat a message about the profile not existing and having to look it up by ID, I know the page is inactive. If it scrapes her, then it's back up. But after updating my setup to the files you've updated for the reels downloads, I've started getting the folowing: Using latest stamps from C:\Users\XXXX\AppData\Local\Instaloader\latest-stamps.ini. So it seems something in your code is breaking when we hit a profile we have to look up by ID. And calling something that I thought had been removed in a previous release? If I revert back to the previous, then I don't get the error. And yes, I could just delete the profile from my list, but that's just a workaround |
|
@MonkeyKingViper I think that's because this PR is against the upcoming v4.14 release and branch. This branch (https://github.com/instaloader/instaloader/tree/upcoming/v4.14) is based on v4.13 and has not incorporated v4.13.1 which removed rhx_gis. You could rebase onto 4.13.1 or master until this is sorted out by the maintainers. |
Ah, interesting. I didn't realize that but it makes total sense. Thank you. |
|
Thanks a lot! We merged it and created a pre-release v4.14rc1 with it included. |

Fixes #812.
Uses doc_id-based graphql queries identified from the IG web client. Requires fetching additional metadata for each reel which can eventually exhaust IG rate limits.