d0n Posted December 2, 2009 Posted December 2, 2009 Hi, i was just wondering why i am getting 2 different source from this script, shouldn't they both produce the same result just different formatting or something? #include <INet.au3> #include <FF.au3> $Address = 'www.yahoo.com' $source = _INetGetSource( $Address ) FileWrite(@DesktopDir&"\Inetgetsource.txt", $source) _FFStart($Address,Default,2) FileWrite(@DesktopDir&"\FF.txt", _FFReadHtml()) _FFDisConnect()
Stilgar Posted December 2, 2009 Posted December 2, 2009 Hi, i was just wondering why i am getting 2 different source from this script, shouldn't they both produce the same result just different formatting or something? #include <INet.au3> #include <FF.au3> $Address = 'www.yahoo.com' $source = _INetGetSource( $Address ) FileWrite(@DesktopDir&"\Inetgetsource.txt", $source) _FFStart($Address,Default,2) FileWrite(@DesktopDir&"\FF.txt", _FFReadHtml()) _FFDisConnect() _FFReadHTML returns by default only the body-source. If you wanna have the header too, just use _FFReadHTML("html"): http://english.documentation.ff-au3.thorsten-willert.de/ff_functions/_FFReadHTML.php But I think this function(s) (_FFReadHTML/_FFReadText) are complete useless and I would remove them in one of the next versions of the FF.au3 ... you can get any text, attribute and so on via _FFXpath. jEdit4AutoIt PlanMaker_UDF
GerardJ Posted February 24, 2010 Posted February 24, 2010 But I think this function(s) (_FFReadHTML/_FFReadText) are complete useless and I would remove them in one of the next versions of the FF.au3 ... you can get any text, attribute and so on via _FFXpath.Please do not do this, not everybody is as fluent as you with xpath...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now