Skip to content

Filter all tags instead of just a subset #123

Open
@BurnzZ

Description

@BurnzZ

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!

Activity

stav

stav commented on Jun 23, 2019

@stav
Contributor

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @stav@Gallaecio@BurnzZ

        Issue actions

          Filter all tags instead of just a subset · Issue #123 · scrapinghub/python-scrapinghub