Skip to content

Latest commit

 

History

History
39 lines (23 loc) · 1008 Bytes

File metadata and controls

39 lines (23 loc) · 1008 Bytes

Twitter4jTutorial

Twitter4jのチュートリアルプログラム

Description

全公開ツイートの1%を抽出する

CSVファイルも作成可能

Requirement

twitter4j: http://twitter4j.org/ja/index.html

twitter開発者アカウント

CreateAccount

  1. Twitterアカウントを作成
  2. 携帯電話番号を登録して認証
  3. https://apps.twitter.com/ にアクセスしてCreate a new applicationをクリック
  4. [Name]、[Description]、[Website]を適当に入力
  5. [Key and Access Tokens]タブの[Consumer key] と [Consumer secret] をメモ
  6. [Create my access token] をクリックし[Access token] と [Access token secret] をメモ

Usage

srcフォルダ直下に以下の内容のtwitter4j.propertiesを作成

debug=true
oauth.consumerKey=****************
oauth.consumerSecret=****************
oauth.accessToken=****************
oauth.accessTokenSecret=****************

twitter4jライブラリを入れてプログラムを起動