All Projects → reidjs → markdown-tweet-scheduler

reidjs / markdown-tweet-scheduler

Licence: MIT License
Schedule daily tweets from markdown files in your repo, posted via github actions.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to markdown-tweet-scheduler

Twitter Bot
Node js twitter bot to send auto welcome message for your new followers
Stars: ✭ 184 (+275.51%)
Mutual labels:  twitter, twitter-api
Twitterdelete
💀 Delete your old, unpopular tweets.
Stars: ✭ 231 (+371.43%)
Mutual labels:  twitter, twitter-api
Twitter To Sqlite
Save data from Twitter to a SQLite database
Stars: ✭ 203 (+314.29%)
Mutual labels:  twitter, twitter-api
Twitwork
Monitor twitter stream
Stars: ✭ 133 (+171.43%)
Mutual labels:  twitter, twitter-api
shut-up-bird
🐦 Put your tweets/likes in an EPUB and delete them like a boss
Stars: ✭ 22 (-55.1%)
Mutual labels:  twitter, twitter-api
Csscreatures
Make a creature by tweeting to @csscreatures
Stars: ✭ 144 (+193.88%)
Mutual labels:  twitter, twitter-api
Harpy
A Twitter app built with Flutter
Stars: ✭ 211 (+330.61%)
Mutual labels:  twitter, twitter-api
Twitterbot
Several PHP scripts for making Twitter bots that retweet certain terms, or post from a data source (rss, database, markov body, picture folder).
Stars: ✭ 106 (+116.33%)
Mutual labels:  twitter, twitter-api
bird-elephant
PHP client library for Twitter API v2 endpoints.
Stars: ✭ 28 (-42.86%)
Mutual labels:  twitter, twitter-api
labs-sample-code
Sample code for Twitter Developer Labs
Stars: ✭ 25 (-48.98%)
Mutual labels:  twitter, twitter-api
Twurl
OAuth-enabled curl for the Twitter API
Stars: ✭ 1,648 (+3263.27%)
Mutual labels:  twitter, twitter-api
twitter-stream-api
Consume the Twitter Stream API in real-time.
Stars: ✭ 19 (-61.22%)
Mutual labels:  twitter, twitter-api
Twitter Python Ads Sdk
A Twitter supported and maintained Ads API SDK for Python.
Stars: ✭ 114 (+132.65%)
Mutual labels:  twitter, twitter-api
Twitter Api Php
The simplest PHP Wrapper for Twitter API v1.1 calls
Stars: ✭ 1,808 (+3589.8%)
Mutual labels:  twitter, twitter-api
Awesome Twitter Tools
A curated list of awesome twitter tools
Stars: ✭ 113 (+130.61%)
Mutual labels:  twitter, twitter-api
Tweetledee
A PHP library that provides an incredibly easy way to access Twitter data as JSON or RSS feed by URL or standard CLI syntax.
Stars: ✭ 208 (+324.49%)
Mutual labels:  twitter, twitter-api
Tweetview
This project is an example Android Twitter feed reader app from the Codehenge Android development tutorials.
Stars: ✭ 75 (+53.06%)
Mutual labels:  twitter, twitter-api
Tia
Your Advanced Twitter stalking tool
Stars: ✭ 98 (+100%)
Mutual labels:  twitter, twitter-api
Egg Mode
a twitter api crate for rust
Stars: ✭ 249 (+408.16%)
Mutual labels:  twitter, twitter-api
Archive-Tweets
Archive and Delete Liked and Posted Tweets
Stars: ✭ 28 (-42.86%)
Mutual labels:  twitter, twitter-api

markdown-tweet-scheduler

Schedule tweets from markdown files in your repo, posted to twitter via github actions.

Why

  • View, edit, and post your tweets without logging into twitter
  • Keep source controlled backups of your tweets
  • Free and open source

Setup

  1. Clone this repo and push it to your own private repo.
  2. Get your credentials by creating a twitter app (https://developer.twitter.com/apps)
  3. Add your twitter credentials to the repository's secrets (https://docs.github.com/en/actions/reference/encrypted-secrets)
    • API_KEY (known as consumer_key in twitter API)
    • API_SECRET_KEY (known as consumer_secret in twitter API)
    • ACCESS_TOKEN
    • ACCESS_TOKEN_SECRET

Scheduling Tweets By Date

  1. Create a markdown file in the ./tweets/ folder with a future date in either the YYYY-Mon-DD or Month dd, YYYY format, for example, 2021-Sep-05.md or September 5, 2021.md, and write the content of your tweet in it.
  2. Commit the file(s) and push to the remote repo. When the daily action runs on the specified date, the tweet should be posted.

Configuration

  1. By default, posts tweets around 7:02AM PT (2:02 UTC). To change the time of day tweets are posted:

    • Set the cron section of .github/workflows/go.yml to the time you want the tweet to post https://cron.help/
  2. Changing the tweet directory:

    • Change the FILE_PATH environment variable in .github/workflows/go.yml

Running locally

  1. rename .env-SAMPLE to .env and fill in your twitter credentials
    • consumer_key == API_KEY
    • consumer_secret == API_SECRET_KEY
  2. In your terminal, from the root directory: go run .

Notes

  1. Fails silently on bad credentials, make sure you set those correctly.
  2. Only allows one tweet per day by design. If requested, this can be modified to allow tweets by the minute or hour.
  3. Tweets will not be posted exactly at the cron time set in go.yml. In my experience in can be 5-10 minutes late. If you need minute precision, run this script locally on a cronjob.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].