Last active
August 29, 2015 14:17
-
-
Save rubyrider/3aa7a7717776ab66ee9c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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