Skip to content

Instantly share code, notes, and snippets.

@privatezero
Last active April 28, 2018 23:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save privatezero/c69ca0076507343b6b0dda4ea0457d7a to your computer and use it in GitHub Desktop.
Save privatezero/c69ca0076507343b6b0dda4ea0457d7a to your computer and use it in GitHub Desktop.
Nokogiri sample
require 'nokogiri'
require 'open-uri'
test = Nokogiri::XML(open("https://raw.githubusercontent.com/amiaopensource/amazingmets/master/digitized_video_mets2.xml"))
test.xpath("////Codec").each {|line| puts line.text.strip}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment