Crates.io | curlall |
lib.rs | curlall |
version | 0.2.0 |
source | src |
created_at | 2020-06-08 10:40:12.503475 |
updated_at | 2020-07-01 02:15:32.738498 |
description | Simple curl-like CLI tool to automatically page through APIs. |
homepage | |
repository | https://github.com/robinst/curlall |
max_upload_size | |
id | 251317 |
size | 265,931 |
Simple curl-like CLI tool to automatically page through APIs.
jq
Tested with GitHub and Bitbucket APIs. Other websites will have different ways to do paging, so let me know if it doesn't work for yours and we can add support.
Print all repository names on bitbucket.org/atlassian:
curlall https://api.bitbucket.org/2.0/repositories/atlassian | jq -r .full_name
Limit to first 100:
curlall --limit 100 https://api.bitbucket.org/2.0/repositories/atlassian | jq -r .full_name
Print all URLs for users who starred github.com/rust-lang/rust:
curlall --user 'username:token' https://api.github.com/repos/rust-lang/rust/stargazers | jq -r .login
cargo install curlall
Pull requests, issues and comments welcome!
curlall is distributed under the terms of both the MIT license and the Apache License (Version 2.0). See LICENSE-APACHE and LICENSE-MIT for details. Opening a pull requests is assumed to signal agreement with these licensing terms.