Skip to content

A DSL to write web spider. Depend on capybara and capybara-webkit

License

Notifications You must be signed in to change notification settings

zires/micro-spider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

micro-spider

A DSL to write web spider. Depend on capybara and capybara-webkit.

Example

require 'micro_spider'
spider = MicroSpider.new

spider.learn do
  site 'http://www.bbc.com'
  entrance '/news'
  fields :top_stories, 'a.title-link'
end

spider.crawl

spider.get('top_stories')
# or
spider.excretion['/news']['top_stories']

About

A DSL to write web spider. Depend on capybara and capybara-webkit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages