Skip to content

Instantly share code, notes, and snippets.

View emanuelduss's full-sized avatar
💭
' OR 1=1 -- "><h1>My @ {{7*7}} Status &;`id`

Emanuel Duss emanuelduss

💭
' OR 1=1 -- "><h1>My @ {{7*7}} Status &;`id`
View GitHub Profile
#!/usr/bin/env python
import json, sys
from urllib.request import urlopen
API='http://xisbn.worldcat.org/webservices/xid/isbn/{isbn}?method=getMetadata&format=json&fl=*'
OPT_KEYS = ['author', 'city', 'ed', 'form', 'lang', 'lccn',
'originalLang', 'publisher', 'year']
def get_metadata(isbn):
rawjson = urlopen(API.format(isbn=isbn)).readall().decode('utf-8')