Skip to content

Instantly share code, notes, and snippets.

View reycn's full-sized avatar

Rongxin reycn

View GitHub Profile
@reycn
reycn / reverse_character_ai.md
Created May 28, 2023 07:43 — forked from acheong08/reverse_character_ai.md
A guide on how to reverse engineer character.ai

Authentication:

  • Set cookies from your browser

Step 1: GET https://beta.character.ai/chat/curated_categories/characters/. It returns JSON. You are looking for external_id of the character you want. This will be used for all following steps (external_id or character_external_id)

Step 2: POST https://beta.character.ai/chat/character/info/ with {"external_id":"..."} as payload. Keep track of identifier from the response as tgt for step 4

Step 3: POST https://beta.character.ai/chat/history/create/ with the same payload as step 2. Keep track of external_id in the response as history_external_id.

@reycn
reycn / chatglm-openai-api.ipynb
Created April 21, 2023 07:04 — forked from ninehills/chatglm-openai-api.ipynb
chatglm-openai-api.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@reycn
reycn / Netease_LRC.py
Created February 12, 2017 12:57 — forked from blueset/Netease_LRC.py
Netease LRC Downloader
import requests
import argparse
import os
import re
import json
import mutagen
import base64
from mutagen import easyid3
import sys
from Crypto.Cipher import AES