:
This script provides the number of tweets with mentions of a string in the last X seconds.
Module data
The plugin is in a pspz file to register it easily in Pandora FMS.
Use:
./mentweet.pl '[search_string]' [OPTIONAL:interval_in_seconds]
Default interval: 300
Example of use:
./mentweet.pl 'Pandora FMS' 600
Note: API Twitter allows 150 calls/hour. Each script execution could do more than one call, if the limit is exceeded, the script will returns -1.
This script requires the Twitter library.
You can download it from the repositories (in my case from Ubuntu) typing:
sudo apt-get install libnet-twitter-perl
or from cpan site:
http://search.cpan.org/dist/Net-Twitter/
Included files
(Visited 135 times, 1 visits today)