+
Skip to content

P-man2976/Tweets-collector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tweets-collector

これは何?

特定のTwitterアカウントのツイート履歴をjsonファイルに保存するスクリプト

使い方

  1. yarn install
  2. cp .env.placeholder .env
  3. TWITTER_OAUTH2_CLIENT_IDTWITTER_OAUTH2_CLIENT_SECRETCALLBACK_URLPORTに任意の値をセット
  4. yarn node --loader ts-node/esm index.ts or tsc && node ./dist/index.js
  5. Authorize by visiting this URL: で表示されるURLでOAuth認証
  6. Type twitter username: にTwitterのユーザー名(@から始まるもの)を入力

出力

tweets/[YYYY]-[MM]-[DD]_[HH]-[mm]-[ss]_[Twitter_username].json に保存

プロパティ
user ユーザーのプロフィール。
tweets ユーザーのツイートのリスト。

example.gif

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载