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

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

on

  • 6,548 views

 

Statistics

Views

Total Views
6,548
Slideshare-icon Views on SlideShare
6,006
Embed Views
542

Actions

Likes
10
Downloads
31
Comments
0

7 Embeds 542

http://yusukebe.com 470
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解析サービス YAPC::Asia 2010 Twitter解析サービス Presentation Transcript

    • •  •  •  • 
    • •  • 
    • • 
    • •  –  •  –  •  –  •  – 
    • •  • 
    • •  •  •  • 
    • •  •  • 
    • •  •  •  • 
    • •  •  •  • 
    • •  • 
    • •  • 
    • yusuke@dev:~/work/twib/Twib/trunk$ ls  bot  cli  etc  migration  schema  web 
    • •  •  •  •  • 
    • •  Package Twib::CLI::Reader::Feed;  use JSON::XS;  use LWP::UserAgent;  Package Twib::CLI::Reader::Stream;  use AnyEvent::Twitter::Stream; 
    • •  • 
    • •  –  •  –  •  – 
    • #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) );  } 
    • •  –  –  •  –  •  –  •  – 
    • –  –  –  –  –  –  –  –  – 
    • •  •  •  • 
    • •  –  •  – 
    • •  •  •  • 
    • •  •  •  –  • 
    • •  •  •  –  – 
    • •  –  •  –  •