-
It listens for a keyword example right now fitnes
-
it responds to the user who tweeted it with a generic text, @symbol and image
The tools used in this project were python3
import tweepy #Library for twitter writeen in python
import logging #Logging Duh
import time #time module for the sleep function
import sys #system for importing images to your tweet
import requests
import os
Step 1 Create a twitter application by going to https://apps.twitter.com > Create new
Step 2 Download this repo
Step 3 Update the keys with your keys otherwise you will be spamming with my twitter account :-)
Step4 Update and play around with the code (make sure you create a branch of your own first
Step 5 save the py file run python hello.y and check out your twitter feed
Showing how to run this as a background job
Pulling the keyword i want to search from a db or a place where i can update it on the fly
Better verbose logging
##Sample -This is my bot responding with an image to a tweet about fitness