We exported a list of URLs from logstash. These URLs have all been tried by users because they wanted to add the respective citation to Citoid.
We want to have a look at the metadata of these PDFs to get a better understanding on how many PDFs have useful metadata.
Tasks
- write python script that downloads the PDFs from the list: download.py
- read metadata from downloaded files: readMetadata.py
- add code to gitlab https://gitlab.com/wmde/technical-wishes/pdf-metadata-checker
- get all metadata to look for special fields
- include the PDF link in the output file.
- add file type check to the script
- count useful metadata (percentage)
Outcome (to review)
Code: https://gitlab.com/wmde/technical-wishes/pdf-metadata-checker
Findings: overview of retrieved metadata
- 16 of the 78 files could not be downloaded (possibly bot checks)
- 2 were not PDFs but other formats
- 2 contain a DOI in a "doi" field, another one is hidden inside another field
- "useful metadata": 7 out of 68 (4 would need user interaction, 2 are unclear). 55 return no helpful metadata or none at all.
Open questions
- Is our sample set representative enough? Or large enough? Should we look for even more?
- Why are there 404s, that can be downloaded by hand? Are all of them bot checks?
- Can we also use the DOIs in the PDF metadata to retrieve better metadata (see T429677: Improve the way how Citoid extracts DOIs from URLs (M))?
- How can we decide what "useful" metadata is?
What I did not do (time)
- web interface
- check file size
- check all 404 manually