-
.env ファイルを作成
.env.sample をご参照ください.
-
fascode_search_tweets.py を実行
15秒間隔で検索されます.search 関数の第二引数で一度に取得できるツイート数が設定できます.既定の数は一度の検索で10件です. ログ出力のため root 権限で実行してください.
-
username_blacklist の使い方 検索除外したい Twitter ユーザの Twitter ユーザ名('@' からはじまる英数字)を '@' を含めずに追記してください.区切り文字は ',' です.
Systemd Unitファイルも添付しております. /usr/local/share/search_tweets/fascode_search_tweets.pyを実行する前提で記述されています.
tweepy, python-dotenvが必要です.pipで導入してください. ※補足 url_secretは他チャンネルに送信するための機能です.不要な方は適度コメントアウトをお願いします.
Fascode Networkは学生を主体とする創作チームです。AlterLinuxとSereneLinuxの開発を行っています。