Skip to content

Instantly share code, notes, and snippets.

@Voker57
Created February 17, 2017 23:30
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 Voker57/7f2748a82674a56a1a4d09059cd114ab to your computer and use it in GitHub Desktop.
Save Voker57/7f2748a82674a56a1a4d09059cd114ab to your computer and use it in GitHub Desktop.
mfp.rb
require 'nokogiri'
require 'open-uri'
mainpage = Nokogiri.parse(open("http://musicforprogramming.net/"))
mainpage.search("div#episodes/a").each do |a|
a_pg = Nokogiri.parse(open("http://musicforprogramming.net/" + a["href"]))
puts a_pg.at("audio")["src"]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment