Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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"]);
        }