Open GraemeWatt opened 8 months ago
Thats great! Thanks @GraemeWatt ! I'm assuming ins1750597
is the Inspire ID?
I'm assuming
ins1750597
is the Inspire ID?
Yes, https://www.hepdata.net/record/ins1750597 corresponds to https://inspirehep.net/literature/1750597 .
https://www.hepdata.net/record/89413 or https://doi.org/10.17182/hepdata.89413 also work (but not the arXiv identifier).
Question from @jackaraz:
The best implementation might be in terms of content negotiation as for the JSON-LD metadata format, i.e. BibTeX format could be returned for a record page with an HTTP header
Accept: application/x-bibtex
. This might require some refactoring of the HEPData code. Currently, the BibTeX format is written in cite-widget.html and is accessible only when a user clicks the "Cite" button in the top-right of a record page followed by selecting the "BibTeX" tab of the "Citing this record" widget.In the meantime, it is fairly easy to scrape the HTML of a record page to get the BibTeX format. For example, using the Python requests and beautifulsoup4 packages:
gives: