WWW::Scraper::Monster - Scrapes Monster.com


Bundle-WWW-Scraper-Job documentation  | view source Contained in the Bundle-WWW-Scraper-Job distribution.

Index


NAME

Top

WWW::Scraper::Monster - Scrapes Monster.com

SYNOPSIS

Top

 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";
 }

DESCRIPTION

Top

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::Scraper::Response objects contain url, title, company, location and change_date fields.

OPTIONS

Top

The following search options can be activated by sending a hash as the second argument to native_query().

Restrict by Date

The default is to return jobs posted in last 30 days. An example below changes the default to 14 days:

{'tm' => '14d'}

lid - Restrict by Location

No restriction by default.

over 8

st - State

Only jobs in state $state. To select multiple states separate them with a "+", e.g. {'st' => 'NY+NJ+CT'}

fn - Job Function

Use {'fn' => $cat_id} to select one to five (5) job categories. For multiple selection separate selections with a space, e.g. 'fn' => '1 2'. Leave blank to select all categories.

AUTHOR

Top

Glenn Wood, Chttp://search.cpan.org/search?mode=author&query=GLENNWOOD.

COPYRIGHT

Top


Bundle-WWW-Scraper-Job documentation  | view source Contained in the Bundle-WWW-Scraper-Job distribution.