Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do you get the elements of a page using html service?

How can you actually get the ELEMENTS of a page, using html service? This is a question I have for a long time, and I don't actually get the answer.

If you use:

htmlservice:GetAsync("url")

It would just return the main js code of the page. But if i'm looking for a text in a page i won't look on the coding, but on the object creating, (html).

If someone has the answer I would like to get it. Thanks.

1 answer

To be pedantic, the service name is actually HttpService, and you're talking about HTML being returned, not JavaScript.

Regardless, you need to parse the HTML. Here's a helpful HTML parser in Lua that should be able to help.

This discussion is preserved as it was. New answers, comments, and votes are closed.