No project description provided
Project description
S3 Web Cache
This is a simple package for archiving web pages (HTML) to S3. It acts as a cache serving the S3 version of the page if it exists. If not it writes a version to s3.
Quickstart
Install
pip install s3webcache
Usage
from s3webcache import S3WebCache
s3wc = S3WebCache(
bucket_name=<BUCKET>,
aws_access_key_id=<AWS_ACCESS_KEY_ID>,
aws_secret_key=<AWS_SECRET_ACCESS_KEY>,
aws_default_region=<AWS_DEFAULT_REGION>)
request = s3wc.get("https://en.wikipedia.org/wiki/Whole_Earth_Catalog")
if request.success:
html = request.message
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
S3WebCache-0.1.6.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for S3WebCache-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ef06b3f14a3818aefbc22ae608ac58d81fad7d529f5f3dab7685f7ca79ff2aa |
|
MD5 | 28aa1046520b9f4c3ea28e334c442da0 |
|
BLAKE2b-256 | ee6451a0a516e71f3316a028bbe09b8eb6883a0cd36a571de713c4cedb403998 |