I am looking for a library that can send a query to Google Scholar and retrieve all the results in some exploitable format (JSON, XML, etc.). A CLI program is OK too provided there is no interaction needed, i.e. that I can easily call it from another program. I am OK if the library only takes an author's name as the query. If possible, free and works with Windows 7 SP1 x64 Ultimate.

I know that there are general-purpose libraries like FancyURLopener or BeautifulSoup that would make the job easier, but I want an end-to-end solution just like Publish or Perish (which isn't CLI) as Google Scholar's policies change from time to time, and I don't want to have to maintain my own library code. Google Scholar provides no API, hence the need to scrape.

1 Answer 1


Have a look at this python command line tool:


Example usage if you want a bibtex file:

$ scholar.py -c 1 --author "albert einstein" --phrase "quantum theory" --citation bt
  title={On the quantum theory of radiation},
  author={Einstein, Albert},
  journal={Phys. Z},

It can also count citations:

$ scholar.py --txt-globals --author "albert einstein" | grep '\[G\]' | grep Results
[G]    Results 4190

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.