• 検索結果がありません。

Fukushima toyolab

N/A
N/A
Protected

Academic year: 2018

シェア "Fukushima toyolab"

Copied!
15
0
0

読み込み中.... (全文を見る)

全文

(1)

夏季休暇中実施したことまとめ

福島 達也

(2)

夏季休業中取り組んだこと

①PythonによるTwitterのサンプル収集のための環 境構築とコードの作成

②second-order mean field の論文

(3)

Pythonのmacへの導入

macにはもともとPythonがインストールされてい る。

Twitterのデータ解析用のライブラリを導入

(4)

ライブラリを入れる前に入れなきゃいけないもの

Home-brew

http://brew.sh/index_ja.html

xcode

pip(Pythonのライブラリ管理)

(5)

pipのインストール

curl -kL https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python

(6)

入れるライブラリ

・requests_oauthlib

→TwitterのoAuth認証をしてくれるライブラリ

・mongoDB

→データを保存しておくためのデータベース

(7)

requests_oathlibのインストール

pip install requests requests_oauthlib

これでダメだったら

sudo pip install requests requests_oauthlib

(8)

mongoDBのインストール

pip install pymongo==2.8

これでダメだったら

sudo pip install pymongo==2.8

僕が今回作ったコードはpymongoが2.8じゃないと動作しません。 バージョン指定しないと3.2.9がダウンロードされます。

(9)

Twitter Appsの作成

(10)

Twitter APIを使うために4つの暗号を取得

(11)

4つの暗号を一つの.pyファイルにまとめておく

(12)

試しに自分のタイムラインのツイートを取得する

(13)

実行結果

(14)

ある文字列を含むツイートデータを収集するプログラム

https://github.com/tachun77/masters-paper

のgettweetdata2.pyファイルです。

(15)

何ができるか

あらゆるデータを取得可能。(日時、内容、プロ フィール、フォロワー数、位置情報など)

※ただし、1週間以内のデータのみ

参照

関連したドキュメント

Reactor automatically trip (scram) Electrical power supplied by transmission lines Power provided by generator operating with diesel fuel (emergency diesel generator) Cooling by

Situation of storing and treatment of accumulated water in the building (actual record) Stored amounts in each unit building (Units 1 to 4 (including condensers and trenches)), and

- Install high voltage power distribution board for emergency and permanent cables for reactor buildings to secure power supply in case of station black out (losing all AC

The base model for stripped wave analysis is estimated by making use of the observation records of the free base obtained from this earthquake, the stripped wave analysis

Fukushima Daiichi Unit 5 was restored and achieved cold shutdown by getting access to power from the emergency DG of Unit 6 and installing a temporary underwater pump to replace

 The following measures were implemented and it has been confirmed that the total amount of accumulated radioactive water has been reduced by processing the accumulated

 To ensure that our responsibilities for the Fukushima nuclear power accident are fulfilled and that business development is optimized for business subsidiaries, TEPCO will set

2:20 am As the radiation dose over 500μSv/h was measured near the main gate (751μSv/h), it was determined that a specific incident stipulated in article 15, clause 1 of Act on