Created
July 30, 2013 22:02
-
-
Save ajwaxman/6117447 to your computer and use it in GitHub Desktop.
hire crm scrapers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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