mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
10.66k stars 880 forks source link

redgifs filtering user tags #5755

Closed xbbdc closed 1 week ago

xbbdc commented 1 week ago

Hello. Newbie to gallery-dl. I've tried searching for an answer before posting here and couldn't fine one. I found with the -K option, I am getting the following tags listed:

tags[N] 0 Anal 1 Ass 2 Big Dick 3 OnlyFans 4 Pussy 5 Teen 6 Tits

However, there are way more tags than that on the user page.

image

When I try downloading using the --filter command, I've tried tags[0] , tags 0 , tags=Anal but none are filtering based on the category. The last two give an error, while the first has no error, but not filtering the right videos.

Error is [redgifs][warning] invalid syntax (, line 1)

I've found that when clicking on the category, the site filters them out like this https://api.redgifs.com/v2/users/username/search?order=new&count=40&page=1&tags=Anal but using this api url doesn't work. I also tried adding the tags=Anal at the end of the normal url like so https://www.redgifs.com/users/username/search?tags=Anal or the full thing after search? but that will redirect to the main homepage.

I also ran the --list-extractors and did not see anything about it either.

Am I doing something wrong or is it not supported at this time?

Thanks!

mikf commented 1 week ago
--filter "'Tits' in tags"

It is possible to combine multiple conditions like this with and and or, or by using contains(...) to check if at least one of the given tags is present:

--filter "'Tits' in tags or 'Boobs' in tags"
--filter "contains(tags, ('Tits', 'Boobs'))"
xbbdc commented 1 week ago

that worked, thank you!