]> git.donarmstrong.com Git - bin.git/commitdiff
support vitae
authorDon Armstrong <don@donarmstrong.com>
Thu, 21 Jan 2016 23:49:34 +0000 (15:49 -0800)
committerDon Armstrong <don@donarmstrong.com>
Thu, 21 Jan 2016 23:49:34 +0000 (15:49 -0800)
jobs_to_org

index 3906309d99383f9737f8734d2bb4783afae97b96..af6a6ff969fc90f98f0d46ee3180897971d29aa8 100755 (executable)
@@ -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";