Header Ads

Header ADS

Google-Search-API in Python

Required:

pip install git+https://github.com/abenassi/Google-Search-API





from google import google
def google_search_result(query):
    search_result = google.search(query)

    for result in search_result:
       print(result.description)
        #can use for short line 
        #print(result.description.replace('...', '').rsplit('.', 3)[0]) 
        


google_search_result('what is programming')

exit

No comments

Theme images by Matt Vince. Powered by Blogger.