import requests
session = requests.Session()
session.headers.update({'Some headers'})
session.headers.update({'Some headers'})
session.headers.update({'Some headers'})
session.headers.update({'Some headers'})
session.headers.update({'Some headers'})
session.get('SomeWebsite').url
From this script I get an URL.
Just typing in the url wont work, because It doesnt have the same headers as In the response.
For Example If I go to www.example.com with the standard CF-RAY, I'll be redirected to A website www.example.com/No
If I go to www.example.com with the CF-RAY that I got from the response I'll be redirected to www.example.com/Yes
Bassicly In looking for something like this
session.get('SomeWebsite').OpenUrlInMyBrowser
Thanks alot! Stefan