Skip to content

Twitter Bot created to automatically reply posts with a custom message on twitter

Notifications You must be signed in to change notification settings

ToluClassics/Twitter_AutoReplyBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Twitter Bot to Auto-Reply Tweets using AWS Lambda and Tweepy

Twitter Bot created to automatically reply posts with a custom message on twitter

To replicate this app, follow the steps below:

  • Create a twitter developer account here
  • Create an AWS account or if you have one sign in to your management console
  • Store your credentials as parameter in the aws parameter store
  • From your management console, switch to the Lambda panel
  • Next, you are going to create a lambda function with the python runtime
  • Ensure that your Lambda role allows you access to parameter store
  • Create a folder and install a python virtual environment in that folder with the code python -m venv v-env
  • Activate the virtual environment $ source v-env/scripts/activate
  • Install the tweepy and boto3 packages pip install tweepy boto3
  • Download the lambda_function.py and include it in your code folder
  • Copy the lamda_function.py to the "lib/site-packages" folder and zip all the files in the folder
  • On your lambda config panel, search for upload a zip file and upload your zipped site-packages folder
  • Add your custom message and accounts to auto reply as environmental variables
  • Create a cloudwatch rule to trigger your lambda function over a given period
  • And you are good to go!!!!!

About

Twitter Bot created to automatically reply posts with a custom message on twitter

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages