GithubHelp home page GithubHelp logo

glongrais / dog_vs_cat_twitter_bot Goto Github PK

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

This repository contains a Python script for a Twitter bot that posts daily pictures of cats and dogs, runs polls, and keeps track of the winning streaks.

Home Page: https://twitter.com/DogvsCat_Fight

License: MIT License

Python 100.00%
api bot pymysql python sql tweepy twitter

dog_vs_cat_twitter_bot's Introduction

Dog vs Cat Twitter Bot

Source code for the Twitter bot @DogvsCat_Fight

This repository contains a Python script for a Twitter bot that posts daily pictures of cats and dogs, runs polls, and keeps track of the winning streaks.

Status

test status

Features

  • Fetches poll results from Twitter.
  • Retrieves cat or dog pictures using external APIs.
  • Uploads images to Twitter.
  • Keeps track of the winning streaks.
  • Runs daily polls for users to vote on the next day's picture.

Prerequisites

Before running the script, ensure you have the following:

  • Python > 3.8
  • Twitter API credentials (CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET).
  • Dog API key (DOG_API_KEY).
  • MySQL database credentials (DB_HOST, DB_PORT, DB_USER, DB_USER_PASS, DB_NAME).
  • Path to SSL certificate (CERT_PATH). [Optional]

Configuration

Set up your environment variables:

CONSUMER_KEY=your_consumer_key
CONSUMER_SECRET=your_consumer_secret
ACCESS_TOKEN=your_access_token
ACCESS_TOKEN_SECRET=your_access_token_secret
DOG_API_KEY=your_dog_api_key
DB_HOST=your_db_host
DB_PORT=your_db_port
DB_USER=your_db_user
DB_USER_PASS=your_db_user_pass
DB_NAME=your_db_name
CERT_PATH=path_to_ssl_certificate

Contributions

Contributions are welcome! If you find any issues or want to add features, feel free to open a pull request. Please have a look at the contributions rules

License

This project is licensed under the MIT License.

dog_vs_cat_twitter_bot's People

Contributors

glongrais avatar

Watchers

 avatar

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.