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

Lists in Python -

android - can not access to progress bar in an other activity -

java - Vaadin 7 Pass Data Between Views -