I am trying to write this script that pulls my stats from the steam api. I follow many other tutorials and based my code mostly on these posts: Parsing HTML page with HtmlAgilityPack and C# - How do I get the URL of an icon from Steam Trading API (encoded) But when I run my project it just returns a blank screen, with no error codes or anything. Here's the source code:
using HtmlAgilityPack;
using System;
using System.Xml.XPath;
namespace csgo_stats
{
class Program
{
static void Main(string[] args)
{
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml("http://api.steampowered.com/ISteamUserStats/GetUserStatsForGame/v0002/?appid=730&key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&steamid=76561197972495328");
XPathNavigator docNav = doc.CreateNavigator();
XPathNavigator stats = docNav.SelectSingleNode("/html/body/pre");
Console.WriteLine(stats);
Console.ReadKey();
}
}
}