Is there a way in Selenium (with Python) to enable the "Do-Not-Track"-function?
I mean the limitation of a browser (in my case: Firefox geckodriver) to retrieve the geolocation of the user.
I know that this is possible and here is a similar question on GitHub but 1.It's written in JavaScript and 2.It just doesn't work.
Does anyone know a solution?
Here is my code so far:
import selenium.webdriver
profile = FirefoxProfile()
profile.set_preference("javascript.enabled", False)
options = webdriver.firefox.options.Options()
options.headless = True
profile.update_preferences()
browser = webdriver.Firefox(firefox_profile=profile, options=options)
browser.get("https://thesafety.us/check-ip")
Thanks