WWW::Search::Monster - class for searching Monster
use WWW::Search; my $oSearch = new WWW::Search('Monster'); my $sQuery = WWW::Search::escape_query("unix and (c++ or java)"); $oSearch->native_query($sQuery, {'st' => 'CA', 'tm' => '14d'}); while (my $res = $oSearch->next_result()) { print $res->company . "\t" . $res->title . "\t" . $res->change_date . "\t" . $res->location . "\t" . $res->url . "\n"; }
This class is a Monster specialization of WWW::Search. It handles making and interpreting Monster searches at http://www.monster.com. Monster supports Boolean logic with "and"s "or"s. See http://jobsearch.monster.com/jobsearch_tips.asp for a full description of the query language.
The returned WWW::SearchResult objects contain url, title, company, location and change_date fields.
The following search options can be activated by sending a hash as the second argument to native_query().
The default is to return jobs posted in last 30 days. An example below changes the default to 14 days:
No restriction by default.
Only jobs in state $state. To select multiple states separate them with a "+", e.g. {'st' => 'NY+NJ+CT'}
Only jobs in $location_id. To find out what $location_id you need please look at the source of http://jobsearch.monster.com. Note that $location_id does not mean the area telephone code.
Use {'fn' => $cat_id} to select one or more job categories you want. For multiple selection use a '+' sign, e.g. {'fn' => '1+2'}. Possible categories are:
1 Accounting/Finance
2 Administrative/Clerical
12 Creative Arts/Media
3 Education/Training
4 Engineering/Architect/Design
5 Human Resources
6 Information Technology
45 Insurance
7 Legal/Law Enforcement/Security
47 Manufacturing/Production
8 Marketing/Advertising
9 Medical/Healthcare
11 Other
44 Retail
10 Sales/Sales Management
46 Science/Bio-Pharmaceutical
13 Travel/Hospitality/Restaurant
WWW::Search::HeadHunter is written and maintained by Alexander Tkatchev (Alexander.Tkatchev@cern.ch).
WWW::Search::HeadHunter
THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
To install WWW::Search, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Search
CPAN shell
perl -MCPAN -e shell install WWW::Search
For more information on module installation, please visit the detailed CPAN module installation guide.