Sha256: 5e9324cbfa0d06a8561698e0e5fa055a1a433f017b43dea9e471b32099836498

Contents?: true

Size: 1 KB

Versions: 9

Compression:

Stored size: 1 KB

Contents

#coding: utf-8
require 'wombat'

class IteratorCrawler
  include Wombat::Crawler

  base_url "https://www.github.com"
  path "/explore"

  repos "css=ol.ranked-repositories>li", :iterator do
    repo 'css=h3'
    description 'css=p.description'
  end
end

=begin
p IteratorCrawler.new.crawl
{"repos"=>
  [
  	{	
  		"repo"=>"bernii / gauge.js",
    	"description"=>"100% native and cool looking JavaScript gauge"
  	},
   	{
   		"repo"=>"ZeitOnline / briefkasten",
    	"description"=>"a reasonably secure web application for submitting content anonymously"
  	},
   	{
   		"repo"=>"nothingmagical / cheddar-ios", 
   		"description"=>"Cheddar for iOS"
 		},
   	{
   		"repo"=>"nathanmarz / storm-mesos",
    	"description"=>"Run Storm on top of the Mesos cluster resource manager"
  	},
   	{
   		"repo"=>"Netflix / SimianArmy",
    	"description"=>"Tools for keeping your cloud operating in top form. Chaos Monkey is a resiliency tool that helps ..."
    },
   	{
   		"repo"=>nil, 
   		"description"=>nil
   	}
	]
}
=end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
wombat-2.4.0 examples/iterator.rb
wombat-2.3.0 examples/iterator.rb
wombat-2.2.1 examples/iterator.rb
wombat-2.2.0 examples/iterator.rb
wombat-2.1.3 examples/iterator.rb
wombat-2.1.2 examples/iterator.rb
wombat-2.1.1 examples/iterator.rb
wombat-2.1.0 examples/iterator.rb
wombat-2.0.1 examples/iterator.rb