I have a load of HTML.
I want to get data on specific tags.
Is there AHK code that has tools that will help me search through and find what I want?
I was hoping there would be ready made tools, else I'll have to perform some sort of text search.
Thanks.
Are there tools for analyzing HTML?
Re: Are there tools for analyzing HTML?
Chrome DevTools.
Re: Are there tools for analyzing HTML?
A bit confused.
Chrome Dev tool is relating to Chrome?
How would I use AHK to get the information I needed?
Is there some sort of interface that AHK can access?
I was thinking of grabbing many pages of HTML and processing one by one.
Any examples you can give would be really nice.
Thanks.
Chrome Dev tool is relating to Chrome?
How would I use AHK to get the information I needed?
Is there some sort of interface that AHK can access?
I was thinking of grabbing many pages of HTML and processing one by one.
Any examples you can give would be really nice.
Thanks.
-
- Posts: 4344
- Joined: 29 Mar 2015, 09:41
- Contact:
Re: Are there tools for analyzing HTML?
Perhaps HTMLFile object is what you need:
Code: Select all
html =
(
<!DOCTYPE html>
<html>
<body>
<div>
<p>One line</p>
<p>Another one</p>
</div>
</body>
</html>
)
document := ComObjCreate("HTMLFile")
document.write("<meta http-equiv=""X-UA-Compatible"" content=""IE=edge"">")
document.write(html)
text := document.querySelector("div").innerText
MsgBox, % text
Who is online
Users browsing this forum: Bing [Bot], kshitij90 and 343 guests