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.
Release files for chatsnip 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chatsnip-1.1.0.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chatsnip-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.8 kB
Release files / chatsnip-1.1.0.tar.gz
| Download URL | chatsnip-1.1.0.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e6da0e5161e3f014de22c2bfa967dd5dec34423428a9212a9c6b856639e10a0d
|
|
BLAKE2b-256 checksum How to use checksums |
1963e500537c4da75584b42e0e7d578bf97cfeea1a2d935237305d8d212c1971
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / chatsnip-1.1.0-py3-none-any.whl
| Download URL | chatsnip-1.1.0-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
596a449b7cbd49e63bd1f1fd290ea0b79d8b952b226b36a3119f62d30674a9c4
|
|
BLAKE2b-256 checksum How to use checksums |
cd279b7f1be633acdc37424b1b17d954aadfb28707d1f7ffa8b75d2fcd38bd92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|