Sha256: 4fc25a7ba3bbc28ae148ede00f5fb8035ac8b3812389305d866352c0136c8449

Contents?: true

Size: 225 Bytes

Versions: 8

Compression:

Stored size: 225 Bytes

Contents

#!/usr/bin/env ruby

require 'nokogiri'
require 'open-uri'

<%- if @url -%>
doc = Nokogiri::HTML(URI.open(<%= @url.inspect -%>))
<%- else -%>
doc = Nokogiri::HTML(URI.open(ARGV[0]))
<%- end -%>

puts doc.search('//a[@href]')

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ronin-web-2.0.0 data/new/nokogiri.rb.erb
ronin-web-2.0.0.rc1 data/new/nokogiri.rb.erb
ronin-web-1.0.2 data/new/nokogiri.rb.erb
ronin-web-1.0.1 data/new/nokogiri.rb.erb
ronin-web-1.0.0 data/new/nokogiri.rb.erb
ronin-web-1.0.0.beta4 data/new/nokogiri.rb.erb
ronin-web-1.0.0.beta3 data/new/nokogiri.rb.erb
ronin-web-1.0.0.beta2 data/new/nokogiri.rb.erb