Skip to content

Instantly share code, notes, and snippets.

@ajwaxman
Created July 30, 2013 22:02
Show Gist options
  • Save ajwaxman/6117447 to your computer and use it in GitHub Desktop.
Save ajwaxman/6117447 to your computer and use it in GitHub Desktop.
hire crm scrapers
# Top Ruby Jobs
job_title = doc.css("#col-left h2")
company_title = doc.css("#col-left dd")[0].text
location = doc.css("#col-left dd")[1].text
description = doc.css(".description").text
# Team Treehouse
full_header = doc.css(".job-headline h1").text
company_header = doc.css(".job-headline h1 strong").text
job_title = full_header.gsub!(company_header, "").strip
company_title = company_header.gsub!("at ","").strip
location = doc.css(".job-location").text.strip
description = doc.css("#job-details p").first.text
# Github Jobs
job_title = doc.css(".inner h1").text
company_title = doc.css(".inner h2").first.text.strip.split("\n").last.strip
location = doc.css(".supertitle").text.split("/").last.strip
description = doc.css(".main p").first.text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment