2021-12-14 19:58:56 +00:00
|
|
|
""" handle reading a csv from openlibrary"""
|
|
|
|
from . import Importer
|
|
|
|
|
|
|
|
|
|
|
|
class OpenLibraryImporter(Importer):
|
|
|
|
"""csv downloads from OpenLibrary"""
|
|
|
|
|
|
|
|
service = "OpenLibrary"
|
2021-12-14 20:42:56 +00:00
|
|
|
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
|
|
self.row_mappings_guesses.append(("openlibrary_key", ["edition id"]))
|
|
|
|
self.row_mappings_guesses.append(("openlibrary_work_key", ["work id"]))
|
|
|
|
super().__init__(*args, **kwargs)
|