/lib/DDG/Spice/Expatistan.pm
Perl | 23 lines | 17 code | 6 blank | 0 comment | 0 complexity | 04fab88a0536f507539823a5a15c57ea MD5 | raw file
- package DDG::Spice::Expatistan;
- use DDG::Spice;
- triggers query_lc => qr/cost of living/;
- spice to => 'http://www.expatistan.com/api/spice?q=$1&api_key={{ENV{DDG_SPICE_EXPATISTAN_APIKEY}}}';
- primary_example_queries => "cost of living in Philadelphia";
- description "See and compare costs of living via Expatistan";
- name "Expatisan";
- icon_url "/i/www.expatistan.com.ico";
- source "Expatisan";
- code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Expatistan.pm";
- topics => "economy and finance";
- category => "facts";
- attribution github => ['https://github.com/hunterlang','Hunter Lang'];
- handle query_lc => sub {
- return $_;
- };
- 1;