eric.bulk_import¶
Attributes¶
Functions¶
|
|
|
Translate a iterable of EducationResource into a JSON list string. |
|
Created OME metadata records as NNTP articles from the given URL. |
Module Contents¶
- eric.bulk_import.plugin¶
- eric.bulk_import.URL = 'https://api.ies.ed.gov/eric?search=python&rows=50'¶
- eric.bulk_import.bulk_translate(docs: list[dict]) collections.abc.Iterator[server.plugins.ome_plugin.EducationResource] ¶
- eric.bulk_import.bulk_translate_to_json(docs: list[dict]) str ¶
Translate a iterable of EducationResource into a JSON list string.
- eric.bulk_import.bulk_import(url: str = URL) str ¶
Created OME metadata records as NNTP articles from the given URL.
Each article body should contain a title, URL, and date visited. Each article should have two enclosures: - The original json downloaded. - OME metadata as translated by this OME plugin