private void FetchData(object sender, EventArgs e) { string pyFilePath = @"C:\Users\resnick\crawler-for-csharp\crawler.py"; string jsonString = PyShell.Exec(pyFilePath); rates = JObject.Parse(jsonString); }
private static void Main(string[] args) { string pyFilePath = @"C:\Users\resnick\crawler-for-csharp\crawler.py"; string jsonString = PyShell.Exec(pyFilePath); JObject rates = JObject.Parse(jsonString); Console.WriteLine(rates["JPY"]); }