Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

webcitation

A simple Python wrapper for the webcitation.org capturing service.

PyPI version Build Status Coverage Status

Installation

$ pip install webcitation

Python Usage

Import it.

>>> import webcitation

Capture a URL.

>>> archive_url = webcitation.capture("http://www.example.com/")

See where it's stored.

>>> print archive_url
http://www.webcitation.org/6lSLkrUdV

Command-line usage

The Python library is also installed as a command-line interface. You can run it from your terminal like so:

$ webcitation 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: webcitation [OPTIONS] URL

  Archives the provided URL using the webcitation.org capturing service.

Options:
  -ua, --user-agent TEXT  User-Agent header for the web request
  --help                  Show this message and exit.

About

A simple Python wrapper for the webcitation.org capturing service

Topics

Resources

License

Packages

No packages published
You can’t perform that action at this time.