Anthropic doesn't provide a mechanism for saving Claude chats. Curl doesn't work so I have to resort to opening the chat and selecting text. I asked Claude about it. the answer was Anthropic may consider it's output intellectual property, which may be a hallucination. I'm looking for an extension or other solution that makes it easier. Thanks.
You could write a userscript for this, or go a step further and write a small browser extension.<p>If you use Joplin, there's already a web to markdown plugin for browsers.
I use Selenium's WebDriver for tasks where I need to programmatically interact with webpages that require JavaScript. It runs a headless Chrome or Firefox, with a virtual screen. It has bindings for various languages with Python being my preferred one.