Skip to content

Is there a way to exclude downloading images/gifs which have a certain tag/word in them? (Kemonoparty) #5177

Closed Answered by mikf
Zeck1e asked this question in Q&A
Discussion options

You must be logged in to vote

filter out multiple strings with regex?

https://www.regular-expressions.info/alternation.html
--filter "not re.search(r'(?i)wip|t[ai]melapses?|sketch|process', filename)"

that the filter on strings etc doesnt work?

does it or not?

Anyway, to use multiple --filter expressions you need to combine them with and/or in one string,
--filter "extension not in ('psd',) and not re.search(r'(?i)wip|t[ai]melapses?|sketch|process', filename)"

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@Zeck1e
Comment options

@mikf
Comment options

Answer selected by Zeck1e
@Zeck1e
Comment options

@mikf
Comment options

@Zeck1e
Comment options

@mikf
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants