Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Grab a node from e2

by nashdj (Friar)
on May 24, 2000 at 16:41 UTC ( #14541=perlcraft: print w/ replies, xml ) Need Help??

   1: #!/usr/bin/perl
   2: #Grabs a node from e2. It's not perfect, but it does the job most of the time.
   3: use LWP::Simple;
   4: my $page = get "http://everything2.com/index.pl?node=$ARGV[0]";
   5: if (!(($page =~ /findings:/i) || ($page =~ /nothing found/i) || ($page =~ /was last logged in:/i)))
   6: {
   7: 	$page =~ s/\n|\r//g;
   8: 	$page =~ s/<!-- TABLE #2\.1 Ends here -->.*|^.* utc|<.*?>//g;
   9: 	$page =~ s/  +/ /g;
  10: 	print $page;
  11: }

Comment on Grab a node from e2
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlcraft [id://14541]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (13)
As of 2014-07-14 12:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (258 votes), past polls