Manic Posted June 28, 2011 Share Posted June 28, 2011 (edited) Good evening everyone, I am trying to write code that will allow me to loop through an HTML document and store data in an array. The element I am looking at in particular is: <li class="examplename " (intentional space after the e, intentionally left the right closing bracket open because there are several other properties) How would I go about scanning the entire page and tell my code to store all data between the <li class="examplename "... to the end of the </li> in an array, and then proceed onto the next <li class="examplename " and do the exact same? I'm determined to solve this. Thank you, Manic edit: sp. error Edited June 28, 2011 by Manic Link to comment Share on other sites More sharing options...
JohnOne Posted June 28, 2011 Share Posted June 28, 2011 There will be a number of ways, including probably the best in the IE UDF (if you want to use IE of course) There are regexp solutions also, and _StringBetween() UDF. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Manic Posted June 28, 2011 Author Share Posted June 28, 2011 Hey JohnOne, I am dealing primarily with the IE UDF. I am willing to spend the time on the method that proves to make the most robust code possible. Which direction would you suggest? Manic Link to comment Share on other sites More sharing options...
JohnOne Posted June 28, 2011 Share Posted June 28, 2011 Probably _IETagNameGetCollection() AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Manic Posted June 28, 2011 Author Share Posted June 28, 2011 (edited) JohnOne, I did forget to mention, this code is going to be dealing with an iFrame. Should I be careful/use a different method than _IETagNameGetCollection()? Manic Edit: I've decided to show extensive code from both my side and the website's source code. This will explain much better what I am trying to do. Edited June 28, 2011 by Manic Link to comment Share on other sites More sharing options...
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