Is it possible?
Corona supports networking. Your question is a little vague though. What exactly do you need to do?
Yeah, more information would be great to point you in the right direction, but the general answer is yes. I have an app that downloads an XML file and reads strings of text from it and displays them.
I’d like to download a part of the text that is written on a website and make it appear on my device. I know that this is possible with images. If it is possible, I would really like to know how .
Thank you very much
Without more information, I don’t think there is any way to tell you how you might be able to do it.
If the website offers an RSS feed, then you could download that and get to the text that you want. That would likely be the easiest case.
“download a part of the text” … do you mean you just want 5 words out of the middle of some HTML file that makes up a webpage?
I’m not sure that kind of thing is directly possible, but you can definitely use network.request to grab the entire contents of the webpage, then use the string.* functions to sift through it.
There are modules available to help parse (at least) JSON and XML (thus HTML) … so you should be able to pretty quickly strip out the formatting junk and get to the “real text” of the page.
Corona supports networking. Your question is a little vague though. What exactly do you need to do?
Yeah, more information would be great to point you in the right direction, but the general answer is yes. I have an app that downloads an XML file and reads strings of text from it and displays them.
I’d like to download a part of the text that is written on a website and make it appear on my device. I know that this is possible with images. If it is possible, I would really like to know how .
Thank you very much
Without more information, I don’t think there is any way to tell you how you might be able to do it.
If the website offers an RSS feed, then you could download that and get to the text that you want. That would likely be the easiest case.
“download a part of the text” … do you mean you just want 5 words out of the middle of some HTML file that makes up a webpage?
I’m not sure that kind of thing is directly possible, but you can definitely use network.request to grab the entire contents of the webpage, then use the string.* functions to sift through it.
There are modules available to help parse (at least) JSON and XML (thus HTML) … so you should be able to pretty quickly strip out the formatting junk and get to the “real text” of the page.