Sha256: 72c1041755fbac6cb2f381581216a237c7e15f9db8fa595f1428c7c33f198cc3

Contents?: true

Size: 877 Bytes

Versions: 15

Compression:

Stored size: 877 Bytes

Contents

#coding: utf-8
require 'wombat'

data = Wombat.crawl do
  base_url "http://www.github.com"
  path "/"

  headline "xpath=//h1"
  subheading "css=p.subheading"

  what_is "css=.teaser h3", :list

  links do
    explore 'xpath=//*[@id="wrapper"]/div[1]/div/ul/li[1]/a' do |e|
      e.gsub(/Explore/, "Love")
    end

    search 'css=.search'
    features 'css=.features'
    blog 'css=.blog'
  end
end

=begin
pp data
{
 "headline"=>"Build software better, together.",
 "subheading"=>
  "Powerful collaboration, review, and code management for open source and private development projects.",
 "what_is"=>
  ["Great collaboration starts with communication.",
   "Manage and contribute from all your devices.",
   "The world’s largest open source community."],
 "links"=>
  {"explore"=>"Love GitHub",
   "search"=>"Search",
   "features"=>"Features",
   "blog"=>"Blog"
  }
}
=end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
wombat-3.0.0 examples/no_class.rb
wombat-2.10.0 examples/no_class.rb
wombat-2.9.0 examples/no_class.rb
wombat-2.8.0 examples/no_class.rb
wombat-2.7.0 examples/no_class.rb
wombat-2.6.0 examples/no_class.rb
wombat-2.5.1 examples/no_class.rb
wombat-2.5.0 examples/no_class.rb
wombat-2.4.0 examples/no_class.rb
wombat-2.3.0 examples/no_class.rb
wombat-2.2.1 examples/no_class.rb
wombat-2.2.0 examples/no_class.rb
wombat-2.1.3 examples/no_class.rb
wombat-2.1.2 examples/no_class.rb
wombat-2.1.1 examples/no_class.rb