Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rubygems'
- require 'nokogiri'
- require 'open-uri'
- File.open(ARGV[0]) do |sFile|
- while sLine = sFile.gets
- doc = Nokogiri::HTML(open(sLine))
- puts doc.xpath('//meta[@property="og:image"]').first.attribute('content')
- end
- end
Add Comment
Please, Sign In to add comment