clone your own copy | download snapshot

Snapshots | iceberg

Inside this repository

Download raw (608 bytes)

# Prints a list of Open Library pages (related to Anna Kavan) to index

import requests
import json

# key for Anna Kavan
author_key = 'OL200810A'


r1 = requests.get('' % author_key)

works = r1.json()

for work in works['entries']:
    print('' % work['key'])

    r2 = requests.get('' % work['key'])

    editions = r2.json()

    for edition in editions['entries']:
        print('' % edition['key'])