import all references of a paper into a bibtex file I have a paper that has say 100 references. I'd like to use a lot of them as references to a paper I'm writing, but it seems pretty laborious to go on each and everyone of them, search in google scholar and get the bibtex info. 
Is there a tool available that given a paper\pdf\book etc, harvests all the references of that paper into a list or bibtex file?
There would be a quick approach if you know how to code:

Take the DOI of that publication.

Use that DOI to access the OpenCitations API. (Example here.)

From the API, extract all the DOIs that are referenced in the citing field.

Loop each referenced DOI through a DOI-to-BibTeX-converter (such as doi2bib in Python, or CrossCite)