Skip to main content

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:

  1. Clone the repository: (if applicable):

    git clone https://github.com/leighvdveen/chatsnip.git
    cd chatsnip
    
  2. Create a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows use `venv\Scripts\activate`
    
  3. Install the required packages:

    pip install -r requirements.txt
    
  4. Run the application:

    python chatsnip.py
    

Usage

  1. Open your web browser and go to http://localhost:8501 to access the Streamlit interface.
  2. Upload an HTML file containing the chat data.
  3. Enter the name of the chat you want to extract.
  4. Click the “Extract Chat” button.
  5. 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)

Source distribution for chatsnip 1.1.0
File Size Uploaded
chatsnip-1.1.0.tar.gz 6.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chatsnip 1.1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page