US,JPのamazonでのkindle管理 ― 2013/07/20 09:14
新規に買ったMacBookAirでkindleの端末の設定しようとしたら
パスワードが認識されない。
表示等は 全て日本語、amazon.co.jpのパスワードを入力してもユーザ名かパスワードが違うってエラーがでる
もしかしたら US側でkindle管理しているのではと USのアマゾンのパスワードを入力 認識した。登録できた
まったく 入門とは思えない オライリーのMining the Social Web(入門 ソーシャルデータ)その2 ― 2013/07/20 11:01
pythonのimport twitterを調べた
/usr/local/lib/python2.7/site-packages/twitter-1.10.0-py2.7.egg/twitter
__init__.py
初期化
ansi.py
ansiのカラム、コマンド、色指定?
api.py
twitter API URL,エラー,認証、レスポンスなど jsonを利用して行う
データ取得の接続まで
archiver.py
twitterのアーカイブ 引数、スイッチ多数
auth.py
認証のパラメータ渡し(エラーハンドリングは無い)
cmdline.py
twitter [action] [options]で twitterのコマンド群の記述用
引数、スイッチ多数
follow.py
twitter-follow [options] <user>コマンド群
ircbot.py
A twitter IRC bot. Twitterbot connected to an IRC server and idles in a channel, polling a twitter account and broadcasting all updates
logger.py
twitter-log <screen_name> [max_id]
oauth.py
oauth2.py
Visit the Twitter developer page and create a new application:
https://dev.twitter.com/apps/new
This will get you a CONSUMER_KEY and CONSUMER_SECRET.
oauth_dance.py
prompts. Return the oauth_token and oauth_token_secret.
Provide the name of your app in `app_name`, your consumer_key, and consumer_secret. This function will open a web browser to let the user allow your app to access their Twitter account. PIN authentication is used.
If a token_filename is given, the oauth tokens will be written to the file.
Perform the OAuth dance with some command-line
stream.py
urlへリクエスト、エラーハンドリング
e TwitterStream object is an interface to the Twitter Stream API
(stream.twitter.com). This can be used pretty much the same as the
Twitter class except the result of calling a method will be an
iterator that yields objects decoded from the stream. For
example::
twitter_stream = TwitterStream(auth=OAuth(...))
iterator = twitter_stream.statuses.sample()
for tweet in iterator:
...do something with this tweet...
The iterator will yield tweets forever and ever (until the stream
breaks at which point it raises a TwitterHTTPError.)
The `block` parameter controls if the stream is blocking. Default
is blocking (True). When set to False, the iterator will
occasionally yield None when there is no available message.
"""
stream_example.py
Example program for the Stream API. This prints public status messages from the "sample" stream as fast as possible.
timezones.py
# A class building tzinfo objects for fixed-offset time zones.
# Note that FixedOffset(0, "UTC") is a different way to build a
# UTC tzinfo object.
twitter_globals.py
This module is automatically generated using `update.py`
.. data:: POST_ACTIONS
List of twitter method names that require the use of POST
'''
util.py
Internal utility functions.
`htmlentitydecode` came from here:
http://wiki.python.org/moin/EscapingHtml
/usr/local/lib/python2.7/site-packages/twitter-1.10.0-py2.7.egg/twitter
__init__.py
初期化
ansi.py
ansiのカラム、コマンド、色指定?
api.py
twitter API URL,エラー,認証、レスポンスなど jsonを利用して行う
データ取得の接続まで
archiver.py
twitterのアーカイブ 引数、スイッチ多数
auth.py
認証のパラメータ渡し(エラーハンドリングは無い)
cmdline.py
twitter [action] [options]で twitterのコマンド群の記述用
引数、スイッチ多数
follow.py
twitter-follow [options] <user>コマンド群
ircbot.py
A twitter IRC bot. Twitterbot connected to an IRC server and idles in a channel, polling a twitter account and broadcasting all updates
logger.py
twitter-log <screen_name> [max_id]
oauth.py
oauth2.py
Visit the Twitter developer page and create a new application:
https://dev.twitter.com/apps/new
This will get you a CONSUMER_KEY and CONSUMER_SECRET.
oauth_dance.py
prompts. Return the oauth_token and oauth_token_secret.
Provide the name of your app in `app_name`, your consumer_key, and consumer_secret. This function will open a web browser to let the user allow your app to access their Twitter account. PIN authentication is used.
If a token_filename is given, the oauth tokens will be written to the file.
Perform the OAuth dance with some command-line
stream.py
urlへリクエスト、エラーハンドリング
e TwitterStream object is an interface to the Twitter Stream API
(stream.twitter.com). This can be used pretty much the same as the
Twitter class except the result of calling a method will be an
iterator that yields objects decoded from the stream. For
example::
twitter_stream = TwitterStream(auth=OAuth(...))
iterator = twitter_stream.statuses.sample()
for tweet in iterator:
...do something with this tweet...
The iterator will yield tweets forever and ever (until the stream
breaks at which point it raises a TwitterHTTPError.)
The `block` parameter controls if the stream is blocking. Default
is blocking (True). When set to False, the iterator will
occasionally yield None when there is no available message.
"""
stream_example.py
Example program for the Stream API. This prints public status messages from the "sample" stream as fast as possible.
timezones.py
# A class building tzinfo objects for fixed-offset time zones.
# Note that FixedOffset(0, "UTC") is a different way to build a
# UTC tzinfo object.
twitter_globals.py
This module is automatically generated using `update.py`
.. data:: POST_ACTIONS
List of twitter method names that require the use of POST
'''
util.py
Internal utility functions.
`htmlentitydecode` came from here:
http://wiki.python.org/moin/EscapingHtml
最近のコメント