]> git.donarmstrong.com Git - bin.git/blobdiff - jobs_to_org
support vitae
[bin.git] / jobs_to_org
index 8adb8a456bb6125dd7e833d3aaac55a27bd8cf90..af6a6ff969fc90f98f0d46ee3180897971d29aa8 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/perl
-# SCRIPTNAME DOES_SOMETHING
+# jobs_to_org finds jobs in different job sites and turns them into org things
 # and is released under the terms of the GNU GPL version 3, or any
 # later version, at your option. See the file README and COPYING for
 # more information.
@@ -14,11 +14,11 @@ use Pod::Usage;
 
 =head1 NAME
 
-SCRIPTNAME - DOES_SOMETHING
+jobs_to_org - finds jobs in different job sites and turns them into org things
 
 =head1 SYNOPSIS
 
-SCRIPTNAME [options]
+jobs_to_org [options]
 
  Options:
    --debug, -d debugging level (Default 0)
@@ -45,7 +45,7 @@ Display this manual.
 
 =head1 EXAMPLES
 
-SCRIPTNAME
+jobs_to_org
 
 =cut
 
@@ -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";