PyGithub搜索限定符,如何使用

时间:2016-08-23 18:41:55

标签: python github github-api pygithub

我希望使用PyGithub库函数搜索github用户:

     <html>
        <head>

         <style>

    @import url(https://fonts.googleapis.com/css?family=Lora);
    <link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css">
    <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto+Slab">



       </style>
   </head>


     <body>

      <div class="nav-bar-block">
         <h1>Title</h1>
      </div> 
    </body>

 </html>

文档说:

github.search_users('Keyword', qualifiers = {'location':'San Francisco})

在使用限定符时我做错了什么?当我只有一个关键字时,它可以很好地工作,但是当我添加任何限定符时,它会停止返回任何搜索结果。 (我已经使用github高级搜索仔细检查了结果实际上与此查询匹配。

1 个答案:

答案 0 :(得分:1)

您可以尝试将其称为

github.search_users('Keyword', location='San Francisco')

请参阅this帖子,了解如何使用args作为限定词。