Sha256: 29c1ea19edcac8dd8958d9cfe00de3a710326487b0ba112a5a75d8725628b2d5

Contents?: true

Size: 217 Bytes

Versions: 1

Compression:

Stored size: 217 Bytes

Contents

#!/usr/bin/env ruby

require 'nokogiri'
require 'open-uri'

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ronin-web-1.0.0.beta1 data/new/nokogiri.rb.erb