Jump to content

Pull Text From Webpage


Recommended Posts

Okay normally I dont have issues with somthing as basic as pulling text from a website but how can I pull the two passwords displayed on this page.

$UsernameAndPassword = _IECreate("http://www.generate-password.com/")

_IELoadWait ($UsernameAndPassword)

there is my code obviously the url is

www.generate-password.com/

thank in advance

Link to comment
Share on other sites

#include "IE.au3"
#include "array.au3"
$UsernameAndPassword = _IECreate("http://www.generate-password.com/")
_IELoadWait ($UsernameAndPassword)
$sText = _IEBodyReadHTML ($UsernameAndPassword)
$pw=StringRegExp($sText,"value=........",3)
_ArrayDisplay($pw)

Link to comment
Share on other sites

A spin from Sheik's code..

#include <INet.au3>
$aPasses = StringRegExp(_INetGetSource('http://www.generate-password.com'),"value=........", 3)
MsgBox(0, "Generated Passwords", @TAB & StringReplace($aPasses[0],'value="', "") & ' : ' & StringReplace($aPasses[1],'value="', ""))

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

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