Zeked9 / twitter-list-sync

🐦 Sync your Twitter followers/following to Lists

Home Page:https://anandchowdhary.github.io/twitter-list-sync/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🐦 Twitter List Sync

GitHub Action to sync your Twitter followers and following users to a list.

Twitter List Sync CI Build CI Release CI Node CI

⭐ Features

  • Schedule this action to run every day and neatly sync all your followers
  • Unfollow all accounts every day and add them in a "Following" list

πŸ’» Usage

You need the following environment variables:

Environment variable Description
TWITTER_API_KEY Twitter API key
TWITTER_API_SECRET_KEY Twitter API secret
TWITTER_ACCESS_TOKEN Twitter access token
TWITTER_ACCESS_TOKEN_SECRET Twitter access secret
FOLLOWING_LIST List ID for following
FOLLOWERS_LIST List ID for followers
REMOVE_AFTER_ADDING Whether to remove following

Here's an example workflow using the action AnandChowdhary/twitter-list-sync:

name: Twitter List Sync CI
on:
  repository_dispatch:
    types: [sync]
  schedule:
    - cron: "45 9 * * *"
  push:
    branches: [master]
  workflow_dispatch:
jobs:
  release:
    name: Sync
    runs-on: ubuntu-18.04
    if: "!contains(github.event.head_commit.message, '[skip ci]')"
    steps:
      - name: Twitter List Sync
        uses: AnandChowdhary/twitter-list-sync@master
        env:
          TWITTER_API_KEY: ${{ secrets.TWITTER_API_KEY }}
          TWITTER_API_SECRET_KEY: ${{ secrets.TWITTER_API_SECRET_KEY }}
          TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
          TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
          FOLLOWING_LIST: ${{ secrets.FOLLOWING_LIST }}
          FOLLOWERS_LIST: ${{ secrets.FOLLOWERS_LIST }}
          REMOVE_AFTER_ADDING: ${{ secrets.REMOVE_AFTER_ADDING }}

πŸ“„ License

  • Code: MIT Β© Koj
  • "GitHub" is a trademark of GitHub, Inc.

About

🐦 Sync your Twitter followers/following to Lists

https://anandchowdhary.github.io/twitter-list-sync/

License:MIT License


Languages

Language:TypeScript 90.7%Language:JavaScript 9.3%