#!/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.
=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)
=head1 EXAMPLES
-SCRIPTNAME
+jobs_to_org
=cut
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";