A tool for extracting and managing chat data from HTML files.
Project description
ChatSnip
ChatSnip is a command-line tool and web app for extracting chat content from HTML files generated by ChatGPT. This tool allows users to upload HTML files, specify chat names, and extract the relevant chat content, which can then be downloaded as a text file.
Features
- Upload HTML files containing chat data.
- Extract chat content by specifying the chat name.
- Download extracted chat content as a text file.
- User-friendly web interface powered by Streamlit and Flask.
Installation
To install ChatSnip, follow these steps:
-
Clone the repository: (if applicable):
git clone https://github.com/leighvdveen/chatsnip.git cd chatsnip
-
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Run the application:
python chatsnip.py
Usage
- Open your web browser and go to http://localhost:8501 to access the Streamlit interface.
- Upload an HTML file containing the chat data.
- Enter the name of the chat you want to extract.
- Click the “Extract Chat” button.
- Download the extracted chat content as a text file.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
If you want to contribute to the project, feel free to fork the repository and submit a pull request. For any issues or feature requests, please open an issue.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chatsnip-1.0.tar.gz.
File metadata
- Download URL: chatsnip-1.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba4debf0c4662808b9d6887d7990ff9043950e050548f66c247460fcd3213e62
|
|
| MD5 |
029b9cace2b7d3cd427d450ddfefb3ae
|
|
| BLAKE2b-256 |
9f5bc5c8b8f8e29a7381234ded38b44b3e97ef730bdbd1b7c6ecf980070cdf17
|
File details
Details for the file chatsnip-1.0-py3-none-any.whl.
File metadata
- Download URL: chatsnip-1.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09431ecf6f95a9bde420baeae220afc43788a3478caaced1958c96228e60115a
|
|
| MD5 |
17adfa40f49bfd244a0c11d1aaea943d
|
|
| BLAKE2b-256 |
f14c46c16c41a419e9f44b207edfb869f36c3019e6682b36e10cd68540ac76ed
|