a guest Jan 23rd, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- require 'rubygems'
- require 'nokogiri'
- require 'open-uri'
- File.open(ARGV) do |sFile|
- while sLine = sFile.gets
- doc = Nokogiri::HTML(open(sLine))
- puts doc.xpath('//meta[@property="og:image"]').first.attribute('content')
RAW Paste Data