leegold Posted September 25, 2013 Share Posted September 25, 2013 Hi, Using FF.au3. I want to extract from a web page all HTML elements with the general form of <p class="row"...>,,,</p> there are many elements like this on the page and I want to get them all. I was thinking to use _FFXPath but the page is not Well Formed XHTML/XML. I also see FFReadHTML but as AFAIK it only copies all children of html or body tags(?) I could use FFReadHTML and then use regex to get all the elements I want. But is there an easier way? Thanks, Lee G. I Link to comment Share on other sites More sharing options...
Kidney Posted September 25, 2013 Share Posted September 25, 2013 i have always used the FFReadHTML and then used StringInStr along with StringMid allows you to pull everything between <p class="row"...> and </p> and then store it in an array. the thing that takes the longest is the FFReadHTML i would also suggest writing the HTML to a text file for debugging reasons. once u get the script working 100%, cut out that part of the code. Link to comment Share on other sites More sharing options...
allSystemsGo Posted September 26, 2013 Share Posted September 26, 2013 Can you provide the URL so that others can take a look at it? Link to comment Share on other sites More sharing options...
Morthawt Posted September 26, 2013 Share Posted September 26, 2013 (edited) I don't know about anything to do with any third party UDF's you may be using but when I need to extract elements from web pages I break the page down gradually into chunks using _StringBetween() to get to the information I need from the web page. An example of how I do this is here: '?do=embed' frameborder='0' data-embedContent>> I don't know if that is of any use to you but I thought I would share that just in case. Edited September 26, 2013 by Morthawt Free and easy Autoit scripting video tutorials (plus more videos always coming!) General video tutorials, especially correct and safe TeamSpeak permissions tutorials. Link to comment Share on other sites More sharing options...
leegold Posted September 29, 2013 Author Share Posted September 29, 2013 Thanks for the help! 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