加藤 明 > WWW-Twitpic-Fetch > WWW::Twitpic::Fetch

Download:
WWW-Twitpic-Fetch-0.07.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.07   Source  

NAME ^

WWW::Twitpic::Fetch - Moose-based information scraper/fetcher for Twitpic

VERSION ^

Version 0.07

SYNOPSIS ^

  use WWW::Twitpic::Fetch;
  
  my $twitpic = WWW::Twitpic::Fetch->new();
  my $list = $twitpic->list($username, $page);
  my $photoinfo = $twitpic->photo_info($list->[0]{id}, 0);
  ...

ATTRIBUTES ^

attributes can be specified by parameter of new like

  WWW::Twitpic::Fetch->new(
    ua => $my_ua
  );

ua

LWP::UserAgent compatible UserAgent object. default is an instance of LWP::UserAgent.

username

username for twitter (and also twitpic). UNUSED for this version

password

password for twitter (and also twitpic). UNUSED for this version

FUNCTIONS ^

list username [, page]

get list of photo informations for username.

returns arrayref of hashref containing following keys 'id', 'message', 'thumb' when success. ('id' is a photo id, and 'thumb' is for url of thumbnail image of photo)

returns undef if failed to fetch list.

username (required)

specifies whose photo list.

page

specifies page of list. can be omitted. (default = 1)

photo_info photo ID or URL of photo page [, full?]

get informations of photo file.

returns hashref containing following keys ..

'url', 'message', 'comments', 'views' and 'tags' for scaled.

just 'url' for fullsize.

return undef if failed to fetch.

photo ID or url of photo page (required)

photo id. you can get photo id by list() or public_timeline().

or you can just pass an url of certain photo page.

full?

FALSE for scaled photo. TRUE for full-size photo. (default = FALSE).

public_timeline

get information of photos on public_timeline

returns arrayref of hashref containing following. 'avatar', 'username', 'mini' and 'message' ('mini' is for mini-thumbnail).

returns undef if failed to fetch

tagged tag name

get list of photos that tagged certain name.

returns arrayref of hashref containing following keys, 'id', 'mini'

tag name

SEEALSO ^

http://twitpic.com/ - Twitpic web site

WWW::Twitpic - Diego Kuperman's Twitpic API client

AUTHOR ^

turugina, <turugina at cpan.org>

BUGS ^

Please report any bugs or feature requests to bug-www-twitpic-fetch at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-Twitpic-Fetch. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc WWW::Twitpic::Fetch

You can also look for information at:

ACKNOWLEDGEMENTS ^

COPYRIGHT & LICENSE ^

Copyright 2009 turugina, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: