-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Multiple filter? #119
Comments
Not currently, but I’d be happy to accept a PR to add it! There’s actually a big TODO comment in the code about it: Lines 639 to 657 in e633e86
You need to change the part in lines 650-657 to do different conversions for each option (instead of the same generic conversion for every option). The value should be a |
The `filter_field` parameter for `WaybackClient.search()` can now be a list or tuple of strings, letting you add multiple filters. For example, to search for all captures at `nasa.gov` with a 404 status and “feature” somewhere in the URL: ```python client.search('nasa.gov/', match_type='prefix', from_date=date(2022, 1, 1), to_date=date(2022, 2, 1), filter_field=['statuscode:404', 'urlkey:.*feature.*']) ``` Thanks to @BilibalaX for starting this in #120. Fixes #119.
Is it possible to add multiple filter fields?
The text was updated successfully, but these errors were encountered: