Scripts
Different types of scripts to extract data here and there.
Internet Archive Usage Data > CSV Python Script
import requestsimport csv Define the list of item IDs and the time perioditem_ids = ["f755b169-b...
GraphQL Script to extract Author Affiliations from the Thoth Catalog
{ affiliations(publishers: ["9c41b13c-cecc-4f6a-a151-be4682915ef5"], limit: 9999) { institution...
GraphQL Script to Get Books Published per Year
{ books(order: {field: PUBLICATION_DATE, direction: ASC}, publishers: ["9c41b13c-cecc-4f6a-a15...
Extracting DOIs from a PDF (requires manual check still because of line breaks)
import pdfplumberimport reimport csvimport osfrom datetime import datetime def extract_dois_from...
Uploading extracted DOIs to Thoth
import thothlibraryimport csv # Log in to Thothemail = "XXX@punctumbooks.com" # Replace with yo...