Jump to content

Recommended Posts

Posted

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

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.

  • 2 months later...
Posted

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

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
×
×
  • Create New...