Skip to content

Instantly share code, notes, and snippets.

@leomrocha
leomrocha / metainfo.py
Created May 23, 2020 16:39 — forked from andreasvc/metainfo.py
Extract metadata from Project Gutenberg RDF catalog into a Python dict.
"""Extract metadata from Project Gutenberg RDF catalog into a Python dict.
Based on https://bitbucket.org/c-w/gutenberg/
>>> md = readmetadata()
>>> md[123]
{'LCC': {'PS'},
'author': u'Burroughs, Edgar Rice',
'authoryearofbirth': 1875,
'authoryearofdeath': 1950,