Last active
December 20, 2015 10:49
-
-
Save mgng/6118939 to your computer and use it in GitHub Desktop.
https://twitter.com/bukkomi_bot の最近の200ツイートから二重引用符の単語を抽出する
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// via: https://github.com/themattharris/tmhOAuth | |
require_once './tmhOAuth/tmhOAuth.php'; | |
$obj = new tmhOAuth( array( | |
'consumer_key' => '****', | |
'consumer_secret' => '****', | |
'user_token' => '****', | |
'user_secret' => '****', | |
)); | |
$url = 'https://api.twitter.com/1.1/statuses/user_timeline.json'; | |
$params = array( | |
'screen_name' => 'bukkomi_bot', | |
'count' => 200, | |
); | |
$code = $obj->request( 'GET', $url, $params ); | |
$json = json_decode( $obj->response['response'] ); | |
if ( $code !== 200 ) { | |
exit("Error"); | |
} | |
$result = array(); | |
foreach( $json as $tweet ) { | |
preg_match_all( '/[“\"](.+?)[“”\"]/u', $tweet->text, $matches ); | |
foreach( $matches[1] as $match ) { | |
if ( ! in_array( $match, $result, true ) ) { | |
$result[] = $match; | |
} | |
} | |
} | |
sort( $result ); | |
echo implode( "\n", $result ); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
134 | |
280馬力 | |
2年坊 | |
3段シート | |
CB400F | |
CB400F(フォア) | |
CB400F(フォア) | |
CB750K2(ケーツー) | |
Z750F-DⅡ | |
ZⅡ(ゼッツー) | |
きれい | |
く | |
くだらなさ | |
この疼き | |
ぜってェー | |
その領域 | |
それ | |
たった今から | |
てめーっくれー | |
でけェ音 | |
ねーちゃん | |
ひとり | |
アイス | |
アップハンドル | |
アレ | |
アンタ | |
ウットーシー | |
オレ | |
カワサキ | |
ケンカ | |
サイッコー | |
スピードの向こう側 | |
スープラ | |
ハイドロ・プレーニング | |
ハナクソ | |
パラディウス | |
ペダル3 | |
ボクにはりっぱな毛皮がある・・・・ だからボクは獣です | |
ボクにはステキな翼がある・・・・ だからボクは鳥です | |
ボンクラ | |
マサト | |
マブダチ | |
マー坊 | |
ワタリ35cm | |
ワニブチ | |
一発(ワンパン) | |
七代目 | |
上村 | |
不運 | |
不運(ハードラック) | |
中坊 | |
久保島 | |
事故 | |
兄弟(ブロウ) | |
兄貴 | |
先パイ | |
全部 | |
全部の族(チーム) | |
凶器(ドーグ) | |
刹那愛通り(ショートタイムストリート) | |
化物 | |
卑怯さ | |
友達 | |
向こう側 | |
命 | |
嘲笑(あざわら) | |
圧縮比 | |
坂田正道 | |
外道のモン | |
夜叉神の踊るフランケン | |
夜叉神上等 | |
大切(たいせつ) | |
大魔王 | |
天下無敵 | |
天使の鉄槌(エンジェルスハンマー) | |
天羽 | |
好きな曲 | |
好き勝手 | |
守 | |
客 | |
少年 | |
工事中 | |
工事(コージ) | |
工藤静香 | |
己の姑息 | |
己自身の血 | |
常用者(ジャンキー) | |
強 | |
役 | |
後ハイ | |
悪霊 | |
悪魔の鉄槌(ルシファーズハンマー) | |
戻 | |
払い戻し | |
拓 | |
教育 | |
敵 | |
日本人(ジャパニーズ) | |
時貞 | |
晶 | |
朝比奈廻り | |
朧童幽霊(ウチ) | |
横浜(ココ) | |
武丸 | |
死 | |
死の商人 | |
残骸 | |
港洛 | |
港葉中 | |
湘南 | |
湘南弾丸直線(ストレート) | |
滝沢ジュンジ | |
無敵 | |
煌 | |
燃え | |
爆音 | |
爆音小僧 | |
爆音小僧(バクオン) | |
爆音魂 | |
爽やかクラブ | |
獏羅天 | |
男 | |
目 | |
直 | |
直線 | |
真ん中 | |
秀人 | |
秋生 | |
笑(わら) | |
第19期総本部 | |
約束 | |
絶対 | |
自分(てめー) | |
萌子 | |
行く | |
行くっきゃ | |
親衛隊 | |
誠 | |
誰 | |
走 | |
踊 | |
迅(はえ) | |
逃げ | |
速度(スピード) | |
鎖島 直 | |
鎖骨 | |
音楽 | |
音速の四天王 | |
須王 | |
魂 | |
魍魎 | |
魔人 | |
魔法 | |
鮎川(アユカー) | |
鵠沼南台中 | |
麓沙亜鵺 | |
ZⅡ | |
スピードの向こう |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment