💭 Twitter アカウント「SameGauu」のツイートを取得し、Discord に投稿するクローラーです。
- 指定した Twitter アカウントのツイートを定期的に取得
- 新しいツイートを Discord に通知
- 既に通知したツイートの重複通知を防止
- Node.js (
.node-version参照) - Yarn
# リポジトリのクローン
git clone https://github.com/tomacheese/samechan-crawler.git
cd samechan-crawler
# 依存関係のインストール
yarn installdata/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.otpSecret と twitter.emailAddress はオプションです。
または Bot Token を使用する場合:
{
"twitter": {
"username": "your-twitter-username",
"password": "your-twitter-password"
},
"discord": {
"token": "your-bot-token",
"channelId": "channel-id"
}
}# 実行
yarn start
# 開発モード(ファイル変更を監視)
yarn devdocker compose up -dこのプロジェクトは MIT ライセンスの下で公開されています。