From 42d1a46ab19d9bb90dca86264b56567b0759cdd0 Mon Sep 17 00:00:00 2001 From: chrisjsimpson Date: Mon, 5 Dec 2022 23:43:37 +0000 Subject: [PATCH] Update README.md --- README.md | 35 +++-------------------------------- 1 file changed, 3 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 2aa3342..b6a022b 100644 --- a/README.md +++ b/README.md @@ -18,30 +18,11 @@ Fun experimental research go to https://chat.openai.com/chat -Open Chrome dev tools +Install instructions: https://save-chatgpt.anotherwebservice.com/ -> **New** Created a chrome extension, see [chrome-extension](./chrome-extension) -> But you still need to run the flask app. Though the old method is easy too: +# Run locally / Development - -Page in the 'console' tab: - -``` -function savechat() { - - let body = document.body.innerHTML; - - var xhr = new XMLHttpRequest(); - xhr.open('POST', 'http://127.0.0.1:5000/save'); - xhr.setRequestHeader('Content-Type', 'application/json'); - xhr.send(JSON.stringify({ body: body })); - -} -``` - - - -## Run flask app to save the chat threads +Run the flask app locally Open a terminal, and run this flask app in on your local computer: ``` @@ -50,16 +31,6 @@ python3 -m venv venv pip install flask FLASK_DEBUG=1 flask run ``` -That will start flask running in the background. - -# How to save a chat - -with the flask app running and the javascript pasted into chrome dev tools console: - -1. Start a chat at https://chat.openai.com/chat -2. Open chrome dev tools -3. Call the 'savechat()' function -4. Your conversion is saved to file on your local computer. # Help