shell - Does curl retrieve data from REST API? -
i'm using curl command data rest api, , incremental pull every day data api. so, using curl command download data csv through script daily, pull data api?
command used:
curl -o '-token-' https://example/api/views/ > data.csv
so keep curl command in script download data everyday api , use csv spreadsheets.
and curl data api or today's data? or can use python script download data everyday?
yes. curl can this.
look doing following:
1) create bash script curl command in it. https://www.linux.com/learn/writing-simple-bash-script
2) set cron tab execute bash script on schedule. http://www.computerhope.com/unix/ucrontab.htm
the above assumes you're using linux, can achieve same thing in macos , windows10 (using bash windows).
my advise create droplet on digitalocean. there can run simple linux server in cloud stays , runs above you.
Comments
Post a Comment