Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjsimpson authored Dec 5, 2022
1 parent cedffa8 commit 42d1a46
Showing 1 changed file with 3 additions and 32 deletions.
35 changes: 3 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

<strike>
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 }));
}
```

</strike>

## 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:

```
Expand All @@ -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
Expand Down

0 comments on commit 42d1a46

Please sign in to comment.