Sha256: c7b8dab2002c6758e6cb19ab42ca2293f15515205e154b646717344272db5189
Contents?: true
Size: 898 Bytes
Versions: 14
Compression:
Stored size: 898 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 pp data =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
14 entries across 14 versions & 1 rubygems