baldur@toot.cafe ("Baldur Bjarnason") wrote:
RE: https://mastodon.social/@iris%5Fmeredith/116311817974687217
> In short, if friction is neglected, morale quickly ends up in the toilet and no progress to speak of can be made.
The whole piece is very good






![try: rresp = requests.get(url, timeout=10) except requests.exceptions.ReadTimeout: print(f"timed out {url}, trying selenium") hdata = "{}" from selenium import webdriver driver = webdriver.Safari() driver.get(url) element = driver.find_element("xpath", "/html") outerhtml: str = element.get_attribute("outerHTML") # type:ignore[no-untyped-call] bdata = outerhtml.encode("utf-8") else: hdata = json.dumps(dict(rresp.headers)) bdata = rresp.content](https://files.mastodon.social/media_attachments/files/116/310/272/849/052/189/original/bdb6f1126ce571a5.png)

