Sign in to follow this  
Followers 0
d0n

difference between _inetgetsource and _FFReadHtml

3 posts in this topic

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()

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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...

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  
Followers 0