Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: HTML Document Comparison

by ww (Archbishop)
on Mar 22, 2008 at 21:47 UTC ( [id://675686]=note: print w/replies, xml ) Need Help??


in reply to HTML Document Comparison

This is a little late for OP, probably, but since planetscape has cross-referenced this thread with a more recent one, what follows may still have some value for future readers

.."to determine if they are similar enough to be considered "the same"

There are some great answers, above, but note that some of them touch on what seems to me to be the threshold problem. To be explicit:

What are the criteria for sameness? For one example, are two pages "to be considered the same" if one presents a given data set as a piechart and another as a barchart? ...in tabular fashion rather than as a block of lines?

More generally, are we trying to see if:

  1. the two documents render the same content with mere typographic differences occuring solely because of variant markup? (and what makes those differences "mere?")
  2. the content is different, but the general appearance (layout) is the same or similar? (and for what value of "similar?")

If you sample only segments of the comparatives, how much risk of a false positive are you willing to accept?

Much as I admire the posts above, I think you need to answer these (and similar) questions for your project before adopting a method.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-18 19:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found