PageRenderTime 56ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/DDG/Spice/Bootic.pm

https://github.com/robertbrook/zeroclickinfo-spice
Perl | 25 lines | 19 code | 5 blank | 1 comment | 1 complexity | de03bf51a36c6e43a4431f4b6ed36070 MD5 | raw file
  1. package DDG::Spice::Bootic;
  2. # ABSTRACT: Search for products on Bootic.
  3. use DDG::Spice;
  4. primary_example_queries "bootic watches";
  5. secondary_example_queries "bootic irobot";
  6. description "Search Bootic.";
  7. name "Bootic";
  8. icon_url "/i/www.bootic.com.ico";
  9. source "Bootic";
  10. code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/Bootic.pm";
  11. category "entertainment";
  12. topics "special_interest";
  13. attribution github => ['https://github.com/sparky','sparky'];
  14. triggers any => 'bootic';
  15. spice to => 'http://www.bootic.com/cgi-bin/api/search/products?output=json&callback={{callback}}&pretty_name=1&limit=48&smart=1&q=$1';
  16. handle remainder => sub {
  17. return $_ if $_;
  18. return;
  19. };
  20. 1;