A bibtex scraper from command line
Python modules requests, BeautifulSoup4 are required.
To install dependencies, do
pip install requests
pip install beautifulsoup4
The script bib-scrawler.sh searches inspirehep and returns the bibtex, given the title or eprint number of a paper. If a local .bib file is present, it will also ask if you wish to save the bibtex to the file.
To start using the script, source first
source bib-crawler.sh
Then you are ready to use the commands bibit
and biball
.
For most common usages, bibit
is recommended because it is fast.
-
Search using the eprint number (arXiv) number of a paper
bibit -e 1707.05319
-
Search using the title of a paper, for instance, "on black hole entropy"
bibit -t on black hole entropy
If bibit
does not return the correct bib entry, this means more than one records have been found. Then biball
should be used.
-
Search using the eprint number (arXiv) number of a paper
biball -e 1707.05319
-
Search using the title of a paper
biball -t on black hole entropy
That's it!
This software comes with ABSOLUTELY NO WARRANTY. This is a free software, and you are welcome to redistribute it under certain conditions. See the General Public License for details.