Jump to content

See the source of the page


Recommended Posts

Can somebody please tell me how do I make a script to see the source code of a page?

I mean, I declare $site = "www.autoit.com" and in an input box (or anything else) to appear the source code of the page (<html><head> .... </html>

Link to comment
Share on other sites

I may be wrong but that function will create an Internet Explorer Object.

Won't InetGetSource get the source?

From the helpfile:

Gets the source from an URL without writing a temp file.

#include <INet.au3>
ConsoleWrite(_INetGetSource('www.autoitscript.com'))

[EDIT]

Also, about function _IEDocReadHTML

This function returns the document source after any client-side modifications (e.g. by AutoIt or by client-side Javascript). It may therefore be different than what is shown by the browser View Source or by _INetGetSource. Edited by AoRaToS

s!mpL3 LAN Messenger

Current version 2.9.9.1 [04/07/2019]

s!mpL3 LAN Messenger.zip

s!mpL3

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