vendredi 28 avril 2017

Retrieve google links using Search API from Github

I am working on a python project that uses needs to retrieve search links. I am using the Google Search API from Github: http://ift.tt/2pHCVaA

Here is my basic code:

from google import google
search_results = google.search("dog")
print(search_results)

It returns the results in the following format:

 description=The domestic dog is a member of genus Canis (cani.., GoogleResult(name=Complete Guide to Caring for Dogs | Dog Breed Informati..

However, I only want the link of the websites on the results to be returned. How can retrieve only the link, and nothing else?




Aucun commentaire:

Enregistrer un commentaire