Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Python wrapper around the perma.cc API

Project description

pypermacc

Python3 wrapper for the perma.cc API (partial implementation, pull requests welcome)

Installation

Install from pypi : pip install pypermacc

Install from the source code :

git clone https://github.com/Te-k/pypermacc.git
cd pypermaa
pip install .

Usage

Without private key:

from pypermacc import Permacc
perm = Permacc()

# Download public archives
archives = p.public_archives()

# Get detail on the first one
details = p.archive_detail(archives['objects'][0]['guid'])

# Download warc file
warc = p.archive_download(archives['object'][0]['guid'])

With a private key

from pypermacc import Permacc
perm = Permacc(KEY)

# Save a webpage
saved = pp.archive_create('https://perma.cc/') # Inception

License

This code is publised under the MIT license

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pypermacc, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size pypermacc-0.1.1-py3-none-any.whl (3.8 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page