technology_and_language
technology_and_language is a one-off harvester for a single publication series. It queries DataCite's API for a fixed DOI prefix, derives each article's PDF download URL from a fixed pattern based on publication year/issue/page range, and downloads any not-yet-present PDFs into a fixed local folder. Unlike the rest of the pipeline, it's not driven by a config file, an ISSN list, or the previous_module convention, instead every parameter is a literal value baked into the script.
Working
- It queries
https://api.datacite.org/dois?...&prefix=example_DOI_valuefor up to 1000 DOI records. - Then, for each record, extracts issue number and page range from a
SeriesInformationdescription field via a regex (\((\d+)\).*?(\d+-\d+)), skipping any record where that field doesn't match the expected format. - Afterwards, it builds a download URL from a fixed base plus the publication year, issue, and page range.
- Finally, it downloads any PDF not already present in the target folder (
<data_root>/Quelldaten_automatisiert/.../technology_and_language/pdf).
Important information on the module
- Every value (the DOI prefix, the base URL, the target folder) is a literal in the script. If a second similar journal needs the same treatment, this script would need to be edited directly.
- This module uses
urllib3directly for downloads (notrequests).