Searching in Google with Python -


i want search text in google using python script , return name, description , url each result. i'm using code:

from google import search  ip=raw_input("what search for? ")  url in search(ip, stop=20):      print(url) 

this returns url's, how can return name , description each url?

thanks!

i assume using this library mario vilas because of stop=20 argument appears in code. seems library not able return urls, making horribly undeveloped. such, want not possible library using.

i suggest instead use abenassi/google-search-api. can do:

from google import google num_page = 3 search_results = google.search("this query", num_page) result in search_results:     print(result.description) 

Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -