Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

RE: Full Size version forwarder :)

by Anonymous Monk
on Aug 08, 2000 at 04:39 UTC ( #26709=note: print w/ replies, xml ) Need Help??

in reply to Full Size version forwarder :)

Since I wrote all the UF systems, I've seen literally hundreds of these files go around. There is a quite simple and complete view of the content: wget returns an rdf file. The date param is optional, and defaults to today. The action parameter is not optional nor is the form param. There are other forms as well which change the output format. One of the output formats is "already parsed" but thats limited to our address blocks. That file format is guaranteed not to change. The one mentioned here is scheduled to be deleted. The only reason I have not done so already is because I'm lazy.... We'd of course ask that you use this for personal usage only....

Comment on RE: Full Size version forwarder :)
RE: RE: Full Size version forwarder :)
by Yohimbe (Pilgrim) on Aug 08, 2000 at 04:43 UTC
    Duuh. Forgot to login.
    The material from the Anonymous Monk above was mine.
    Is there any way to "Take ownership" of a previous anon post?
Re: RE: Full Size version forwarder :)
by Anonymous Monk on Jun 08, 2001 at 21:17 UTC
    #!/usr/global/bin/perl use File::Basename; my $search_url = ' +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");
      #!/usr/global/bin/perl -w use File::Basename; my $search_url = ' +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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://26709]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (14)
As of 2015-03-03 16:55 GMT
Find Nodes?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:

    Results (77 votes), past polls