Search code examples
pythonpipgoogle-colaboratorypypi

googlesearch package in colab


I can do following in google colab:

import googlesearch as g
urls = list(g.search(search_string, stop=results_count, lang='en'))

But I am guessing which package is this googlesearch?

I checked this package, but it does not have stop parameter in its search() method, so I am guessing it is different from whats installed in the colab. (The same parameter is called num_results in this API as shown in hello world example in its pypi page linked above.)

How do I know which googlesearch package is installed in colab, perhaps to use it locally on my laptop?

PS: You can check the API in this notebook.


Solution

  • It's installed with google package from this link:

    https://pypi.org/project/google/

    https://github.com/MarioVilas/googlesearch