From a9d936c38cbc790dccb8e4a30c8d6b2c8f48cc46 Mon Sep 17 00:00:00 2001 From: Elektroll Date: Sat, 3 Jul 2021 12:37:28 +0200 Subject: [PATCH] =?UTF-8?q?'run.sh'=20hinzuf=C3=BCgen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 run.sh diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..b8fa1d2 --- /dev/null +++ b/run.sh @@ -0,0 +1,15 @@ +#!/bin/sh +SERVICEID="" # [0-9]{6},[0-9]{6} +REFERER="" # https://www.etermin.net/ +COOKIE="eTerminSessionId=" # 'eTerminSessionId=[a-z0-9]{23}' +USERAGENT="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0" + +curl -s "https://www.etermin.net/api/timeslots?date=2021-"{01..12}"-"{01..31}"&serviceid=$SERVICEID&capacity=1&caching=false&duration=0&cluster=true&slottype=0&fillcalendarstrategy=0&showavcap=false&appfuture=10&appdeadline=2&msdcm=0&appdeadlinewm=0&tz=W.%20Europe%20Standard%20Time&tzaccount=W.%20Europe%20Standard%20Time&calendarid=" \ +--referer "https://www.etermin.net/$REFERER" \ +-b '$COOKIE' \ +-H "webid: $REFERER" \ +-H "Accept: application/json, text/plain" \ +-H "Accept-Encoding: gzip, deflate, br" \ +-H "Accept-Language en-US,en;q=0.5" \ +-H "Content-Type: application/json" \ +-H "User-Agent: $USERAGENT" \ No newline at end of file