From: Don Armstrong Date: Thu, 21 Jan 2016 23:49:34 +0000 (-0800) Subject: support vitae X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=17707921a23a84f7c33384b5c1d24a66215f3b8c;p=bin.git support vitae --- diff --git a/jobs_to_org b/jobs_to_org index 3906309..af6a6ff 100755 --- a/jobs_to_org +++ b/jobs_to_org @@ -102,6 +102,16 @@ my %sites = date => [], position => [class=>'job-title heading'], }, + vitae => {url => 'https://chroniclevitae.com/job_search?job_search%5Bdistance_from_zip%5D=10&job_search%5Bemployment_type%5D=Full-time&job_search%5Bposition_type%5D=63', + next_selector => [text_regex => qr{Next}, url_regex=>qr{^/job_search}], + job_selector => [url_regex => qr{/jobs/\d+-\d+$}], + university => [href => qr{/institutions/\d+$}], + description => [class => 'job-listing__content__description'], + date => [_tag => 'td', content => qr/\,\s+20\d{2}$/], + position => [_tag => 'h1', + sub {scalar $_[0]->parent()->attr('class') eq 'page-title page-title--two-col'}, + ], + }, ); binmode STDOUT,":utf8";