Skip to content

💭 Retrieve tweets from the "SameGauu" Twitter account and post them on Discord.

Notifications You must be signed in to change notification settings

tomacheese/samechan-crawler

Repository files navigation

samechan-crawler

💭 Twitter アカウント「SameGauu」のツイートを取得し、Discord に投稿するクローラーです。

機能

  • 指定した Twitter アカウントのツイートを定期的に取得
  • 新しいツイートを Discord に通知
  • 既に通知したツイートの重複通知を防止

必要要件

  • Node.js (.node-version 参照)
  • Yarn

インストール

# リポジトリのクローン
git clone https://github.com/tomacheese/samechan-crawler.git
cd samechan-crawler

# 依存関係のインストール
yarn install

設定

data/config.json を作成し、必要な設定を行います。

{
  "twitter": {
    "username": "your-twitter-username",
    "password": "your-twitter-password",
    "otpSecret": "your-otp-secret",
    "emailAddress": "your-email-address"
  },
  "discord": {
    "webhookUrl": "https://discord.com/api/webhooks/..."
  }
}

twitter.otpSecrettwitter.emailAddress はオプションです。

または Bot Token を使用する場合:

{
  "twitter": {
    "username": "your-twitter-username",
    "password": "your-twitter-password"
  },
  "discord": {
    "token": "your-bot-token",
    "channelId": "channel-id"
  }
}

使用方法

# 実行
yarn start

# 開発モード(ファイル変更を監視)
yarn dev

Docker での実行

docker compose up -d

ライセンス

このプロジェクトは MIT ライセンスの下で公開されています。

About

💭 Retrieve tweets from the "SameGauu" Twitter account and post them on Discord.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors 5