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

Filter all tags instead of just a subset #123

Open
BurnzZ opened this issue Jun 14, 2019 · 1 comment
Open

Filter all tags instead of just a subset #123

BurnzZ opened this issue Jun 14, 2019 · 1 comment

Comments

@BurnzZ
Copy link
Contributor

BurnzZ commented Jun 14, 2019

We're looking into using the has_tag param in the jobs.iter() method: https://github.com/scrapinghub/python-scrapinghub/blob/master/scrapinghub/client/jobs.py#L89

However, it behaves as an OR operator. Is there a way to have an AND operator for this API?

We're looking to pass a list of tags to have a more accurate filtering of jobs, so having the AND operator would really help.

Thanks!

@stav
Copy link
Contributor

stav commented Jun 23, 2019

I also needed this behavior and implemented it in https://bitbucket.org/scrapinghub/bine
See the demo: http://104.237.140.142/bine/demo/all-tags.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants