daily pastebin goal
41%
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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top