reida Posted August 17, 2018 Posted August 17, 2018 Hello. On page there is mail address. How to keep in a text file this address? It is page and emailhttps://alpari.com/ info@alpari.com
reida Posted August 17, 2018 Author Posted August 17, 2018 Hello. On page there is mail address. How to keep in a text file this address? It is page and emailhttps://alpari.com/ info@alpari.com
FrancescoDiMuro Posted August 17, 2018 Posted August 17, 2018 @reida Global $arrStringSplit = StringSplit("https://alpari.com/", "/", $STR_NOCOUNT) ConsoleWrite("Email address: " & $arrStringSplit[2] & @CRLF) Not tested, but it should be something like this. reida 1 Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
reida Posted August 17, 2018 Author Posted August 17, 2018 6 hours ago, FrancescoDiMuro said: Thanks, what such $STR_NOCOUNT? At me an error Global $arrStringSplit = StringSplit("https://alpari.com/", "/", $STR_NOCOUNT) Global $arrStringSplit = StringSplit("https://alpari.com/", "/", ^ ERROR
user4157124 Posted August 17, 2018 Posted August 17, 2018 Install latest AutoIt (you are using a version which does not have that constant defined), or replace $STR_NOCOUNT by 2. reida 1 AUERLO (AutoIt error logger)
reida Posted August 17, 2018 Author Posted August 17, 2018 (edited) 2 hours ago, user4157124 said: Thanks. FrancescoDiMuro Now in the console "Email address: alpari.com" and it is necessary "Email address: info@alpari.com" How this mail to find on page? Edited August 17, 2018 by reida
FrancescoDiMuro Posted August 17, 2018 Posted August 17, 2018 @reida If "info" is an information that you can obtain somewhere, than show us where to find it... Else, just concatenate "info" with $arrStringSplit with & operator $arrStringSplit[2] = "info" & $arrStringSplit[2] Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
reida Posted August 17, 2018 Author Posted August 17, 2018 (edited) FrancescoDiMuro ))) No, it is necessary to find this address on page. We will assume that I do not know that "info@alpari.com address, but I know that what that the address is written on page. Edited August 17, 2018 by reida
FrancescoDiMuro Posted August 17, 2018 Posted August 17, 2018 Post the page content so ( source code ) Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
reida Posted August 17, 2018 Author Posted August 17, 2018 (edited) What for to publish a code?) Look please here https://alpari.com/ In a page bottom Edited August 17, 2018 by reida
FrancescoDiMuro Posted August 18, 2018 Posted August 18, 2018 @reida Use _IEDocReadHTML() to read the source code of the page, and the search for the email address. There are several ways to do the search, but I think the most efficent is with StringRegExp() reida 1 Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now