Weather app in c | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Weather app in c

Is it possible to code a weather app in c(console)? In general i try to find out how i can get data from a website and print to the console. I did some research but couldn't find anything.

24th Aug 2019, 9:48 AM
Maxim Schiffmann
Maxim Schiffmann - avatar
3 Answers
+ 1
Let's say you have data you want online. https://www.google.com/search?q=weather+today You can use C to send commands (such as wget) to your terminal to download a link as a HTML document. You can then open those documents and look for the data the you want, extract it and display it on your console.
24th Aug 2019, 10:47 AM
Hatsy Rei
Hatsy Rei - avatar
+ 1
You can also use curl API to do all the job inside of your program
24th Aug 2019, 12:23 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
0
@Hatsy Rei im serching for a tutorial, can you recommend me one?
24th Aug 2019, 12:29 PM
Maxim Schiffmann
Maxim Schiffmann - avatar