Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- curl -L --output cat.jpg $(curl --request GET \
- --url 'https://api.thecatapi.com/v1/images/search?format=json&mime_types=jpg' \
- --header 'Content-Type: application/json' \
- --header 'x-api-key: cf3a933-4b98-4f09-b4c9-b0ebfe2cea31' | jq '.[0].url' | tr -d '"')
- img2txt -W 120 -H 40 ./cat.jpg
- curl --request GET \
- --url 'http://api.icndb.com/jokes/random' | jq '.value.joke'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement