aboutsummaryrefslogtreecommitdiff
path: root/zeitung/placeholder/get.sh
diff options
context:
space:
mode:
authorMarvin Borner2021-03-05 20:32:28 +0100
committerMarvin Borner2021-03-05 20:32:28 +0100
commit550af931488494a2a0477dca0ad8b6644143fce2 (patch)
treed8efac7707b99a1bbc88effb0a27b23609594b3a /zeitung/placeholder/get.sh
parent0780898e8a99266112b077c9a88edafc99cdd9fe (diff)
OKAY!
Diffstat (limited to 'zeitung/placeholder/get.sh')
-rwxr-xr-xzeitung/placeholder/get.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/zeitung/placeholder/get.sh b/zeitung/placeholder/get.sh
new file mode 100755
index 0000000..000e14a
--- /dev/null
+++ b/zeitung/placeholder/get.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+MAX=300
+if [[ ! -z "$1" ]]; then
+ MAX=$1
+fi
+
+for i in $( seq $MAX ); do
+FILE=${i}.jpg
+curl 'https://thispersondoesnotexist.com/image' -H 'authority: thispersondoesnotexist.com' -H 'pragma: no-cache' -H 'cache-control: no-cache' -H 'upgrade-insecure-requests: 1' -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.80 Safari/537.36' -H 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3' -H 'referer: https://thispersondoesnotexist.com/' -H 'accept-encoding: gzip, deflate, br' -H 'accept-language: en-US,en;q=0.9' --compressed -o $FILE
+sleep 1
+done