daily pastebin goal
62%
SHARE
TWEET

Untitled

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