Gossamer Forum
Quote Reply
LWP
can someone teach me how to use lib-wwwperl (LWP) like how to get content...and how to rip certain parts of the site and put them on mine using an LWP script. im willing to give anyone who can explain it credit for helping me out. thanks...

Quote Reply
Re: LWP In reply to
I use this:

$url = 'http://someURLhere.com/';
use LWP::Simple;
$content = get("$url");
print $content;

And do whatever with $content. I can't get getstore to work though. It just outputs a blank file. Anyone else got any ideas?


Quote Reply
Re: LWP In reply to
ok, thanks for that help..some of that i knew...but it cleared it up for me. but heres what im really looking for. i see cgi scripts that will rip the headlines from abcnews.com and bbb.com and linux.com and stuff like that. i want to be able to create a script that can pick out specific parts of a website. i tried looking at the code of those programs...but it got too complicated....all i kno is that they try to pick out that part of the site by looking for the comment tags. () How do I create a script that does this?

Quote Reply
Re: LWP In reply to
ok i messed up above...the comment tag is this:
<!-----Comment Here----->

Quote Reply
Re: LWP In reply to
Check http://www.edsgarage.com/ed/webpluck/