Re: Compare web pages by URL



Bartolomeo Nicolotti wrote:
I've tried, but this compares html, I'd like to compare it rendered,
without having to see all html tags, js, ...

Aha! So you wanted to strip all tags.

You might use something like this:

meld \
<(curl -s $url1 | tr '\n\r' '  ' | sed 's:<[^>]*>::g') \
<(curl -s $url2 | tr '\n\r' '  ' | sed 's:<[^>]*>::g')

(or replace "curl -s $url" with "wget -q -O - $url")

--
Best Regards / S pozdravom,

Pavol RUSNAK                                       SUSE LINUX, s.r.o
Package Maintainer                                Lihovarska 1060/12
PGP 0xA6917144                                     19000 Praha 9, CR
prusnak[at]suse.cz                                http://www.suse.cz


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]