使用Java语言获取githubapi的所有python用户的列表

2024-04-25 22:20:32 发布

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

这是我第一次尝试使用githubapiv3,我想知道如何获得使用特定技术的用户列表。你知道吗

我可以看到,通过API可以得到如下列表:

https://api.github.com/search/users?q=python&page=2&per_page=25

问题是当我尝试使用java对API进行相同的调用时。你知道吗

    RepositoryService service = new RepositoryService(client);
        searchQuery.put("keyword","python");
        searchQuery.put("page","1");
        searchQuery.put("per_page","10");
    List<SearchRepository> searchRes = null;
        searchRes = service.searchRepositories(searchQuery);

这根本不管用。在java的API中,我找不到如何获取用户列表、分页以及之后获取每个用户的信息。你知道吗

有人能给我一个线索吗?你知道吗

提前谢谢。你知道吗


Tags: 用户httpsgithubapi列表putservicepage