palewire / savepagenow

A simple Python wrapper and command-line interface for archive.org’s "Save Page Now" capturing service
https://palewi.re/docs/savepagenow/
MIT License
167 stars 23 forks source link

Unable to save url after recent Wayback changes #27

Closed pyprism closed 3 years ago

pyprism commented 4 years ago

I already updated the library to version to 1.0.1 , still I am unable to save urls . Here is the codes :

def save_wayback(main_url):
    try:
        wayback = savepagenow.capture_or_cache(main_url)
        wayback_url = wayback[0]
        archived = True
        error = None
    except Exception as e:
        wayback_url = ''
        archived = False
        error = str(e)
    return wayback_url, archived, error

error message: {'Server': 'nginx/1.15.8', 'Date': 'Fri, 17 Jul 2020 12:24:19 GMT', 'Content-Type': 'text/html; charset=utf-8', 'Content-Length': '178', 'Connection': 'keep-alive', 'X-App-Server': 'wwwb-app103', 'X-ts': '520'}

and sample url : Link

eggplants commented 4 years ago

Same. See: https://gist.github.com/eggplants/138ce2ee76617023c79089460b296458

pyprism commented 3 years ago

Currently this solution solves my problem.