Most "popular" Python repositories on GitHub

Based on the v3 documentation , I would think this:

$ curl https://api.github.com/legacy/repos/search/python?language=Python&sort=forks&order=desc

will return the top 100 Python repositories in descending order of the number of forks. It actually returns an empty (json) list of repositories.

It:

$ curl https://api.github.com/legacy/repos/search/python?language=Python&sort=forks

returns a list of repositories (in json), but many of them are not listed as Python repositories.

So it’s clear that I misunderstood the Github API. What is an acceptable way to get top N repositories for a particular language?

+5
source share
3 answers

pengwynn - GitHub API. GitHub: 100 GitHub ?

, GitHub SQL- . , , https://bigquery.cloud.google.com/?pli=1, 100 Python 1 2013 (), :

SELECT MAX(repository_forks) as forks, repository_url 
 FROM [githubarchive:github.timeline] 
 WHERE (created_at CONTAINS "2013-04-01" and repository_language = "Python") 
 GROUP BY repository_url 
 ORDER BY forks 
 DESC LIMIT 100

Gist CSV, :

forks  repository_url
1913   https://github.com/django/django
1100   https://github.com/facebook/tornado
994    https://github.com/mitsuhiko/flask
...
+3

API - , .

?, :keyword. , API GitHub .

+3
0
source

All Articles