Metadata-Version: 2.1
Name: get-wayback-machine
Version: 0.1.2
Summary: Fetch a URL via the latest Wayback Machine Snapshot
Home-page: https://github.com/jfilter/get-wayback-machine
Author: Johannes Filter
Author-email: hi@jfilter.de
License: MIT
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: License :: OSI Approved :: MIT License
Description-Content-Type: text/markdown
Requires-Dist: get-retries

# get-wayback-machine [![Build Status](https://travis-ci.com/jfilter/get-wayback-machine.svg?branch=master)](https://travis-ci.com/jfilter/get-wayback-machine) [![PyPI](https://img.shields.io/pypi/v/get-wayback-machine.svg)](https://pypi.org/project/get-wayback-machine/) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/get-wayback-machine.svg)](https://pypi.org/project/get-wayback-machine/)

Fetch a URL via the latest Wayback Machine Snapshot.

## Why?

Occasionally, you have a given URL that it is not online anymore. You may still access it's content via the Internet Archive's [Wayback Machine](https://archive.org/web/).

## Install

```bash
pip install get_wayback_machine
```

## Usage

```python
import get_wayback_machine

response = get_wayback_machine.get('https://en.wikipedia.org')
if response:
    print(response.status_code)
```

The response is either `None` (for fails) or a [Requests](http://docs.python-requests.org/en/master/) response. This module uses [get-retries](https://github.com/jfilter/get-retries) internally to fetch the data.

## Related

-   https://github.com/hartator/wayback-machine-downloader
-   https://github.com/sangaline/wayback-machine-scraper
-   https://github.com/jsvine/waybackpack

## License

MIT.


