archiveis

A simple Python wrapper for the archive.is capturing service

Popularity
2.6
Stable
Activity
4.2
-
210
10
18

Description

A simple Python wrapper for the archive.is capturing service.

Programming language: Python
License: MIT License

archiveis alternatives and similar packages

Based on the "Downloader" category.
Alternatively, view archiveis alternatives based on common mentions on social networks and blogs.

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.

Do you think we are missing an alternative of archiveis or a related project?

Add another 'Downloader' Package

README

archiveis

A simple Python wrapper for the archive.is capturing service.

PyPI version Build Status Versions supported Coverage Status

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
https://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 .

Do not miss the trending, packages, news and articles with our weekly report.

Awesome Python is part of the LibHunt network. Terms. Privacy Policy.

(CC)
BY-SA
We recommend Spin The Wheel Of Names for a cryptographically secure random name picker.

AltStyle によって変換されたページ (->オリジナル) /