PyGithub:如何使用get_存储库搜索多个主题

2024-05-15 13:19:26 发布

您现在位置:Python中文网/ 问答频道 /正文

使用PyGithub,我尝试使用多个主题搜索github存储库

这适用于一个主题:

Github.search_repositories("topic:topicname1")

但我如何添加其他内容?我试过“topic:topicname1+topic:topicname2”,但似乎不起作用。添加多个主题参数也不起作用


Tags: github内容主题search参数topicpygithubrepositories
1条回答
网友
1楼 · 发布于 2024-05-15 13:19:26

有一件很明显很愚蠢的事情我忘了去尝试,它成功了!在每个主题之间留出一个空格

Github.search_repositories("topic:topicname1 topic:topicname2")

相关问题 更多 >