YAPC::Asia 2010 Twitter解析サービス
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

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

on

  • 6,626 views

 

Statistics

Views

Total Views
6,626
Views on SlideShare
6,082
Embed Views
544

Actions

Likes
10
Downloads
32
Comments
0

7 Embeds 544

http://yusukebe.com 472
http://kamawada.com 61
http://blog.yusuke.be 4
http://yusukebe.typepad.jp 4
http://cache.baidu.com 1
http://paper.li 1
http://webcache.googleusercontent.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

YAPC::Asia 2010 Twitter解析サービス Presentation 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. •  –  •  –  •