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