Convert ChatGPT chats to Markdown (.md) while preserving most of the syntax (e.g. code formatting). Done in Javascript and Python. The majority of the Python script was done by converting the script written in Javascript with ChatGPT to Python.
- Navigate to the shared chat url.
- Copy the JS code from
extract_md_from_ChatGPT.js
to the code snippet's tab on Chrome or paste it directly to the console. - Run the snippet (or the code copied on the console).
- Copy the output of the console.
- Paste it where you desire!
- Install required libraries (
beautifulsoup4
andrequests
). - Update URL on line 48.
- Run the script.
- Review the content on the console or in the
output.md
file.