cjlee112 / spnet

selected papers network web engine
http://thinking.bioinformatics.ucla.edu/2011/07/02/open-peer-review-by-a-selected-papers-network/
GNU General Public License v2.0
40 stars 11 forks source link

Automatically tag based on arXiv subject area #75

Open ketch opened 11 years ago

ketch commented 11 years ago

It would be nice to automatically tag any entry related to an arXiv paper with a hashtag corresponding to the arXiv subject area. Questions:

ketch commented 11 years ago

This is a quick note on how to do this:

import urllib
url = 'http://export.arxiv.org/api/query?id_list=1308.0802'
data = urllib.urlopen(url).read()

Then data is XML and contains 'category term="math.NA"', so we just need to parse it and extract the category.