CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Html::Parser??

 



perlkid
stranger

Sep 7, 2000, 10:45 AM

Post #1 of 3 (238 views)
Html::Parser?? Can't Post

 
Hello Everyone,

I have been using LWP::Simple for almost all of my parsing.

Lately, I have needed to parse web pages with a lot of gifs.

Fixing the path to the gifs only works %80 of the time. Somtimes the code fails to make the proper adjustments to the paths.

I have also tried using mirror but still, I'd have to fix all the paths.

I haven't found anything about this html::Parser though.

Would this module or any other automaticaly fix all the paths to the gifs and hrefs for me??

Thanks,

perlkid


Kanji
User

Sep 7, 2000, 9:00 PM

Post #2 of 3 (239 views)
Re: Html::Parser?? [In reply to] Can't Post

Yes, HTML::Parser could be used to rewrite URLs. See the script hrefsub that should have come with the module ( eg/hrefsub ).

Also, you may want to take a look at the script lwp-rget, which gets installed with LWP ...

<BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">quote:</font><HR>perldoc lwp-rget excerpt ...
This program will retrieve a document and store it in a local file. It will follow any links found in the document and store these documents as well, patching links so that they refer to these local copies.<HR></BLOCKQUOTE>


perlkid
stranger

Sep 8, 2000, 10:21 AM

Post #3 of 3 (238 views)
Re: Html::Parser?? [In reply to] Can't Post

 
Great, Thanks Kanji,

perlkid

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives