← Back to team overview

kicad-lib-committers team mailing list archive

Re: Fwd: Re: Library build process

 

You can examine that header, and query page by page. See
here<http://stackoverflow.com/questions/18668677/github-api-issues-pagination-trouble>
.

I just wanted to point that out, but it's now obvious the python way is
much simpler.


On Mon, Jan 6, 2014 at 2:31 AM, Johannes Spanier <jospanier@xxxxxx> wrote:

> Hi Carl,
>
>  You can also not use python to get the repo list. Curl and the github
>> API will do it. Have a look here
>> <http://jakoch.de/2012/09/24/clone-repositories-github-organization/>.
>>
>
>
> I actually tried this script before I wrote my script.
> The curl method does not work here because the GitHub API output is
> paginated. With this method, you will only get the first 20 or so repos
> (see first comment on that page). What is worse is that the total page
> count is only available in the http response header, so no good for curl.
>
>
> Regards
> Johannes
>
>
> --
> Mailing list: https://launchpad.net/~kicad-lib-committers
> Post to     : kicad-lib-committers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-lib-committers
> More help   : https://help.launchpad.net/ListHelp
>

References