forked from mirrors/bookwyrm
13 lines
419 B
Python
13 lines
419 B
Python
""" handle reading a csv from openlibrary"""
|
|
from . import Importer
|
|
|
|
|
|
class OpenLibraryImporter(Importer):
|
|
"""csv downloads from OpenLibrary"""
|
|
|
|
service = "OpenLibrary"
|
|
|
|
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)
|