Skip to main content

A tool for extracting and managing chat data from HTML files. It includes a file splitter function to split up large files so they can be loaded back into ChatGPT if needed.

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:

  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.

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

chatsnip-1.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chatsnip-1.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file chatsnip-1.1.0.tar.gz.

File metadata

  • Download URL: chatsnip-1.1.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for chatsnip-1.1.0.tar.gz
Algorithm Hash digest
SHA256 e6da0e5161e3f014de22c2bfa967dd5dec34423428a9212a9c6b856639e10a0d
MD5 9e75113336d4990124fb17c80dbf7af0
BLAKE2b-256 1963e500537c4da75584b42e0e7d578bf97cfeea1a2d935237305d8d212c1971

See more details on using hashes here.

File details

Details for the file chatsnip-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: chatsnip-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for chatsnip-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 596a449b7cbd49e63bd1f1fd290ea0b79d8b952b226b36a3119f62d30674a9c4
MD5 6bb77a0d4e54e3290db62a9f5278f425
BLAKE2b-256 cd279b7f1be633acdc37424b1b17d954aadfb28707d1f7ffa8b75d2fcd38bd92

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page