Skip to content

Instantly share code, notes, and snippets.

@EnriqueVidal
Created August 9, 2011 16:58
Show Gist options
  • Save EnriqueVidal/1134581 to your computer and use it in GitHub Desktop.
Save EnriqueVidal/1134581 to your computer and use it in GitHub Desktop.
Rosa de Guadalupe episode generator screen scraper
#!/usr/bin/env ruby
require 'rubygems'
require 'nokogiri'
require 'open-uri'
doc = Nokogiri::HTML(open('http://abuguet.net/rosa/'))
puts doc.css('#episodio').to_s.gsub(/<\/?[^>]*>/, '').strip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment