A simple Python wrapper for the archive.is capturing service
Project description
archiveis
A simple Python wrapper for the archive.is capturing service.
Installation
pipenv install archiveis
Python Usage
Import it.
>>> import archiveis
Capture a URL.
>>> archive_url = archiveis.capture("http://www.example.com/")
See where it's stored.
>>> print archive_url
http://archive.md/WxlRK
If a URL has been recently cached, archive.is may return the URL to that page rather than conduct a new capture.
Command-line usage
The Python library is also installed as a command-line interface. You can run it from your terminal like so:
archiveis http://www.example.com/
The command has the same options as the Python API, which you can learn about from its help output.
$ archiveis --help
Usage: archiveis [OPTIONS] URL
Archives the provided URL using the archive.is capturing service.
Options:
-ua, --user-agent TEXT User-Agent header for the web request
--help Show this message and exit.
Contributing
Install dependencies for development.
pipenv install --dev
Run tests.
make test
Ship new version to PyPI
make ship
Developing the CLI
The command-line interface is implemented using Click and setuptools. To install it locally for development inside your virtual environment, run the following installation command, as prescribed by the Click documentation.
pip install --editable .
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file archiveis-0.0.9.tar.gz
.
File metadata
- Download URL: archiveis-0.0.9.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f4c2219e5bc1bc04adeffb754446f28b80847e9ff95020fff8e90fb298346cf |
|
MD5 | c1a1275978e4a1cb8e42a4d9ba8ff7f8 |
|
BLAKE2b-256 | d3c3d26c384be0fd840defc862b07b50b02566d603a2e588170e48bee63fa4b5 |
File details
Details for the file archiveis-0.0.9-py2.py3-none-any.whl
.
File metadata
- Download URL: archiveis-0.0.9-py2.py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52ba2273f3fa0b18a5654f18a428a6a2469bc2bf470629f6df0c8972fbf387a7 |
|
MD5 | 6161b939564606fe57d98e4770fe4db7 |
|
BLAKE2b-256 | 26742bfd22566a4438346d177ed4e43c8caca797c72067b14998014ac3e0f25a |