Blockland Forums > Modification Help
How to use HTTPObjects
(1/4) > >>
otto-san:
The title pretty much says what I want to do.

How would I connect to a web page, read the text on it, and then send it to blockland?

if anyone can help me with this, i'd be very thankful.
MegaScientifical:
Webpages come as HTML. You need an HTML Parser to display it, and Ephialtes himself said that would be impractical in Torquescript. Indeed, it would be... I can see the problems in it...
otto-san:
I can too. So there is no (good) way to do this? :U
MegaScientifical:

--- Quote from: otto-san on December 20, 2010, 03:31:21 PM ---I can too. So there is no (good) way to do this? :U

--- End quote ---

If you don't need the FULL page displayed like a web browser, it's doable. (Such as just needing specific information.) If you want it like a web browser, no luck.

My sing script actually is online. If I don't have the song I request, it'll go into Jonathan Coulton's official wiki and look for the lyrics there. If it finds them, it converts the html of the lyrics into normal text and saves it to a .txt file to load.
otto-san:
I just need to read the text on a page. Not a browser, just a thing that gets text.
Navigation
Message Index
Next page

Go to full version