Catmandu::Importer::Twitter - Package that imports Twitter feeds
use Catmandu::Importer::Twitter; my $importer = Catmandu::Importer::Twitter->new( consumer_key => '<your key>' , consumer_secret => '<your secret>' , access_token => '<your token>' , access_token_secret => '<your token secret>' , query => '#elag2013' ); my $n = $importer->each(sub { my $hashref = $_[0]; # ... });
Create a new Twitter importer using a query as input.
Every Catmandu::Importer is a Catmandu::Iterable all its methods are inherited. The Catmandu::Importer::Twitter methods are not idempotent: Twitter feeds can only be read once.
Catmandu::Iterable
To install Catmandu::Importer::Twitter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::Importer::Twitter
CPAN shell
perl -MCPAN -e shell install Catmandu::Importer::Twitter
For more information on module installation, please visit the detailed CPAN module installation guide.