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

Re: detecting site changes

by ranjan_jajodia (Monk)
on Sep 06, 2004 at 15:36 UTC ( [id://388821]=note: print w/replies, xml ) Need Help??


in reply to detecting site changes

What is your question? I would think it is a pretty straight forward thing. You need HTML::Parse module. Go through lwp's documentation. It is pretty solid.
#save $var->content as html file (to match with next day's file) in th +e normal manner (not shown here) $var=$user_agent->get('url') ; $parsed_html=parse_html($var->content); $txt_on_the_page=$parsed_html->format; #for the earlier saved html $old_parsed_html=parse_html($oldfile->content); $txt_on_the_old_page=$old_parsed_html->format; # now compare $txt_on_the_page & $txt_on_the_old_page. I have put very + less code with very optimistic approach. But with little effort you +will get what you need.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-03-29 10:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found