I'd like to use python to scrape google scholar search results. I found two different script to do that, one is [gscholar.py](https://github.com/venthur/gscholar) and the other is `scholar.py` (can that one be used as a python library?). 

Now, I should maybe say that I'm totally new to python, so sorry if I miss the obvious! 

The problem is when I use `gscholar.py` as explained in the README file, I get as a result 

`query() takes at least 2 arguments (1 given)`. 

Even when I specify another argument (e.g. `gscholar.query("my query", allresults=True)`, I get 

`query() takes at least 2 arguments (2 given)`. 

This puzzles me. I also tried to specify the third possible argument (`outformat=4`; which is the BibTex format) but this gives me a list of function errors. A colleague advised me to import BeautifulSoup and [this](http://code.activestate.com/recipes/523047-search-google-scholar/) before running the query, but also that doesn't change the problem. Any suggestions how to solve the problem?

I found code for R (see [link](http://www.github.com/gimoya/theBioBucket-Archives/blob/master/R/Functions/GScholarScraper_3.1.R)) as a solution but got quickly blocked by google. Maybe someone could suggest how improve that code to avoid being blocked? Any help would be appreciated! Thanks!