Posted By

eristoddle on 07/04/11


Tagged

google python pattern scraper serps


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

icecreamboyy


Google Scraper


 / Published in: Python
 

  1. from pattern.web import Google, plaintext
  2. from pattern.web import SEARCH
  3.  
  4. c.frame.log.selectTab('Google Results')
  5.  
  6. def scrape(query):
  7. engine = Google(license=None)
  8. for i in range(1,8):
  9. for result in engine.search(query, start=i, type=SEARCH):
  10. g.es(result.url ,color='blue',tabName='Google Results')
  11.  
  12. scrape("wordpress kansas city")

Report this snippet  

You need to login to post a comment.