This is a Python code that allows you to tweet from the command line and schedule tweets for a later time using the Tweepy library and the Twitter API.
To use this code, you need to have the following:
- Python 3 installed on your computer
- A Twitter account
- Twitter API keys and access tokens (consumer key, consumer secret, access token, and access token secret)
- Clone this repository to your local machine.
- Install the required packages by running the command $pip install tweepy in your terminal or command prompt.
- Open your terminal or command prompt and navigate to the directory where the code is located.
- Run the command python tweet_scheduler.py to start the program.
- To tweet from the command line, enter your tweet message when prompted and press Enter.
- To schedule a tweet, enter your tweet message and the date/time you want to schedule the tweet for in the format YYYY-MM-DD HH:MM:SS when prompted and press Enter. The program will continuously check the current time and send the tweet at the specified time.
Note: The program will only tweet from the account that is associated with the Twitter API keys and access tokens that you have provided.