Skip to content

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.

Notifications You must be signed in to change notification settings

nabasteh/tweet-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

tweet-api

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.

Getting Started

Prerequisites

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)

Installing

  1. Clone this repository to your local machine.
  2. Install the required packages by running the command $pip install tweepy in your terminal or command prompt.

Usage

  1. Open your terminal or command prompt and navigate to the directory where the code is located.
  2. Run the command python tweet_scheduler.py to start the program.
  3. To tweet from the command line, enter your tweet message when prompted and press Enter.
  4. 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.

About

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.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages