Skip to content

Instantly share code, notes, and snippets.

@rubyrider
Last active August 29, 2015 14:17
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 rubyrider/3aa7a7717776ab66ee9c to your computer and use it in GitHub Desktop.
Save rubyrider/3aa7a7717776ab66ee9c to your computer and use it in GitHub Desktop.
con = CrawlerBase.build('http://www.babson.edu') do |config|
config.build_page do |page|
page.content_identifier = 'a.faclink'
page.url = 'http://www.babson.edu/Academics/faculty/profiles/Pages/default.aspx'
page.build_details 'Bablon College' do |details|
details.department = '.bio_facultytitle > h3'
details.name = 'span[class*=name_]'
details.email = 'a[href*=mailto]'
details.photo = '.ms-rtestate-field > img'
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment