Jump to content

difference between _inetgetsource and _FFReadHtml


d0n
 Share

Recommended Posts

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()
Link to comment
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.

Link to comment
Share on other sites

  • 2 months later...

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...