search engine - is there any link to show all public repositories in GitHub? -
Yesterday, I was trying to get a list of all public repositories in GitHub, but I did not find any link. / P>
For example and in Source Forge you can list all the categories by categories or in the Google code, you can search all for all the projects.
Yes, I can see only this page, such as "*" or "%" or empty string, but
You can list all the repositories in the Gitub by using the following request:
This id> 0" 0 "treasures before JSON will return to the array as the array you should process on "n", "id" should be stored when you reach the end of the "page", then you just hit it again with the previous id: eg For loan:
This is all the way I have been searching for a list of all the treasures, because there is a limit of 1000 repo per search in the search API, if you have all the repo If you intend to process, then you should be prepared to deal with the rate range:
Certified users get better limits, you can use access_token (See documentation). Be careful, do not push on too many requests, if you have to filter the repo, then you will need to do an additional query (search APIs) for each repo. Be prepared to deal with more than one million treasures Java Example: (with javax.json.Json)
int id = 0; Do {URL url = new URL ("https://api.github.com/repositories?since=" + id + "and access_token =" + oauth "); // call API such as Jason.Creator (URL.openstream ()), But please sleep it for a minute, if the limit has been tried (JasonReader RDR = call API (URL) {JasonArea Results = RADARARA (for;) (JasonObject Results: Results GateValuesAs (Jason Obs. Class )) {Id = result.getInt ("id"); String name = result .getString ("name"); Boolean private = result.Botolian (" Private "); ... whatever you want ...}}} While (some stop condition);
Good luck, I've lost some time to find it.
Comments
Post a Comment