Tool that tests MANY url bypasses to reach a 40X protected page. If you wonder why this code is nothing but a dirty curl wrapper, here's why:
This is surprisingly hard to achieve in python without loosing all of the lib goodies like parsing, ssl/tls encapsulation and so on. So, be like me, use curl as a backend, it's gonna be just fine.
To access personal data that isn't available in Your Account or in your device (e.g. your search history):
A free, fast and beautiful API request builder (web alternative to Postman) used by 60k+ developers. Play around with requests when developing against an API. Supports all HTTP verbs. Is technically a PWA.
Online demo (in devtools): https://postwoman.io
A stackoverflow discussion about how to use python to make an xmlhttprequest. I looked this up because that's how you're supposed to interact with unmark's pseudo API. The accepted answer shows how to do it with scrapy, but I think it could be adapted for use with the requests module. The HTTP method would be POST, and one of the headers would be "X-Requested-With: XMLHttpRequest". It's worth a shot, at any rate.