Jump to content

Very hard problem of getting specific information from web


jingzhi

Recommended Posts

Posted

Hey guys! So I want to retrieve the world time from internet, and then show them in my server, is this possible? I have checked on google but I got confused, any pro on lua, please help, thank you very much!

Posted
use
fetchRemote 

Hey Ty very much but can this function retrieve specific string from the webpage or only download some file?

If you need to get a string then use

callRemote  

you can call the page that conation the real time and then return the result to LUA script using the callBack function

see the wiki example it may help you

Posted
use
fetchRemote 

Hey Ty very much but can this function retrieve specific string from the webpage or only download some file?

If you need to get a string then use

callRemote  

you can call the page that conation the real time and then return the result to LUA script using the callBack function

see the wiki example it may help you

After reading the wiki I'm still kinda confused, can you teach me more? Here is what I want to do, for example this page here http://www.weather.com/weather/today/l/SPMD0627:1:SP I want to get the temperature string from this web, how should I do it? Again, thank you very much! :)

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...