How to make the parsil script that will display google and add to the list the addresses of sites that google brought up?

  • Something I can not understand how to implement: from google import google num_page = 1 search_results = google.search ("test", num_page) .link () print search_results <- gives an error - Alex Firsov
  • Go read a couple of books on testing the product ... Otherwise , as now, there is no possibility to fix anything ... - Andrio Skur

1 answer 1

from google import google search_results = google.search("test") for result in search_results: print result.link 

There were 2 errors in your code:

  1. search_results is a list, you need to search_results through it to get links
  2. link is a property, not a method