Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'open-uri'
- require 'nokogiri'
- require 'csv'
- url = 'http://oploverz.in/'
- #parse halaman dengan nokogiri
- page = Nokogiri::HTML(open(url))
- #store data in arrays
- links = []
- page.css('.dtl a[href]').each do |line|
- links << line
- end
- puts links
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement