Jump to content
Sign in to follow this  
Kinshima

Determine what changed in html

Recommended Posts

Kinshima

Hey guys,

im try'ing to read an page in HTML, change to another page and read the HTML again and make a var with the html that changed on these pages.

#include <IE.au3>

$main = _IECreate ($news)

_IELoadWait($main)

$body1 = _IEBodyReadHTML($main)

_IENavigate ($main, $otherpageonsamewebsite)

_IELoadWait($main)

$body2 = _IEBodyReadHTML($main)

$changedhtml = "need help, you rule"

Cheers,

Kinshima

Share this post


Link to post
Share on other sites
Fulano

#include <IE.au3>

$main = _IECreate ($news)
_IELoadWait($main)
$body1 = _IEBodyReadHTML($main)
_IENavigate ($main, $otherpageonsamewebsite)
_IELoadWait($main)
$body2 = _IEBodyReadHTML($main)
$changedhtml = "need help, you rule"

To clarify, you are looking to do something like diff?


#fgpkerw4kcmnq2mns1ax7ilndopen (Q, $0); while ($l = <Q>){if ($l =~ m/^#.*/){$l =~ tr/a-z1-9#/Huh, Junketeer's Alternate Pro Ace /; print $l;}}close (Q);[code] tag ninja!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×