Search code examples
searchfull-text-search

Automating book citation search


I have a list of books listed by their titles in a text file. I want to write a script which can use a web service like Google scholar or amazon to search for the books and return me a xml or bibtex file with citation info for each book. Which programming tools can I use for this kind of automated search ?


Solution

  • Python would be my recommendation.

    Sample code,

     import urllib
     url = 'http://foo.api.request'
     data = urllib.urlopen(url).read()
    
    • See the return schemas for this API (you can use the XML however you like).
    • See BibTeXML for conversion between the two formats.

    HTH