GithubHelp home page GithubHelp logo

kickchatlogger's Introduction

Kick Chat Logger

Kick Chat Logger is a Python script using Selenium to automate logging chat messages from a specified webpage into a text file. This tool continually monitors chat messages, capturing their senders’ usernames and timestamps, and saving this data in a chat_log.txt file.

Prerequisites

Ensure the following components are installed:

Usage

  1. Clone the repository:

    git clone https://github.com/BenBreaksIn/KickChatLogger.git
  2. Change directory into the cloned repository:

    cd KickChatLogger
  3. Run the script:

    python chat_logger.py

    The chat messages will be logged into the chat_log.txt file in the same directory.

Code Structure

  • The script starts by initializing a set to keep track of processed messages and avoid duplications.
  • A function stream_chat():
    • Opens or creates chat_log.txt for storing logged messages.
    • Constantly checks for new messages in the chat.
    • Logs new messages with timestamps to both the console and the chat_log.txt file.
  • Selenium WebDriver is employed to interact with the chat webpage.
  • Main part of the script:
    • Initializes WebDriver.
    • Navigates to the specific chat page.
    • Begins the stream_chat() function to start monitoring and logging the messages.

Customization

  • Customize the URL by updating the url variable with the link to your preferred chat page.
  • Sleep intervals within the script may be adjusted based on the webpage's responsiveness.

Contribution

Contributions are welcomed! Feel free to fork the project, open a pull request, or submit issues and enhancement requests.

Disclaimer

Ensure the use of this script complies with the terms of service of the website. Respect and uphold user privacy and ethical guidelines when using this tool.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.