Skip to content

This is a simple bot for posting tweets automatically using the Twitter API and the Tweepy library in Python.

Notifications You must be signed in to change notification settings

brunomatosdev/TweePy-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Bot in Python

This is a simple bot for posting tweets automatically using the Twitter API and the Tweepy library in Python.

Setup

  1. Create a .env file at the project root and add your Twitter API keys:

    API_KEY=YourAPIKey
    API_SECRET=YourAPISecret
    BEARER_TOKEN=YourBearerToken
    ACCESS_TOKEN=YourAccessToken
    ACCESS_TOKEN_SECRET=YourAccessTokenSecret
    
     Install dependencies:
    
     bash

pip install -r requirements.txt

Run the script:

bash

python tweepy_setup.py

Files

tweepy_setup.py: Main script for posting tweets.
tweets.txt: File containing the tweets to be posted.
.env: Configuration file for your API keys.

Contributions

Contributions are welcome! Feel free to open an issue or submit a pull request. License

This project is licensed under the MIT License.

About

This is a simple bot for posting tweets automatically using the Twitter API and the Tweepy library in Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages