Coder Social home page Coder Social logo

jperry004 / retweet_bot Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.25 MB

Automated Twitter Bot for Ukraine War Video Retweeting: This bot searches, evaluates, and retweets relevant videos about the Ukraine war, incorporating advanced filtering, tie detection, and database management. Designed for continuous operation with smart error handling.

License: The Unlicense

Python 98.13% Shell 1.87%

retweet_bot's Introduction

Ukraine War Retweets Bot

This Python-based Twitter bot is designed for automated retweeting of videos related to the Ukraine war. It's equipped with content filtering, verification, and tweet management capabilities. The project includes a fork of inteoryx/twitter-video-dl for video downloading functionalities.

Features

  • Automated Tweet Processing: Identifies and processes tweets containing Ukraine war-related videos.
  • Deletion Check: Verifies if tweets are deleted before processing.
  • Database Management: Uses TinyDB for efficient tweet data management.
  • Error and Rate Limit Handling: Smartly handles Twitter API rate limits and errors.

How It Works

The bot monitors Twitter for relevant content, performing checks for content relevance, deletion verification, and database updates to manage tweet statuses and avoid redundancy.

Installation

  1. Clone the Repository: git clone https://github.com/jperry004/ukraine-war-retweets-bot.git
  2. Install Dependencies: pip install -r requirements.txt

Usage

  1. Setup API Keys: Fill in your Twitter API keys and tokens in the script.
  2. Run the Bot: python run_script.py
  3. Monitor Output: Observe the bot's processing logs.

Dependencies

  • Python 3.x
  • tweepy
  • tinydb
  • requests

YOLO Weights (Not Included)

Please note that the YOLO (You Only Look Once) weights for object detection used in this project are not included in this repository due to their large file size. To use this project, you can obtain standard YOLO v4 weights separately.

Here's how you can obtain standard YOLO v4 weights:

  1. Visit the official YOLO website or repository to find the latest YOLO v4 weights: YOLO Repository.

  2. Follow the instructions provided in the YOLO repository to download the YOLO v4 weights.

  3. Place the downloaded YOLO v4 weights in the appropriate directory or specify the path to these weights in your project configuration.

Please ensure that you have the required YOLO v4 weights before running the object detection component of this project.

Contributing

Contributions are welcome! Feel free to fork the repository and submit pull requests.

License

This project is licensed under the Unlicense, a public domain equivalent license.

Disclaimer

This bot is for educational and informational purposes related to the Ukraine war and adheres to Twitter's policies.

Acknowledgments

Thanks to the contributors of the open-source libraries used in this project, including a fork from inteoryx/twitter-video-dl.


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.