0

Is it possible to pull data from a website on c#?

So basically I was wondering if it were possible to use a variable from a website or some api within a c# console code (as what's used here on the playground). for instance, id like to pull a certain rate from a stock website and use it in one of my equations. Can I do that within the playground? How would I go about doing this?

9th Nov 2017, 7:31 PM
Zezima
Zezima - avatar
4 Antworten
+ 5
Okay, I think I understand better. Well, the only other method I can think of is to just send a request to the website, store the response data (basically downloading the webpage), and then look through that stored data for whatever you're looking for. Read up on WebRequest/WebResponse and it'll give you a good idea of what to do. Best of luck to you.
9th Nov 2017, 8:34 PM
AgentSmith
+ 1
I'm not looking for that amount of in-depthness but I appreciate the links. I just want to grab a variable from a website and use it in a console application
9th Nov 2017, 8:10 PM
Zezima
Zezima - avatar