Created
March 25, 2021 13:37
-
-
Save wgroenewold/f24b775b76ad528a7de7f43f23ef0fb6 to your computer and use it in GitHub Desktop.
mijnafvalwijzer.nl scrape to ics
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
New year, new URL:
https://api.mijnafvalwijzer.nl/webservices/appsinput/?apikey=5ef443e778f41c4f75c69459eea6e6ae0c2d92de729aa0fc61653815fbd6a8ca&method=postcodecheck&postcode=1234AB&street=Teststraat&huisnummer=1&toevoeging=&app_name=afvalwijzer&platform=phone&afvaldata={4}&langs=nl&"