Reading HTML Text

Recommended Posts

will88 0

will88 0

Im trying to read all the text off a webpage, the text is "Location:" then get all the text to the right of ":" which at the moment is "test" then declare that as a variable>msgbox of what just the text to the right of ":" is.

Share this post

Link to post

Share on other sites

Szhlopp 17

Szhlopp 17

Im trying to read all the text off a webpage, the text is "Location:" then get all the text to the right of ":" which at the moment is "test" then declare that as a variable>msgbox of what just the text to the right of ":" is.

Share this post

Link to post

Share on other sites

dbzfanatic 0

dbzfanatic 0

Try using the pattern PsaltyDS modified from mine. As mentioned the one you are using will gather everything after Location: so perhaps you're getting more than you needed. Try that and also if nothing else you can use a MsgBox to output the result before you send it to your if statement to see what it really is and ensure you're gathering the proper data.

Share this post

Link to post

Share on other sites

will88 0

will88 0

Try using the patter PsaltyDS modified from mine. As mentioned the one you are using will gather everything after Location: so perhaps you're getting more than you needed. Try that and also if nothing else you can use a MsgBox to output the result before you send it to your if statement to see what it really is and ensure you're gathering the proper data.

alright I tried the one you coded earlier but when I try to msgbox $results it tells me that $results is not declared