Sign in to follow this  
Followers 0
d3adlin3

Problem scraping from Web Page

3 posts in this topic

#1 ·  Posted (edited)

Hi All,

Im trying to pull some information from a Web Page but im having some problems with some of the HTML syntax breaking my String search.

Ive tried encoding the HTML but then it does not pull the information back which I want :)

Heres my code (Please suggest any improvments)

#include <ie.au3>
#include <string.au3>

$oIE    = _IECreate("http://www.mywebsite.com/index.php",1,1)
$Source = _IEBodyReadHTML($oIE)
_IELoadWait($oIE, 1000, 5500)

;Troublesome line:
$return = _StringBetween($Source,"')" style="text-decoration: none; color: rgb(255, 255, 255);" title="Data">","</a>")

ConsoleWrite($return[0] & @CRLF)

I just dunno how to use StringSearch with these special characters :)

Any help would be great!

Thanks

D3ADLiN3

Edited by d3adlin3

Share this post


Link to post
Share on other sites



thanks for the fast reply, im getting the error 'Subscript used with non-Array variable' but dont understand why? :S

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
Sign in to follow this  
Followers 0