min117の日記

初期desireもち。趣味Mac,メインFedora,仕事xp。

#情報処理安全確保支援士 #セキスペ の解答速報をPython3で調べる(ツイートをタグ検索 )

昨日2019年10月20日情報処理試験解答速報情報をツイッターで集める

 

以前作ったツイッターAPIを叩くPythonスクリプトタグ #情報処理安全確保支援士 ないし #セキスペ のツイートを探すことにする。

min117.hatenablog.com

 

$ ./getTW02_キーワードサーチ.py

f:id:min117:20191021223112p:plain

f:id:min117:20191021223147p:plain

f:id:min117:20191021223229p:plain

f:id:min117:20191021223258p:plain

f:id:min117:20191021223333p:plain

f:id:min117:20191021223357p:plain

素晴らしい。

 

 

 

このツイートの中からhttpリンクだけgrepしてみる。いったんテキストに落とす。

 

$ ./getTW02_キーワードサーチ.py | tee -a result_getTW02_20191021.txt

f:id:min117:20191021223720p:plain

 

$ cat result_getTW02_20191021.txt | grep http | sort | uniq | sed -e s/http/'\rhttp'/g | sort | uniq

f:id:min117:20191021223929p:plain

リンク抜き出すとこんな感じ。あとで行ってみる。

https://t.co/EsKTdf6Zk7

https:…/t.co/5YI0egvE5q

https://t.co/6zxos4viw2

https://t.co/3kboCYs92r

https://t.co/3kboC…SuxY

https://t.co/w6ETNf76gr

https://t.co/zenHMUBN3R

https://t.co/w3t5G6ZPFp

https://t.co/AKv24MfKyj

https://t.co/ZFk05TpfiV

https://t.co/xd9ST2WI7A

https://t.co/HjB9aavsNl

https://t.co/eKEtX6oIP6

https://t.co/hULUjqUyOO

https://t.co/iPe6VcNhfW

https://t.co/NLLTv9uDQs

https://t.co/Lg8rR9bOrB

https://t.co/q34kf3GX74

https://t.co/Uj9ZYeOr1P

https://t.co/JbVZ2shOF1

https://t.co/hlzpwbPUfD

 

 

qiita.com