YAPC::Asia 2010 Twitter解析サービス

  • 6,200 views
Uploaded on

 

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
6,200
On Slideshare
0
From Embeds
0
Number of Embeds
3

Actions

Shares
Downloads
32
Comments
0
Likes
10

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. •  •  •  • 
  • 2. •  • 
  • 3. • 
  • 4. •  –  •  –  •  –  •  – 
  • 5. •  • 
  • 6. •  •  •  • 
  • 7. •  •  • 
  • 8. •  •  •  • 
  • 9. •  •  •  • 
  • 10. •  • 
  • 11. •  • 
  • 12. yusuke@dev:~/work/twib/Twib/trunk$ ls  bot  cli  etc  migration  schema  web 
  • 13. •  •  •  •  • 
  • 14. •  Package Twib::CLI::Reader::Feed;  use JSON::XS;  use LWP::UserAgent;  Package Twib::CLI::Reader::Stream;  use AnyEvent::Twitter::Stream; 
  • 15. •  • 
  • 16. •  –  •  –  •  – 
  • 17. #API Reader  my $client = Gearman::Client‐>new;  $client‐>job_servers(qw|localhost:7003|);  $client‐>dispatch_background( "fetch", $json, {} );  #Worker  my $worker = Gearman::Worker‐>new;  $worker‐>job_servers(qw|localhost:7003|);  $worker‐>register_function( "fetch" => &fetch );  $worker‐>work while 1;  sub fetch {      my $job      = shift;      my $args = $job‐>arg;      $fetcher‐>fetch( decode_json($args) );  } 
  • 18. •  –  –  •  –  •  –  •  – 
  • 19. –  –  –  –  –  –  –  –  – 
  • 20. •  •  •  • 
  • 21. •  –  •  – 
  • 22. •  •  •  • 
  • 23. •  •  •  –  • 
  • 24. •  •  •  –  – 
  • 25. •  –  •  –  •