Cannot wget CSV


#1

There’s this feature to download the latest CSV of a certain extractor in the “integrations” tab. If I copy/paste that into my browser the download works fine. But if I try this:

wget "https://data.import.io/extractor/xxx-xxxx-xxxx/csv/latest?_apikey=xxx" 

I get the following:

Resolving data.import.io (data.import.io)… 34.197.30.120, 34.197.4.12
Connecting to data.import.io (data.import.io)|34.197.30.120|:443… connected.
HTTP request sent, awaiting response… 302 Found
-----> redirect
Resolving store.import.io (store.import.io)… 34.197.30.120, 34.197.4.12
Connecting to store.import.io (store.import.io)|34.197.30.120|:443… connected.
HTTP request sent, awaiting response… 400 Bad Request
2017-03-09 15:16:27 ERROR 400: Bad Request.

Notice I actually used the double quotes around the URL, as suggested everywhere. Still my request seems malformed.
I want to install a cronjob that automatically downloads new CSVs of a certain extractor every certain interval. That shouldn’t be so hard.