scholarly: search_pubs_query() did not work ( Was I banned by the google scholar?)

Background

It is tricky to use this scholarly in China(mainland). So I use a VPS in US (ubuntu18.04 py3.6) to make it work. I try to put the name of my teacher of the institute in the query, and collect the result to make it into a .json file. Everything was fine when I succeed to read my first json. So I make a iteration to put all the teachers of the institute in the query and collect the result. But I find the following result is 0.(it likes []) I wondered why and test it through terminal. I find that it will return like

Traceback() : File "<stdin>", line 1, in <module>
StopIteration

Doubt

The other functions work properly. I try the example after this situation. I doubted that I test the ‘search_pubs_query()’ too many times to find how to extract the data with the generator. Google banned the ip of my vps because I required too many results. ( I set a limit in my code that it will just get 100 results at most. The number of the teachers in my institute is 75. I find a empty result at the second teacher) I will test the function again tomorrow, maybe Google set a limit for one day?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16

Most upvoted comments

I wait for a whole day and reconnect my vps to test whether the search_pubs_query() work properly. It works again. I think it has a limit of search query a day. I will keep on writing my program to find if there are any other things we need to care for.