Skip to content

mweitzel/pagicurl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

pagicurl

Curl paginated results. This script wraps curl and follows pagination headers for succesive calls.

Uses the Link Header as defined here: http://tools.ietf.org/html/rfc5988#section-5

Only works with json response types

Works just like curl, and accepts all flags, but requires uri to come first.

Calling this:

$ ./pagicurl https://api.github.com/user/repos -H "Authorization: token $GITHUB_API_TOKEN"

will return a json array of all repositories

where this:

$ curl https://api.github.com/user/repos -H "Authorization: token $GITHUB_API_TOKEN"

would only return up to the first 30 results

About

Paginating curl results, for JSON endpoints

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages