---
name: "WWW::Search::HeadHunter"
section: "3pm"
platform: "linux"
package: "libwww-search-perl"
version: "2.24-3"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/WWW::Search::HeadHunter"
---

# WWW::Search::HeadHunter(3pm)

WWW::Search::HeadHunter - class for searching HeadHunter

```
 use WWW::Search;
 my $oSearch = new WWW::Search('HeadHunter');
 my $sQuery = WWW::Search::escape_query("unix and (c++ or java)");
 $oSearch->native_query($sQuery,
                        {'SID' => 'CA',
                         'Freshness' => 14});
 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 HeadHunter specialization of WWW::Search. It handles making and interpreting HeadHunter searches at *http://www.HeadHunter.net*. HeadHunter supports Boolean logic with "and"s "or"s. See *http://www.HeadHunter.net/Help/jobquerylang.htm* 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()*.\
 **Restrict by Date** The default is to return jobs posted in last 30 days (internally done by  HeadHunter search engine).\
 Display jobs posted in last `$number` days\
 **Restrict by Location** No restriction by default.\
 To select jobs from approximately 30 miles around the city.\
 Only jobs in state/province `$loc` (two letters only).\
 To view only US jobs. To see jobs from other countries, check out the acceptable country list at *http://www.Headhunter.net/listcoun.htm*.\
 **Restrict by Salary** No restrictions by default.\
\
\
\
\
\
 To select several pay ranges use a '+' sign, e.g. {'Pay' =\> 'P3+P4'}\
 **Restrict by Employment Type** No restrictions by default.\
\
\
\
\
 **Restrict by Job Category** No restriction by default. To select jobs from a specific job  category use the following option:\
 See below the list of acceptable values of `$job_category`. Multiple selections are possible (up to five) using a '+' sign, e.g. {'Cats' =\> 'Cat001+Cat002'}.\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
\
 `"WWW::Search::HeadHunter"` is written and maintained by Alexander Tkatchev (Alexander.Tkatchev@cern.ch). 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.
