Py-StackExchange filter by tag

后端 未结 1 503
时光取名叫无心
时光取名叫无心 2021-01-06 15:44

I\'m using Py-StackExchange to get a list of recent questions from Stack Overflow. I know there is a way to get just a constant list of questions:

import sta         


        
相关标签:
1条回答
  • 2021-01-06 16:14

    Use tagged keyword argument.

    For example:

    for question in so.questions(tagged=['python'], pagesize=10):
        print question
        assert 'python' in question.tags
    

    Specifying tagged=['python', 'loops'] will filter question that is tagged both python and loops.

    0 讨论(0)
提交回复
热议问题