![]() |
How to get data from a web page?
I got a request to make a program for the swedish exercise site www.dumbbell.se. As I'v never done any programs that syncs with a web page I'm asking you guys for help.
What do I need to learn to make this program? Javascript? I guess this is quite the same as doing a facebook app? Does the site need to have some open API or such? |
Re: How to get data from a web page?
Google that?
|
Re: How to get data from a web page?
Quote:
lol |
Re: How to get data from a web page?
Quote:
Essentially, this would suggest that the site already has a mechanism for allowing an app to poll and push data from it, maybe via SOAP, maybe a REST interface. They know what they have so talk to them, maybe research the Android and iPhone apps first if you want to be prepared. What technology are you proposing using for them? I'm guessing Qt to get the largest installed base they can for your work. Look at ways you can request and send data over http. Sorry if I've misunderstood any of your question. |
Re: How to get data from a web page?
checj qtquick example codes there are plenty of exampöle howto talk to different sites api.
infacts is very easy todo in qtquick as long as the sites in using good/public api:s. |
Re: How to get data from a web page?
I have been in contact with the page owner now and I got an answer that he uses HTTP GET and POST and get JSON in return. So I started to look for a way to work this out. Seems like the HTTP GET/POST is available through QNetworkRequest and the JSON stuff is working with the QScriptEngine.
I seem to understand how to create a JSON variable with incoming data but I do not really understand how to convert this to a QByteArray that is needed with the QNetworkRequest, any ideas? |
Re: How to get data from a web page?
Quote:
|
All times are GMT. The time now is 20:23. |
vBulletin® Version 3.8.8