Skip to content

sjehutch/twitter-bot-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

twitterbot-reply-python

Codacy Badge

This bot has 2 main uses

  1. It listens for a keyword example right now fitnes

  2. it responds to the user who tweeted it with a generic text, @symbol and image

The tools used in this project were python3

You will want to import the following in your main .py file (i called mine hello.py)

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

to-dos

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 alt text

About

this twitter bot will tweet someone who tweets a term you are listening for

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages