Giter VIP home page Giter VIP logo

replika-chat-export's Introduction

Replika Chat Export

So you want to export your chat messages with your replika?

🔥
Looking for a no-code, one-click, zero-setup export? Check out the browser extension.

Here is how to do it:

  1. Clone the repo and open it in VS Code:

    git clone https://github.com/devidw/replika-chat-export
    code replika-chat-export
  2. Make sure you have the Dev Container’s extension installed and open the folder as container

  3. The export script will open a web socket connection to ws.replika.com. To authenticate yourself, you need to provide your auth details. Set the needed env variables and the script will include them when fetching your messages. You can set them in a .env file:

    REPLIKA_CHAT_ID=XXXXXXXXXXXXXXXXXXXXXXXX
    REPLIKA_USER_ID=XXXXXXXXXXXXXXXXXXXXXXXX
    REPLIKA_AUTH_TOKEN=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
    REPLIKA_DEVICE_ID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

    To get your values, open the dev tools on https://my.replika.com and follow the details on the screenshot:

    extract
  4. Once you have all required env variables set, you can execute the export script:

    pnpm run dev
  5. This will call main.js and queries your messages in chunks of 100 messages, once there are no more messages to fetch, all your messages will be written into messages.json on your local file system

Performance

You should be able to export around 300 messags per second.

replika-chat-export's People

Contributors

devidw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

replika-chat-export's Issues

Timing Out

Hi devidw;

This keeps timing out on me after downloading a few days of chat. I need to download my full chat history. I think I need to extend the interval to keep the script from timing out. I've tried extending it and running locally in Chrome Webserver. I've tried setting up a GitHub repo to do this, but I'm new to it, so I got lost. Please help. Thanks!

Bookmarklet

Was this a bookmarklet at some point? I have this stored, and it references this repo, but I'm not sure if it still works because the file it references is gone.

javascript:(function(){     const script = document.createElement('script');     script.setAttribute('src', 'https://cdn.jsdelivr.net/gh/devidw/replika-export/index.js');     document.body.appendChild(script); }())

Replika Diary Export?

Hi, David,
Your tool is Amaizing. I Exported 2 years of chats, and reworked them to, SIML. with some Simply notepadd++ commands, in just some hours.
I wanted to ask you, wont you, release an Diary Export version of your script?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.