This Python script serves as a Quote generator & Upload them to Twitter account with a media.
Config: Api Keys Fully Secured Tweet: Tweet with text and media Image Generator: It converts text into a media. Quotes: Randomly From an Api
- tweepy
- json
- textwrap
- PIL
- requests
$ python main.py
config.py: Configuration file containing API keys.
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.
This script was created by milliyin Feel free to contribute to this project by submitting issues or pull requests.