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?
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.
+ 4
http://csharphelper.com/blog/2015/01/get-stock-prices-from-the-internet-in-c/
https://www.codeproject.com/Articles/553206/An-Introduction-to-Real-Time-Stock-Market-Data-Pro
https://www.youtube.com/watch?v=ru7WS_2mRgU
https://www.youtube.com/watch?v=c9eS4hksVeA
https://stackoverflow.com/questions/11182161/get-quotes-from-google-finance-yahoo-finance
+ 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