Skip to content

Instantly share code, notes, and snippets.

@Jamedjo
Created August 12, 2013 10:36
Show Gist options
  • Save Jamedjo/6209799 to your computer and use it in GitHub Desktop.
Save Jamedjo/6209799 to your computer and use it in GitHub Desktop.
Developer Fusion scraper: ruby UK
#!/usr/bin/ruby
require 'nokogiri'
require 'open-uri'
require 'debugger'
require 'cgi'
url = "http://www.developerfusion.com/t/ruby/jobs/"
puts url
doc = Nokogiri::HTML(open(url))
# debugger
doc.css('.list-items h4').map{|l| l.content}.select{|h| h.match(/United Kingdom/)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment