PageRenderTime 62ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/DDG/Spice/PoliticalPolls.pm

https://gitlab.com/phora/zeroclickinfo-spice
Perl | 31 lines | 22 code | 8 blank | 1 comment | 0 complexity | 5813ef66ba3e6f859071b8ee9dd345af MD5 | raw file
  1. package DDG::Spice::PoliticalPolls;
  2. # ABSTRACT: Election and political polls from HuffPost Pollster
  3. use DDG::Spice;
  4. spice is_cached => 1;
  5. name "Political Polls";
  6. source "HuffPost Pollster";
  7. icon_url "http://elections.huffingtonpost.com/favicon.ico";
  8. description "Provides polling data from the United States.";
  9. primary_example_queries "US polls", "polls";
  10. secondary_example_queries "election polls";
  11. category "reference";
  12. topics "special_interest";
  13. code_url "https://github.com/duckduckgo/zeroclickinfo-spice/blob/master/lib/DDG/Spice/PoliticalPolls.pm";
  14. attribution github => ["alexander95015", "Alexander"],
  15. facebook => "alexander95015",
  16. twitter => "alexander95015";
  17. spice wrap_jsonp_callback => 1;
  18. spice to => 'http://elections.huffingtonpost.com/pollster/api/charts.json?state=US';
  19. triggers startend => "poll", "polls";
  20. handle remainder => sub {
  21. return $_;
  22. };
  23. 1;