Created
August 12, 2009 13:52
-
-
Save yusukebe/166514 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use LWP::UserAgent; | |
| use YAML; | |
| my $query = "isoyama"; | |
| my $ua = LWP::UserAgent->new( agent => 'YourAVPhoto::Crawler' ); | |
| my $res = $ua->get("http://www.tumblr.com/search/$query"); | |
| if ( my @urls = $res->content =~ m!url\('(http://\d+\.media\.tumblr\.com/.+\.jpg)'\)!gm ){ | |
| warn Dump @urls; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment