NAME
WWW::Search::Scraper::Dice - Scrapes Dice : (skills,locations) => (title, location ,residue)
SYNOPSIS
use WWW::Search;
my $oSearch = new WWW::Search::Scraper('Dice');
my $sQuery = WWW::Search::Scraper::escape_query("unix and (c++ or java)");
$oSearch->native_query($sQuery,
{'method' => 'bool',
'state' => 'CA',
'daysback' => 14});
while (my $res = $oSearch->next_result()) {
if(isHitGood($res->url)) {
my ($company,$title,$date,$location) =
($res->company, $res->title, $res->date, $res->location);
print "$company $title $date $location " . $res->url . "\n";
}
}
DESCRIPTION
This class is a Dice extension of WWW::Search::Scraper. It handles making and interpreting Dice searches at http://www.dice.com.
OPTIONS
The following search options can be activated by sending a hash as the second argument to native_query().
Format / Treatment of Query Terms
The default is to treat entire query as a boolean expression with AND, OR, NOT and parentheses
- {'method' => 'and'}
-
Logical AND of all the query terms.
- {'method' => 'or'}
-
Logical OR of all the query terms.
- {'method' => 'bool'}
-
treat entire query as a boolean expression with AND, OR, NOT and parentheses. This is the default option.
Restrict by Date
The default is to return jobs posted in last 30 days
Restrict by Location
The default is "ALL" which means all US states
- {'state' => $state} - Only jobs in state $state.
- {'state' => 'CDA'} - Only jobs in Canada.
- {'state' => 'INT'} - To select international jobs.
- {'state' => 'TRV'} - Require travel.
- {'state' => 'TEL'} - Display telecommute jobs.
Multiple selections are possible. To do so, add a "+" sign between desired states, e.g. {'state' => 'NY+NJ+CT'}
You can also restrict by 3-digit area codes. The following option does that:
Multiple area codes (up to 5) are supported.
Restrict by Job Term
No restrictions by default.
- {'taxterm' => 'CON_W2' - Contract - W2
- {'taxterm' => 'CON_IND' - Contract - Independent
- {'taxterm' => 'CON_CORP' - Contract - Corp-to-Corp
- {'taxterm' => 'CON_HIRE_W2' - Contract to Hire - W2
- {'taxterm' => 'CON_HIRE_IND' - Contract to Hire - Independent
- {'taxterm' => 'CON_HIRE_CORP' - Contract to Hire - Corp-to-Corp
- {'taxterm' => 'FULLTIME'} - full time
-
<option value="" selected>No Restrictions</option> <option value="CON_W2">Contract - W2</option> <option value="CON_IND">Contract - Independent</option> <option value="CON_CORP">Contract - Corp-to-Corp</option> <option value="CON_HIRE_W2">Contract to Hire - W2</option> <option value="CON_HIRE_IND">Contract to Hire - Independent</option> <option value="CON_HIRE_CORP">Contract to Hire - Corp-to-Corp</option> <option value="FULLTIME">Full - time</option> =back
Use a '+' sign for multiple selection.
There is also a switch to select either W2 or Independent:
Restrict by Job Type
No restriction by default. To select jobs with specific job type use the following option:
Here $jobtype (according to http://www.dice.com) can be one or more of the following:
ANL - Business Analyst/Modeler
COM - Communications Specialist
DBA - Data Base Administrator
ENG - Other types of Engineers
FIN - Finance / Accounting
GRA - Graphics/CAD/CAM
HWE - Hardware Engineer
INS - Instructor/Trainer
LAN - LAN/Network Administrator
MGR - Manager/Project leader
OPR - Data Processing Operator
PA - Application Programmer/Analyst
QA - Quality Assurance/Tester
REC - Recruiter
SLS - Sales/Marketing
SWE - Software Engineer
SYA - Systems Administrator
SYS - Systems Programmer/Support
TEC - Custom/Tech Support
TWR - Technical Writer
WEB - Web Developer / Webmaster
Limit total number of hits
The default is to stop searching after 500 hits.
AUTHOR
Copyright (c) 2001 Glenn Wood http://search.cpan.org/search?mode=author&query=GLENNWOOD
All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
LEGALESE
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.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 407:
You forgot a '=back' before '=head2'