Micolithe
Agender
36 years old
Philadelphia, PA
Online Now
Last Login: 08/30/2007

Agender Enby, Trans, Gay, AND the bearer of the gamer's curse. Not a man, not a woman, but instead I am puppy.
I got a fat ass and big ears.

--

Yes I did the cooking mama Let's Play way back when. I post alot about Tech (mostly how it sucks) and Cooking and Music and Television Shows and the occasional Let's Play video
💖@FadeToZac

--

We all do what we can ♫

So we can do just one more thing ♫

We can all be free ♫

Maybe not in words ♫

Maybe not with a look ♫

But with your mind ♫


last.fm listening



DecayWTF
@DecayWTF

Damn you cloudflare, stop fucking with my API requests.


micolithe
@micolithe

Absolutely Nobody:

Cloudflare: HEY IS THIS A BUS?


DecayWTF
@DecayWTF

This is 100% not a joke: I just woke up and I was dreaming about how to hand off control from Lisp back to a browser to handle this case. I may have a problem.


micolithe
@micolithe

I managed to trick them with selenium, that line overriding webdriver to "null" for the navigator property was the secret sauce I think.

chrome_opt=Options()
chrome_opt.add_argument("--headless")
chrome_opt.add_argument("--disable-gpu")
chrome_opt.add_argument("--window-size=1920,1080")
chrome_opt.add_argument("--start-maximized")
drv=webdriver.Chrome(chromedriver_location, options=chrome_opt)
drv.execute_cdp_cmd('Network.setUserAgentOverride', {"userAgent": 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36'})
drv.execute_cdp_cmd("Page.addScriptToEvaluateOnNewDocument", {
  "source": """
    Object.defineProperty(navigator, 'webdriver', {
      get: () => undefined
    })
   """
})

You must log in to comment.