Created
March 16, 2009 15:01
-
-
Save matsuu/79912 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
| #!/usr/bin/perl | |
| use strict; | |
| use warnings; | |
| use Web::Scraper; | |
| use URI; | |
| my $scraper = scraper{ | |
| process '//img[contains(@src,"/clk/")]', img => '@src'; | |
| }; | |
| while(1){ | |
| my $uri = URI->new('http://www.bijint.com/jp/clocks/view/'); | |
| if($uri) { | |
| my $res = $scraper->scrape($uri); | |
| system(sprintf('feh --bg-scale %s', $res->{img})); | |
| } | |
| sleep 60; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment