GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||
GeezerVison is showing pypi.org — waybackpy waybackpy 1.4A python wrapper for Internet Archive's Wayback Machine API. Archive pages and retrieve archived pages easily. pip install waybackpy==1.4 waybackpy
The waybackpy is a python wrapper for Internet Archive's Wayback Machine. Table of contentsInstallationUsing pip: pip install waybackpy UsageCapturing aka Saving an url Using save()+ waybackpy.save(url, UA=user_agent)
import waybackpy
# Capturing a new archive on Wayback machine.
# Default user-agent (UA) is "waybackpy python package", if not specified in the call.
archived_url = waybackpy.save("https://github.com/akamhy/waybackpy", UA = "Any-User-Agent")
print(archived_url)
This should print something similar to the following archived URL: https://web.archive.org/web/20200504141153/https://github.com/akamhy/waybackpy Receiving the oldest archive for an URL Using oldest()+ waybackpy.oldest(url, UA=user_agent)
import waybackpy
# retrieving the oldest archive on Wayback machine.
# Default user-agent (UA) is "waybackpy python package", if not specified in the call.
oldest_archive = waybackpy.oldest("https://www.google.com/", UA = "Any-User-Agent")
print(oldest_archive)
This returns the oldest available archive for https://google.com. http://web.archive.org/web/19981111184551/http://google.com:80/ Receiving the newest archive for an URL using newest()+ waybackpy.newest(url, UA=user_agent)
import waybackpy
# retrieving the newest archive on Wayback machine.
# Default user-agent (UA) is "waybackpy python package", if not specified in the call.
newest_archive = waybackpy.newest("https://www.microsoft.com/en-us", UA = "Any-User-Agent")
print(newest_archive)
This returns the newest available archive for https://www.microsoft.com/en-us, something just like this: http://web.archive.org/web/20200429033402/https://www.microsoft.com/en-us/ Receiving archive close to a specified year, month, day, hour, and minute using near()+ waybackpy.near(url, year=2020, month=1, day=1, hour=1, minute=1, UA=user_agent)
import waybackpy
# retriving the the closest archive from a specified year.
# Default user-agent (UA) is "waybackpy python package", if not specified in the call.
# supported argumnets are year,month,day,hour and minute
archive_near_year = waybackpy.near("https://www.facebook.com/", year=2010, UA ="Any-User-Agent")
print(archive_near_year)
returns : http://web.archive.org/web/20100504071154/http://www.facebook.com/
Get the content of webpage using get()+ waybackpy.get(url, encoding="UTF-8", UA=user_agent)
from waybackpy import get
# retriving the webpage from any url including the archived urls. Don't need to import other libraies :)
# Default user-agent (UA) is "waybackpy python package", if not specified in the call.
# supported argumnets are url, encoding and UA
webpage = get("https://example.com/", UA="User-Agent")
print(webpage)
TestsDependency
LicenseKey datesPyPI dataData sourced directly from PyPI's database.
1 maintainerPyPI dataData sourced directly from PyPI's database.
CreditsAuthor: akamhy LicenseMIT License (MIT) RequiresPython >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* Tags
Classifiers
MetadataKey datesPyPI dataData sourced directly from PyPI's database.
1 maintainerPyPI dataData sourced directly from PyPI's database.
CreditsAuthor: akamhy LicenseMIT License (MIT) RequiresPython >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* Tags
Classifiers
Release files for waybackpy 1.4For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation. Source distribution (sdist)
Release files / waybackpy-1.4.tar.gz
Security for waybackpy 1.4ProvenanceProvenance 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 foundNone of the files in this release were uploaded with provenance metadata. A note on package securityPyPI 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. Release history Release notifications | RSS feed | ||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |