Skip to content
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

[Instagram] Add tagged_users to keywords for stories (#2582) #2584

Merged
merged 5 commits into from
May 25, 2022

Conversation

Infinitay
Copy link
Contributor

Closes #2582. Adds mentioned users on Instagram stories to the metadata extracted by gallery-dl.

Example usage: gallery-dl -u <username> -p <password> -o extractor.instagram.include="stories" --filter "'tagged_users' in locals() and '<filter_username>' in [x['username'] for x in tagged_users]" --mtime-from-date <instagram_url>

First it'll check to make sure if tagged_users is found within the list of keywords1 with 'tagged_users' in locals() and then it will also check to see if the supplied username is found within the list of tagged users with '<filter_username>' in [x['username'] for x in tagged_users].

1: Keywords as in the content's metadata that is displayed when using -K or -j or --list-keywords

on another note, why don't we implement a key check so that users don't have to add a <x> in locals() check to their filter

@mikf
Copy link
Owner

mikf commented May 20, 2022

While testing your code, I couldn't find any reel_mentions data anywhere. Any stories with tagged users did so via stickers (story_bloks_stickers) and reels via usertags, which are now also supported (e85ddf3).

Do you have a concrete example for a story or anything that uses the data structure like you mentioned in #2582?

@Infinitay
Copy link
Contributor Author

While testing your code, I couldn't find any reel_mentions data anywhere.

That's weird. When I searched the data for the tagged username it appeared under reel_mentions. Unfortunately I don't have an example at this time. I'll look into it more when I get the chance. Hopefully no more than 24 hours.

Thank you for the additions by the way.

@mikf mikf merged commit f545255 into mikf:master May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Instagram] Expose Story mentions to keywords (-K/-j)
2 participants