Jump to content
toto22

Download web-page source code to the txt file

Recommended Posts

toto22

Good Day,

What would be the easiest and fast way to download web-page source code to the txt file?

Share this post


Link to post
Share on other sites
toto22

This is magic

#include <INet.au3>
#include <Array.au3>

    $HTMLSource = _INetGetSource('https://www.google.ca/?gfe_rd=cr&ei=KvWvV4CNH-Xs8wf24pXgDg&gws_rd=ssl')

    MsgBox(1,"",$HTMLSource)

 

Share this post


Link to post
Share on other sites
krista611

Appreciate the efficient example - this was magic for me too :)

  • Like 1

Share this post


Link to post
Share on other sites
Chimp

you can also get the source of an html page using commands like InetGet(), InetRead(), _INetGetSource(), _IEDocReadHTML()

  • Like 1

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Share this post


Link to post
Share on other sites
Tom_C101

Hi,

I was wondering if there was a way or commands to do the "Inspect element" of a web page. I need to find something there that is not in the source code of that same page.

Thanks

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

×