CLI tool for fetching data using HTTP conditional get
Project description
conditional-get
CLI tool for fetching data using HTTP conditional get.
Installation
pip install conditional-get
Usage
conditional-get https://static.simonwillison.net/static/2020/Simon_Willison__TIL.png
This will save to a filename derived from the URL.
conditional-get https://static.simonwillison.net/static/2020/Simon_Willison__TIL.png -o til.png
Use -o
to specify a filename.
By default the ETags for the retrieved URLs will be stored in a etags.json
file in the current directory.
Use --etags otherfile.json
to store that file somewhere else.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file conditional_get-0.1a0-py3-none-any.whl
.
File metadata
- Download URL: conditional_get-0.1a0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a80f85df0427611ced6461d12536a88cdb44e57a897f12cf2c0c353c1185b5e |
|
MD5 | 8403aa11b2305b95799dd3a51b350d27 |
|
BLAKE2b-256 | aed7687d703da4153efc5a10b1573bed825b26cafd809153b98c46b07cfc911b |