Linux for Data Scientists
HOGENT toegepaste
informatica
Thomas Parmentier, Andy Van Maele, Bert Van Vreckem, Jan Willem
2025-2026
Browsers:
CLI utilities:
$ curl icanhazip.com
193.190.172.117
Try this:
curl 'https://icanhazdadjoke.com/'curl 'https://api.coinlore.net/api/ticker/?id=90'curl 'https://education.thingsflow.eu/IAQ/DeviceByQR?hashedname=5201731f632701e602d31f98be7297e088a94eb38736c452495f02e444d4ba2d'Normally, curl prints to
stdout
When redirected, progress information is printed:
$ curl 'https://icanhazdadjoke.com/' > joke.txt
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 95 100 95 0 0 320 0 --:--:-- --:--:-- --:--:-- 319Turn off with -s / --silent
E.g.
curl -X GET https://httpbin.org/anything
curl -X POST https://httpbin.org/anything
curl -X PUT https://httpbin.org/anything
curl -X DELETE https://httpbin.org/anything
...
Which request is default?
-o, --output
<file>-O, --remote-namecurl -s -o anything.json https://httpbin.org/anything
curl -s -O https://www.google.com/robots.txt
-i, --include: toon ook de HTTP response
headers-I, --head: toon enkel de
headerscurl -i http://google.com
curl -H 'User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)' \
https://httpbin.org/anything
-L, --location-d, --data
var=val&var=valcurl -X POST -d 'penguin=tux&color=blue' https://httpbin.org/anything
Resultaat in te dienen/demonstreren (= 30% examencijfer)