Skip to content
A twitter bot that replies back with an image of my friend's cat on some landscape in the world
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Procfile
README.md
jax.png
jax.py
requirements.txt
server.py
temp.jpeg

README.md

Jaxson - The Twitter Bot

Inder Dhillon
inderdhillon.com

Description:

Using Twitter API and Reddit API to stick an image of my friend's cat on a random landscape from Reddit and replying the image to anyone who uses the hashtag #jaxsonreplies on Twitter.

Overview:

The program pulls a random landscape from a subreddit on Reddit using Reddit's API to get a json file. Then it uses pillow library to overlay my friend's cat on the landscape. Then it uses Twitter API's streaming endpoint to listen for any tweets with the hashtag #jaxsonreplies and replies with the image formed using pillow.

Modules used:

tweepy : Twitter's API Wrapper
pillow : Image manipulation
requests : Getting json data
random : Selecting random image from a subreddit

Example:

Hey @inderdhillxn I am currently here! pic.twitter.com/lnEpbVtuqM

— Jaxson (@JaxsonReplies) January 7, 2020
You can’t perform that action at this time.