Giter VIP home page Giter VIP logo

walkingframes's Introduction

Walking Frames

A Twitter bot that posts every frame of a TV series/movie in order.
Made with Tweepy and OpenCV.

View the bot here.

Installation (Windows)

git clone https://github.com/Zike01/WalkingFrames.git
cd WalkingFrames
pip install -r requirements.txt

Usage

Frames processor

Create a video folder (input) and images folder (output). This can be anywhere on your computer.
Open framesprocessor.py and set the VIDEO_PATH and IMAGE_PATH at the top of the file. constants

Make sure the EXTENSION matches the extension of the video files.
Paste videos in your video folder and organise the folders like so:
file structure

ALL VIDEOS SHOULD HAVE THE SAME NAMING CONVENTION (S0Xe0X) FOR THE PROGRAM TO RUN

  • Run framesprocessor.py
  • Enter the current season you wish to process
  • Wait for output images to appear in the image folder.
  • Repeat for every season

Twitter API

Create a .env file in the project folder and set up the constants.

tokens

Create a Twitter developer account and open the developer dashboard

In settings make sure you set up user authentication (read and write). This will allow you to post your tweets. user auth

Go to Keys and tokens and generate the tokens required for authentication. tokens

Paste the newly generated values in the .env file. In case you lose these values they can be regenerated at any time through the developer portal.

Main Script

All you need to do here is change the TITLE constant to the name of the TV Show/movie you wish to post. You can also change the tweet caption on line 67 if you're posting movie frames.
Rename sample_config.txt to config.txt and configure the starting season, episode and frame.

title text

Task Scheduler

Find a way to schedule your script to run every X minutes. For windows you can use the task scheduler:

For free accounts you can only post 50 tweets/day, or roughly 1 tweet every 30 minutes.

walkingframes's People

Contributors

zike01 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.