Join Nostr
2024-08-07 09:50:53 UTC

Terence Eden on Nostr: Boring technical question which neither the documentation nor ChatGPT can answer. I ...

Boring technical question which neither the documentation nor ChatGPT can answer.

I want to automate screenshots using #Python's #Selenium Webdriver with #Chrome.

This works - but the non-logged in experience of Twitter forces dark-mode.

I want a light-mode screenshot.

I can't find a way to set SEC-CH-PREFERS-COLOR-SCHEME in Selenium. Nor can I find a light-mode toggle for non-logged in Twitter users.

Any clues gang?

(I want to automate replacing my Twitter embeds with a screenshot.)