Created
February 9, 2018 10:28
-
-
Save rec3141/24090e42b4487635e8ac9f5c566ff417 to your computer and use it in GitHub Desktop.
get a bibtext file from a text reference list
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while read line; do curl -s "https ://api.crossref.org/works?query=`echo $line | tr -sC '[^a-zA-Z]' '+'`" | tr "," "\n" | tr -d '"\' | grep ^DOI | cut -f2- -d':' | head -n1 | xargs -I{} curl -sLH "Accept: application/x-bibtex" https ://doi.org/{} | grep -v '^\s*[<"]'; done < file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
do this in javascript in chrome to scrape the titles of the open tabs using the console tab
journals have meta tags
| | | | | | | | | | | | | | | | | <title>Impact of Haida Eddies on chlorophyll distribution in the Eastern Gulf of Alaska - ScienceDirect</title> | | | https://codeburst.io/a-guide-to-automating-scraping-the-web-with-javascript-chrome-puppeteer-node-js-b18efb9e9921