scrapr

Simple Web Scraping Framework
Download

scrapr Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Price:
  • FREE
  • Publisher Name:
  • Brian Jinwright
  • Publisher web site:
  • http://github.com/bjinwright/

scrapr Tags


scrapr Description

scrapr is a scrapping framework that makes it easy to setup a model for finding specific tags, links, or text on a web page.Simple ExampleExample Extractor: from scrapr import extractor class SimpleSite(extractor.Extractor): title = extractor.DocAttribute('title',return_str=True) description = extractor.DocAttribute('meta',value_attr='content', **{'name':'description'})>>import requests>>req = requests.get('http://www.dnsly.net')>>ss = SimpleSite(req.content)>>ss.titleu'DNSly - Simple DNS Management for Amazon Route 53 and Rackspace Cloud DNS'>>ss.descriptionu'Simple DNS Management for Amazon Route 53 and Rackspace Cloud DNS.'Product's homepage


scrapr Related Software