title: Extract Google Scholar results using Python (or R)
body: <p>I'd like to use python to scrape google scholar search results. I found two different script to do that, one is <a href="https://github.com/venthur/gscholar" rel="noreferrer">gscholar.py</a> and the other is <code>scholar.py</code> (can that one be used as a python library?). </p>
  
  <p>Now, I should maybe say that I'm totally new to python, so sorry if I miss the obvious! </p>
  
  <p>The problem is when I use <code>gscholar.py</code> as explained in the README file, I get as a result </p>
  
  <p><code>query() takes at least 2 arguments (1 given)</code>. </p>
  
  <p>Even when I specify another argument (e.g. <code>gscholar.query("my query", allresults=True)</code>, I get </p>
  
  <p><code>query() takes at least 2 arguments (2 given)</code>. </p>
  
  <p>This puzzles me. I also tried to specify the third possible argument (<code>outformat=4</code>; which is the BibTex format) but this gives me a list of function errors. A colleague advised me to import BeautifulSoup and <a href="http://code.activestate.com/recipes/523047-search-google-scholar/" rel="noreferrer">this</a> before running the query, but also that doesn't change the problem. Any suggestions how to solve the problem?</p>
  
  <p>I found code for R (see <a href="http://www.github.com/gimoya/theBioBucket-Archives/blob/master/R/Functions/GScholarScraper_3.1.R" rel="noreferrer">link</a>) 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!</p>