Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: RE: UserFriendly.org Full Size version forwarder :)

by Anonymous Monk
on Jun 08, 2001 at 21:17 UTC ( #86988=note: print w/replies, xml ) Need Help??


in reply to RE: UserFriendly.org Full Size version forwarder :)
in thread UserFriendly.org Full Size version forwarder :)

#!/usr/global/bin/perl use File::Basename; my $search_url = 'http://www.userfriendly.org/cgi-bin/texhtml?form=uf/ +rdf\&action=search'; my $comics_dir = '/home/user/.comics/'; my $url; open(IN, "wget -q -O - $search_url |") or die $!; while (<IN>) { if (/Today\'s Strip/) { <IN> =~ m|<link>(.*)</link>|; $url = $1; break; } } my $gif = $comics_dir . basename($url); system("wget -q -O $gif $url"); system("xv $gif");

Replies are listed 'Best First'.
Re: Re: RE: UserFriendly.org Full Size version forwarder :)
by Anonymous Monk on Jun 08, 2001 at 21:34 UTC
    #!/usr/global/bin/perl -w use File::Basename; my $search_url = 'http://www.userfriendly.org/cgi-bin/texhtml?form=uf/ +rdf\&action=search'; my $comics_dir = '/home/user/.comics/'; open(IN, "wget -q -O - $search_url |") or die $!; while (<IN>) { last if /Today\'s Strip/; } <IN> =~ m|<link>(.*)</link>|; my $gif = $comics_dir . basename($1); system("wget -q -O $gif $1"); system("xv $gif");

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://86988]
help
Chatterbox?
[choroba]: Good morning!
[Corion]: I hope you had a good weekend!
[marto]: jetlag has really done a number on the kids, it's been a tough week
choroba played with the band on Saturday, so Sunday was very sleepy
[choroba]: managed to release Syntax::Construct with 5.28 support in the night, though
[Corion]: choroba: Whee ;)
[Corion]: marto: Ouch - I would've thought that kids adapt much better, but that's obviously not the case...
[marto]: well, their mother let them sleep till 15:00 & 12:00 last week, which didn't help them adjust :P
[Corion]: I was "productive" over the weekend in the sense that I revived my old "Perlmonks on SQLite" code, which likely means I can get a test instance back up running on my webhost. Small steps :)
[Corion]: marto: Ow, no, that doesn't help at all :)

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2018-06-25 08:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (126 votes). Check out past polls.

    Notices?