Metarchive was created during the need to analyse some archived sites from http://archive.org to create some metrics. In this endeavor certain procedures repeated itself over and over again, so I decided to put them to a package. In the spirit of Open Source I decided to make the project public, maybe someone out there can cut some corners using it. If so, great thing, let me know if you like to.
Please be reasonable when accessing pages archived by archive.org. It's a great project and there is no need to create excessive stress on their servers.
Below is a sample invocation of the library, for more information please have a look at the documentation.
from metarchive import create_url_analyser, AnalyseURL, ArchiveLink
analyse: AnalyseURL = create_url_analyser()
links: list[ArchiveLink] = list(
analyse(
'http://web.archive.org/web/20210101000012/http://example.com/'
)
)
print(links)
# Will yield something like
[
ArchiveLink(timestamp=datetime.datetime(2020, 11, 30, 23, 42, 54),
original_url=AnyUrl('https://example.com/', scheme='https', host='example.com', tld='com',
host_type='domain', path='/'), category=None),
ArchiveLink(timestamp=datetime.datetime(2021, 2, 1, 0, 5, 5),
original_url=AnyUrl('https://example.com/', scheme='https', host='example.com', tld='com',
host_type='domain', path='/'), category=None),
ArchiveLink(timestamp=datetime.datetime(2020, 12, 30, 23, 54, 41),
original_url=AnyUrl('http://example.com/', scheme='http', host='example.com', tld='com',
host_type='domain', path='/'), category=None),
ArchiveLink(timestamp=datetime.datetime(2021, 1, 2, 0, 7, 38),
original_url=AnyUrl('http://example.com/', scheme='http', host='example.com', tld='com',
host_type='domain', path='/'), category=None),
ArchiveLink(timestamp=datetime.datetime(2019, 12, 31, 23, 45, 1),
original_url=AnyUrl('http://example.com/', scheme='http', host='example.com', tld='com',
host_type='domain', path='/'), category=None),
ArchiveLink(timestamp=datetime.datetime(2022, 1, 1, 0, 19, 39),
original_url=AnyUrl('https://example.com/', scheme='https', host='example.com', tld='com',
host_type='domain', path='/'), category=None),
ArchiveLink(timestamp=datetime.datetime(2021, 1, 1, 0, 0, 12),
original_url=AnyUrl('http://web.archive.org/screenshot/http://example.com/', scheme='http',
host='web.archive.org', tld='org', host_type='domain',
path='/screenshot/http://example.com/'), category=None),
ArchiveLink(timestamp=datetime.datetime(2021, 1, 1, 0, 0, 12),
original_url=AnyUrl('http://example.com/', scheme='http', host='example.com', tld='com',
host_type='domain', path='/'), category=None),
ArchiveLink(timestamp=datetime.datetime(2021, 1, 1, 0, 0, 12),
original_url=AnyUrl('http://example.com/', scheme='http', host='example.com', tld='com',
host_type='domain', path='/'), category=None),
ArchiveLink(timestamp=datetime.datetime(2021, 1, 1, 0, 0, 12),
original_url=AnyUrl('https://www.iana.org/domains/example', scheme='https', host='www.iana.org',
tld='org', host_type='domain', path='/domains/example'), category=None)
]
Metadata
Release files for metarchive 0.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| metarchive-0.6.1.tar.gz | 23.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| metarchive-0.6.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 63.4 kB
Release files / metarchive-0.6.1.tar.gz
| Download URL | metarchive-0.6.1.tar.gz |
|---|---|
| Size | 23.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec1e64bde8d8c46dc04fc8fbb62c27b9f91b6bcb200dfd9e7055a9c2800de47e
|
|
BLAKE2b-256 checksum How to use checksums |
1ff3ba72f0e46a47bda34c92c3d0108e58d29a3ec26c51f82700ee2f8b9c545e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.2 Linux/5.13.0-35-generic
|
Release files / metarchive-0.6.1-py3-none-any.whl
| Download URL | metarchive-0.6.1-py3-none-any.whl |
|---|---|
| Size | 40.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d448d99e98d1a4cef52f8318d47b410bed475a53875df1f3b356f0267606515
|
|
BLAKE2b-256 checksum How to use checksums |
0e4495edbb5fd1bad0337021471c558badb46c36f12eeb72852e3a3e1e4dad2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.2 Linux/5.13.0-35-generic
|
Security for metarchive 0.6.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.