Skip to content
This repository has been archived by the owner on Nov 20, 2022. It is now read-only.

Downloading entire dataset does not work #2

Open
trenki2 opened this issue Apr 27, 2021 · 0 comments
Open

Downloading entire dataset does not work #2

trenki2 opened this issue Apr 27, 2021 · 0 comments

Comments

@trenki2
Copy link

trenki2 commented Apr 27, 2021

I tried to follow the guide in the Readme.md but the examples to download the entire dataset do not work.
See the code below:

var client = new QuandlClient(apiKey);

// This does not work as in the example!
// Instead of a zip file json data will be downloaded. Not the full dataset is downloaded.
using (var stream = client.Tables.DownloadAsync("WIKI/PRICES").Result)
using (var fs = File.Create("prices.zip"))
    stream.CopyTo(fs);

// This does not work as in the example!
// This downloads .csv data but not as a zip file. Not the full dataset is downloaded.
using (var stream = client.Tables.DownloadAsync("WIKI/PRICES.csv").Result)
using (var fs = File.Create("prices.csv.zip"))
    stream.CopyTo(fs);
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant