title: StopIteration during search query using scholarly module in Python
body: <p>I try to get details of particular papers from Google Scholar using a scholarly module in Python2.7. I want to collect details of 1000 papers and wrote below mentioned code.</p>
  
  <pre><code>seq = range(0,1,len(ResearchPaperNames))
  for i in seq:
      pub = (next(scholarly.search_pubs_query(ResearchPaperNames[i]))
      print i
      # And further processing to extract data from pub, like author, citation, url
  </code></pre>
  
  <p>It gives me error after 10 to 12 iteration is </p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Users\Sony\Downloads\Google Scholar Data Extraction.py", line 25, in &lt;module&gt;
      pub = (next(scholarly.search_pubs_query(ResearchPaperNames[i])
  StopIteration
  </code></pre>
  
  <p>I have gone through several answers available on Stackoverflow, but I couldn't fix it.</p>
  
  <p>Please help me to fix StopIteration error</p>