0.0
No commit activity in last 3 years
No release in over 3 years
Web crawler help you with parse and collect data from the web
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 2.6

Runtime

>= 1.16
>= 0.5.5
>= 0.14.6
 Project Readme
Web crawler help you with parse and collect data from the web

==How it works.


```ruby
class StackoverflowCrawler < WebCrawler::Base

    target "http://stackoverflow.com/questions/tagged/:tag", :tag=> %w{ruby ruby-on-rails ruby-on-rails-3}
    logger "path/to/log/file" # or Logger.new(...)

    cache_to '/tmp/cache/stackoverflow'

    context "#questions .question-summary", :jobs do

      #TODO: defaults :format => lambda{ |v| v.to_i }

      map '.vote-count-post strong', :to => :vote_count, :format => lambda{ |v| v.to_i }
      map '.views', :to => :view_count, :format => lambda{ |v| v.match(/\d+/)[0].to_i }
      map '.status strong', :to => :answer_count, :format => lambda{ |v| v.to_i }
      map '.summary h3 a', :to => :title, :format => lambda{ |v| v.to_i }
      map '.summary .excerpt', :to => :excerpt, :format => lambda{ |v| v.to_i }
      map '.user-action-time .relativetime', :to => :posted_at, :on => [:attr, :title]
      map '.tags .post-tag', :to => :tags, :format => lambda{ |v| v.to_i }

    end
end
```

#TODO
 1. Add documentation
 2. ...
 3. PROFIT!!!1
 (: