Nv7-GitHub / googlesearch

A Python library for scraping the Google search engine.
https://pypi.org/project/googlesearch-python/
MIT License
430 stars 110 forks source link

Google "Featured Snippets" #70

Open gamer0kayf1n3 opened 8 months ago

gamer0kayf1n3 commented 8 months ago

Is there a way to get the featured snippets that Google shows when you search for something instead of just links?

652-Animashaun commented 7 months ago

If you pass True to the kwarg advanced like so def search(term, advanced=True). You'll get a string object with description, as well as title. Here

I wanted the "snippets" too but in a dictionary or json format. Maybe I'll open a pull request to make this happen if more people want this kind of object returned instead of the repr object.