Tootfinder

Opt-in global Mastodon full text search. Join the index!

@awinkler@openbiblio.social
2026-02-13 10:11:28

As it's been surprisingly hard to find this info, here's a short how-to to save urls in the #waybackmachine @… programmatically via script (if you've got a list of urls).
1) Get your API-Keys:

import requests

def saveUrl(url):
    baseurl = "https://web.archive.org/save"
    headers = {
        "Accept": "application/json",
        "Authorization": "LOW access_key:secret_key" # obtained from https://archive.org/account/s3.php
    }
    data = {'url': url}

    response = requests.post(baseurl, headers=headers, data=data)
    return response