Skip to content

This Python script serves as a Quote generator & Upload them to Twitter account with a media.

Notifications You must be signed in to change notification settings

milliyin/Twitter-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Bot

This Python script serves as a Quote generator & Upload them to Twitter account with a media.

Features

Config: Api Keys Fully Secured Tweet: Tweet with text and media Image Generator: It converts text into a media. Quotes: Randomly From an Api

Prerequisites

  • tweepy
  • json
  • textwrap
  • PIL
  • requests

How to run the script

$ python main.py

Screenshot/GIF showing the sample use of the script

input_image

Important Files

config.py: Configuration file containing API keys.

Working

The X-api is utilized for retrieving a quote along with the name of the author. The Python Imaging Library (PIL) is employed to overlay this text onto a template image. Subsequently, the resulting image is saved into a designated folder. The Tweepy library is then employed to compose a tweet, incorporating both the quote and author information as text, along with attaching the image to the tweet.

Author Name

This script was created by milliyin Feel free to contribute to this project by submitting issues or pull requests.

About

This Python script serves as a Quote generator & Upload them to Twitter account with a media.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages