Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Can I google search using python in combination with RegEx?

I am trying to use python to google search to fetch results using a specific RegEx. Is this possible?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

You can use the Google’s Python package googlesearch-python:

pip install googlesearch-python

It’s then as simple as specifying what you want to search, how many items you want returned, and the language you want to search in. Example:

googlesearch.search(str: "stackoverflow", int: num_results=10, str: lang="en") -> list

Reference: https://github.com/Nv7-GitHub/googlesearch

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading