Skip to content

Instantly share code, notes, and snippets.

@wgroenewold
Created March 25, 2021 13:37
Show Gist options
  • Save wgroenewold/f24b775b76ad528a7de7f43f23ef0fb6 to your computer and use it in GitHub Desktop.
Save wgroenewold/f24b775b76ad528a7de7f43f23ef0fb6 to your computer and use it in GitHub Desktop.
mijnafvalwijzer.nl scrape to ics
curl 'https://www.mijnafvalwijzer.nl/' \
-H 'Connection: keep-alive' \
-H 'Pragma: no-cache' \
-H 'Cache-Control: no-cache' \
-H 'sec-ch-ua: "Google Chrome";v="89", "Chromium";v="89", ";Not A Brand";v="99"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'Upgrade-Insecure-Requests: 1' \
-H 'Origin: https://www.mijnafvalwijzer.nl' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36' \
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' \
-H 'Sec-Fetch-Site: same-origin' \
-H 'Sec-Fetch-Mode: navigate' \
-H 'Sec-Fetch-User: ?1' \
-H 'Sec-Fetch-Dest: document' \
-H 'Referer: https://www.mijnafvalwijzer.nl/' \
-H 'Accept-Language: en-US,en;q=0.9,nl-NL;q=0.8,nl;q=0.7' \
-H 'Cookie: Afvalwijzer=7764lp5f3lppj7ima208homcn7' \
--data-raw 'LoginForm%5Bpostcode%5D=1234AB&postcode=1234AB&isBelgium=&isSpain=&LoginForm%5Bhuisnummer%5D=1&huisnummer=1&LoginForm%5Btoevoeging%5D=&toevoeging=' \
--compressed
GET https://www.mijnafvalwijzer.nl/site/getcalendar
result = json with data.
GET https:\/\/api.mijnafvalwijzer.nl\/webservices\/ical\/d0774a0c-4c55-4c65-ba1a-ffd15e25e6a6
= ics file