さて、では実際にレスポンスの中身を見ていきたいと思いますが、正直、項目が多すぎて、いちいち説明してるととんでもない分量になりますし、私も何なのか理解してない項目がたくさんあります。
なので、以下では、レスポンスの取得例を、改行とインデントで整理したテキストを貼り付けて、いくつかの項目についてその意味を述べておくに留めます(すいません)。階層関係を掴みやすくするために、たとえばjsonが埋まっている場合は「##### ここからstatus/_json #####」といったテキストを挟んであります。
以下、膨大な量のテキストを引用形式で貼り付けていきますが、スマホだと右端で折り返されてわけのわからない表示になる可能性があります。また、パソコンでみるにしても、テキストエディタかなんかにコピペして縮小したり拡大したりしながら見たほうがいいかもしれません。
Userオブジェクト
idはシステム的に振られている数字の並び。
screen_nameは「@〜」のところ。
nameってのは表示名(頻繁に変えても大丈夫なやつ)です。
id_strってのは、idがシングルクォーテーションで囲んであって、文字列型として扱えるやつです。
statuses_countはツイート数。followers_countはフォロワー数。friends_countはフォロー数。
protected(True or False)は鍵垢かどうか。色々な処理を書いていると、「相手が鍵垢だとエラーになる処理」とかがあって、エラーを回避するために事前に鍵垢かどうかをチェックする必要が出てきます。
Followingは自分がフォローしてるかどうか。
verifiedは認証済みユーザかどうか。
langは言語、time_zoneはそのまんま。日本人ユーザのデータばかり集めたいときに使ったりとか。
locationは自分で入力してある居場所で、ツイート(status)に自動でついてくるplaceとは別です。
・・・といったところですかね。これらのデータに、
OBJECT.id
OBJECT.screen_name
みたいな書式でアクセスしてください。
その他詳しくは、Syncerの解説をみるのが良いです。
User(
time_zone='Tokyo',
profile_background_image_url='http://abs.twimg.com/images/themes/theme1/bg.png',
listed_count=38,
is_translation_enabled=True,
profile_background_tile=False,
profile_location=None,
name='bata',
profile_sidebar_border_color='C0DEED',
screen_name='statsbeginner',
url='https://t.co/6HCF2FYowE',
follow_request_sent=False,
##### ここからuser/_json #####
_json={
'time_zone': 'Tokyo',
'profile_background_image_url': 'http://abs.twimg.com/images/themes/theme1/bg.png',
'listed_count': 38,
'is_translation_enabled': True,
'profile_background_tile': False,
'profile_location': None,
'name': 'bata',
'profile_sidebar_border_color': 'C0DEED',
'screen_name': 'statsbeginner',
'url': 'https://t.co/6HCF2FYowE',
'follow_request_sent': False,
'id_str': '257791390',
'default_profile_image': False,
'profile_use_background_image': True,
##### ここからuser/_json/status #####
'status': {
'favorite_count': 1,
'possibly_sensitive': False,
'coordinates': None,
'source': '<a href="http://www.hatena.ne.jp/guide/twitter" rel="nofollow">Hatena</a>',
'text': '去年、国立がん研究センターとJTの論争が話題になった頃にあわせて紹介した砂糖の話が、ウェルク事件に絡めて取り上げられていたw / “60年後にばれた米「砂糖業界」の大陰謀(上)「低脂肪ダイエット」のウソ--大西睦子\xa0|\xa0新潮社フ…” https://t.co/BQkMW7m6de',
'contributors': None,
'created_at': 'Mon Jan 23 05:15:50 +0000 2017',
'truncated': False,
'retweeted': False,
'in_reply_to_screen_name': None,
'is_quote_status': False,
'in_reply_to_user_id': None,
'id_str': '823398817370247168',
'retweet_count': 0,
'in_reply_to_status_id_str': None,
'id': 823398817370247168,
'in_reply_to_status_id': None,
'entities': {
'urls': [{
'display_url': 'htn.to/3i7io9',
'expanded_url': 'http://htn.to/3i7io9',
'url': 'https://t.co/BQkMW7m6de',
'indices': [117, 140]
}],
'user_mentions': [],
'symbols': [],
'hashtags': []
},
'favorited': False,
'in_reply_to_user_id_str': None,
'lang': 'ja',
'place': None,
'geo': None
},
##### ここまでuser/_json/status #####
'entities': {
'description': {'urls': []},
'url': {
'urls': [{
'display_url': 'statsbeginner.hatenablog.com',
'expanded_url': 'http://statsbeginner.hatenablog.com/',
'url': 'https://t.co/6HCF2FYowE',
'indices': [0, 23]
}]
}
},
'statuses_count': 13014,
'contributors_enabled': False,
'profile_link_color': '1DA1F2',
'notifications': False,
'id': 257791390,
'profile_background_image_url_https': 'https://abs.twimg.com/images/themes/theme1/bg.png',
'profile_sidebar_fill_color': 'DDEEF6',
'utc_offset': 32400,
'description': '統計学とプログラミングの勉強ブログを書いています(私は初心者なので専門的なものではない)。剣道初心者で、とりあえず1級審査に向けて稽古中。TX通勤。博士(工学)。',
'profile_text_color': '333333',
'followers_count': 1873,
'default_profile': True,
'profile_image_url': 'http://pbs.twimg.com/profile_images/517659681313923073/_m3UMIAR_normal.jpeg',
'favourites_count': 1088,
'location': 'つくば市',
'needs_phone_verification': False,
'created_at': 'Sat Feb 26 04:59:47 +0000 2011',
'profile_image_url_https': 'https://pbs.twimg.com/profile_images/517659681313923073/_m3UMIAR_normal.jpeg',
'protected': False,
'friends_count': 818,
'following': False,
'suspended': False,
'is_translator': False,
'profile_background_color': 'C0DEED',
'translator_type': 'none',
'geo_enabled': True,
'verified': False,
'has_extended_profile': False,
'lang': 'ja'
},
##### ここまでuser/_json #####
default_profile_image=False,
profile_use_background_image=True,
##### ここからuser/stastus #####
status=Status(
favorite_count=1,
possibly_sensitive=False,
coordinates=None,
source='Hatena',
text='去年、国立がん研究センターとJTの論争が話題になった頃にあわせて紹介した砂糖の話が、ウェルク事件に絡めて取り上げられていたw / “60年後にばれた米「砂糖業界」の大陰謀(上)「低脂肪ダイエット」のウソ--大西睦子\xa0|\xa0新潮社フ…” https://t.co/BQkMW7m6de',
contributors=None,
created_at=datetime.datetime(2017, 1, 23, 5, 15, 50),
in_reply_to_user_id_str=None,
source_url='http://www.hatena.ne.jp/guide/twitter',
truncated=False,
_api=<tweepy.api.API object at 0x117919198>,
retweeted=False,
in_reply_to_screen_name=None,
is_quote_status=False,
in_reply_to_user_id=None,
id_str='823398817370247168',
retweet_count=0,
in_reply_to_status_id_str=None,
id=823398817370247168,
in_reply_to_status_id=None,
entities={
'urls': [{
'display_url': 'htn.to/3i7io9',
'expanded_url': 'http://htn.to/3i7io9',
'url': 'https://t.co/BQkMW7m6de',
'indices': [117, 140]
}],
'user_mentions': [],
'symbols': [],
'hashtags': []
},
favorited=False,
##### ここからuser/status/_json #####
_json={
'favorite_count': 1,
'possibly_sensitive': False,
'coordinates': None,
'source': '<a href="http://www.hatena.ne.jp/guide/twitter" rel="nofollow">Hatena</a>',
'text': '去年、国立がん研究センターとJTの論争が話題になった頃にあわせて紹介した砂糖の話が、ウェルク事件に絡めて取り上げられていたw / “60年後にばれた米「砂糖業界」の大陰謀(上)「低脂肪ダイエット」のウソ--大西睦子\xa0|\xa0新潮社フ…” https://t.co/BQkMW7m6de',
'contributors': None,
'created_at': 'Mon Jan 23 05:15:50 +0000 2017',
'truncated': False,
'retweeted': False,
'in_reply_to_screen_name': None,
'is_quote_status': False,
'in_reply_to_user_id': None,
'id_str': '823398817370247168',
'retweet_count': 0,
'in_reply_to_status_id_str': None,
'id': 823398817370247168,
'in_reply_to_status_id': None,
'entities': {
'urls': [{
'display_url': 'htn.to/3i7io9',
'expanded_url': 'http://htn.to/3i7io9',
'url': 'https://t.co/BQkMW7m6de',
'indices': [117, 140]
}],
'user_mentions': [],
'symbols': [],
'hashtags': []
},
'favorited': False,
'in_reply_to_user_id_str': None,
'lang': 'ja',
'place': None,
'geo': None
},
##### ここまでuser/status/_json #####
lang='ja',
place=None,
geo=None
),
##### ここまでuser/stastus #####
entities={
'description': {'urls': []},
'url': {
'urls': [{
'display_url': 'statsbeginner.hatenablog.com',
'expanded_url': 'http://statsbeginner.hatenablog.com/',
'url': 'https://t.co/6HCF2FYowE',
'indices': [0, 23]
}]
}
},
statuses_count=13014,
contributors_enabled=False,
profile_link_color='1DA1F2',
notifications=False,
id=257791390,
profile_background_image_url_https='https://abs.twimg.com/images/themes/theme1/bg.png',
profile_sidebar_fill_color='DDEEF6',
utc_offset=32400,
description='統計学とプログラミングの勉強ブログを書いています(私は初心者なので専門的なものではない)。剣道初心者で、とりあえず1級審査に向けて稽古中。TX通勤。博士(工学)。',
profile_text_color='333333',
suspended=False,
followers_count=1873,
default_profile=True,
profile_image_url='http://pbs.twimg.com/profile_images/517659681313923073/_m3UMIAR_normal.jpeg',
favourites_count=1088,
_api=<tweepy.api.API object at 0x117919198>,
location='つくば市',
needs_phone_verification=False,
created_at=datetime.datetime(2011, 2, 26, 4, 59, 47),
profile_image_url_https='https://pbs.twimg.com/profile_images/517659681313923073/_m3UMIAR_normal.jpeg',
protected=False,
friends_count=818,
following=False,
id_str='257791390',
is_translator=False,
profile_background_color='C0DEED',
translator_type='none',
geo_enabled=True,
verified=False,
has_extended_profile=False,
lang='ja'
)
Statusオブジェクト
idはツイートのID。ツイートを個別に指定して何かの処理をやる時に必ず使います。
textがツイートの本文。
created_atはツイートの日時が入っていて、Pythonのdatetime型のデータが得られます。
他のツイートへのリプライだった場合はin_reply_to_screen_nameとかに値が入ります。
retweet_countはRT数。favorite_countはふぁぼ数。
retweetedとfavorited(True or False)は自分がRT・ふぁぼしたかどうかです。
placeは位置情報(緯度経度じゃなくて、IPアドレスかなんかをベースに自動で振られるやつ)。上述したとおり、Userオブジェクトに入っているプロフのlocationとは別です。
sourceで、パソコンからなのかスマホアプリからなのか等が判別できます。
possibly_sensitiveは何のことかわからないのですが、何かのフィルタリングに使われるやつかな?
下の例では出てきませんが、スマホ等からのつぶやきで緯度経度情報がある場合は、coordinatesって項目の中に数値が入ります。
上述したように、authorとuserに似たような情報が入ってますが、userはすでに非推奨となっているので、authorの情報を使ったほうがいいようです。
その他詳しくはSyncerの解説で確認するのがいいかと。
Status(
##### ここからstatus/author #####
author=User(
time_zone='Tokyo',
profile_background_image_url='http://abs.twimg.com/images/themes/theme1/bg.png',
listed_count=38,
is_translation_enabled=True,
profile_background_tile=False,
name='bata',
profile_sidebar_border_color='C0DEED',
screen_name='statsbeginner',
url='https://t.co/6HCF2FYowE',
follow_request_sent=False,
##### ここからstatus/author/_json #####
_json={
'time_zone': 'Tokyo',
'description': '統計学とプログラミングの勉強ブログを書いています(私は初心者なので専門的なものではない)。剣道初心者で、とりあえず1級審査に向けて稽古中。TX通勤。博士(工学)。',
'following': False,
'profile_background_image_url': 'http://abs.twimg.com/images/themes/theme1/bg.png',
'listed_count': 38,
'is_translation_enabled': True,
'profile_background_tile': False,
'profile_text_color': '333333',
'profile_image_url': 'http://pbs.twimg.com/profile_images/517659681313923073/_m3UMIAR_normal.jpeg',
'favourites_count': 1088,
'notifications': False,
'location': 'つくば市',
'profile_use_background_image': True,
'name': 'bata',
'created_at': 'Sat Feb 26 04:59:47 +0000 2011',
'profile_image_url_https': 'https://pbs.twimg.com/profile_images/517659681313923073/_m3UMIAR_normal.jpeg',
'screen_name': 'statsbeginner',
'protected': False,
'profile_background_color': 'C0DEED',
'url': 'https://t.co/6HCF2FYowE',
'follow_request_sent': False,
'friends_count': 800,
'default_profile': True,
'default_profile_image': False,
'followers_count': 1873,
'translator_type': 'none',
'id_str': '257791390',
'statuses_count': 13014,
'contributors_enabled': False,
'profile_link_color': '1DA1F2',
'is_translator': False,
'id': 257791390,
'entities': {
'description': {'urls': []},
'url': {
'urls': [{
'display_url': 'statsbeginner.hatenablog.com', 'expanded_url': 'http://statsbeginner.hatenablog.com/', 'url': 'https://t.co/6HCF2FYowE', 'indices': [0, 23]
}]
}
},
'geo_enabled': True,
'profile_sidebar_fill_color': 'DDEEF6',
'has_extended_profile': False,
'verified': False,
'profile_background_image_url_https': 'https://abs.twimg.com/images/themes/theme1/bg.png',
'lang': 'ja',
'utc_offset': 32400,
'profile_sidebar_border_color': 'C0DEED'
},
##### ここまでstatus/author/_json #####
default_profile_image=False,
profile_use_background_image=True,
entities={
'description': {'urls': []},
'url': {
'urls': [{
'display_url': 'statsbeginner.hatenablog.com',
'expanded_url': 'http://statsbeginner.hatenablog.com/',
'url': 'https://t.co/6HCF2FYowE',
'indices': [0, 23]
}]
}
},
statuses_count=13014,
contributors_enabled=False,
profile_link_color='1DA1F2',
notifications=False,
id=257791390,
profile_background_image_url_https='https://abs.twimg.com/images/themes/theme1/bg.png',
profile_sidebar_fill_color='DDEEF6',
utc_offset=32400,
description='統計学とプログラミングの勉強ブログを書いています(私は初心者なので専門的なものではない)。剣道初心者で、とりあえず1級審査に向けて稽古中。TX通勤。博士(工学)。',
profile_text_color='333333',
followers_count=1873,
default_profile=True,
profile_image_url='http://pbs.twimg.com/profile_images/517659681313923073/_m3UMIAR_normal.jpeg',
favourites_count=1088,
_api=<tweepy.api.API object at 0x117919198>,
location='つくば市',
created_at=datetime.datetime(2011, 2, 26, 4, 59, 47),
profile_image_url_https='https://pbs.twimg.com/profile_images/517659681313923073/_m3UMIAR_normal.jpeg',
protected=False,
friends_count=800,
following=False,
id_str='257791390',
is_translator=False,
profile_background_color='C0DEED',
translator_type='none',
geo_enabled=True,
verified=False,
has_extended_profile=False,
lang='ja'
),
##### ここまでstatus/autor #####
possibly_sensitive=False,
coordinates=None,
source='Twitter for iPhone',
favorite_count=0,
text='ボーカル2人って知らなかった/クリスタルキング 大都会 https://t.co/fuCvYig0eu',
##### ここからstatus/user #####
user=User(
time_zone='Tokyo',
profile_background_image_url='http://abs.twimg.com/images/themes/theme1/bg.png',
listed_count=38,
is_translation_enabled=True,
profile_background_tile=False,
name='bata',
profile_sidebar_border_color='C0DEED',
screen_name='statsbeginner',
url='https://t.co/6HCF2FYowE',
follow_request_sent=False,
##### ここからstatus/user/_json #####
_json={
'time_zone': 'Tokyo',
'description': '統計学とプログラミングの勉強ブログを書いています(私は初心者なので専門的なものではない)。剣道初心者で、とりあえず1級審査に向けて稽古中。TX通勤。博士(工学)。',
'following': False,
'profile_background_image_url': 'http://abs.twimg.com/images/themes/theme1/bg.png',
'listed_count': 38,
'is_translation_enabled': True,
'profile_background_tile': False,
'profile_text_color': '333333',
'profile_image_url': 'http://pbs.twimg.com/profile_images/517659681313923073/_m3UMIAR_normal.jpeg',
'favourites_count': 1088,
'notifications': False,
'location': 'つくば市',
'profile_use_background_image': True,
'name': 'bata',
'created_at': 'Sat Feb 26 04:59:47 +0000 2011',
'profile_image_url_https': 'https://pbs.twimg.com/profile_images/517659681313923073/_m3UMIAR_normal.jpeg',
'screen_name': 'statsbeginner',
'protected': False,
'profile_background_color': 'C0DEED',
'url': 'https://t.co/6HCF2FYowE',
'follow_request_sent': False,
'friends_count': 800,
'default_profile': True,
'default_profile_image': False,
'followers_count': 1873,
'translator_type': 'none',
'id_str': '257791390',
'statuses_count': 13014,
'contributors_enabled': False,
'profile_link_color': '1DA1F2',
'is_translator': False,
'id': 257791390,
'entities': {
'description': {'urls': []},
'url': {
'urls': [{
'display_url': 'statsbeginner.hatenablog.com',
'expanded_url': 'http://statsbeginner.hatenablog.com/',
'url': 'https://t.co/6HCF2FYowE',
'indices': [0, 23]
}]
}
},
'geo_enabled': True,
'profile_sidebar_fill_color': 'DDEEF6',
'has_extended_profile': False,
'verified': False,
'profile_background_image_url_https': 'https://abs.twimg.com/images/themes/theme1/bg.png',
'lang': 'ja',
'utc_offset': 32400,
'profile_sidebar_border_color': 'C0DEED'
},
##### ここまでstatus/user/_json #####
default_profile_image=False,
profile_use_background_image=True,
entities={
'description': {'urls': []},
'url': {
'urls': [{
'display_url': 'statsbeginner.hatenablog.com',
'expanded_url': 'http://statsbeginner.hatenablog.com/',
'url': 'https://t.co/6HCF2FYowE',
'indices': [0, 23]
}]
}
},
statuses_count=13014,
contributors_enabled=False,
profile_link_color='1DA1F2',
notifications=False,
id=257791390,
profile_background_image_url_https='https://abs.twimg.com/images/themes/theme1/bg.png',
profile_sidebar_fill_color='DDEEF6',
utc_offset=32400,
description='統計学とプログラミングの勉強ブログを書いています(私は初心者なので専門的なものではない)。剣道初心者で、とりあえず1級審査に向けて稽古中。TX通勤。博士(工学)。',
profile_text_color='333333',
followers_count=1873,
default_profile=True,
profile_image_url='http://pbs.twimg.com/profile_images/517659681313923073/_m3UMIAR_normal.jpeg',
favourites_count=1088,
_api=<tweepy.api.API object at 0x117919198>,
location='つくば市',
created_at=datetime.datetime(2011, 2, 26, 4, 59, 47),
profile_image_url_https='https://pbs.twimg.com/profile_images/517659681313923073/_m3UMIAR_normal.jpeg',
protected=False,
friends_count=800,
following=False,
id_str='257791390',
is_translator=False,
profile_background_color='C0DEED',
translator_type='none',
geo_enabled=True,
verified=False,
has_extended_profile=False,
lang='ja'
),
##### ここまでstatus/user #####
contributors=None,
created_at=datetime.datetime(2017, 1, 22, 6, 5, 33),
in_reply_to_user_id_str=None,
source_url='http://twitter.com/download/iphone',
id=823048940182376452,
_api=<tweepy.api.API object at 0x117919198>,
retweeted=False,
in_reply_to_screen_name=None,
is_quote_status=False,
in_reply_to_user_id=None,
entities={
'urls': [{
'display_url': 'youtube.com/watch?v=ADgZso…',
'expanded_url': 'https://www.youtube.com/watch?v=ADgZsoSzDp0&feature=share',
'url': 'https://t.co/fuCvYig0eu',
'indices': [28, 51]
}],
'user_mentions': [],
'symbols': [],
'hashtags': []
},
retweet_count=0,
possibly_sensitive_appealable=False,
in_reply_to_status_id_str=None,
truncated=False,
in_reply_to_status_id=None,
id_str='823048940182376452',
favorited=False,
##### ここから_json #####
_json={
'favorite_count': 0,
'possibly_sensitive': False,
'coordinates': None,
'source': '<a href="http://twitter.com/download/iphone" rel="nofollow">Twitter for iPhone</a>',
'text': 'ボーカル2人って知らなかった/クリスタルキング 大都会 https://t.co/fuCvYig0eu',
##### ここから_json/user #####
'user': {
'time_zone': 'Tokyo',
'description': '統計学とプログラミングの勉強ブログを書いています(私は初心者なので専門的なものではない)。剣道初心者で、とりあえず1級審査に向けて稽古中。TX通勤。博士(工学)。',
'following': False,
'profile_background_image_url': 'http://abs.twimg.com/images/themes/theme1/bg.png',
'listed_count': 38,
'is_translation_enabled': True,
'profile_background_tile': False,
'profile_text_color': '333333',
'profile_image_url': 'http://pbs.twimg.com/profile_images/517659681313923073/_m3UMIAR_normal.jpeg',
'favourites_count': 1088,
'notifications': False,
'location': 'つくば市',
'profile_use_background_image': True,
'name': 'bata',
'created_at': 'Sat Feb 26 04:59:47 +0000 2011',
'profile_image_url_https': 'https://pbs.twimg.com/profile_images/517659681313923073/_m3UMIAR_normal.jpeg',
'screen_name': 'statsbeginner',
'protected': False,
'profile_background_color': 'C0DEED',
'url': 'https://t.co/6HCF2FYowE',
'follow_request_sent': False,
'friends_count': 800,
'default_profile': True,
'default_profile_image': False,
'followers_count': 1873,
'translator_type': 'none',
'id_str': '257791390',
'statuses_count': 13014,
'contributors_enabled': False,
'profile_link_color': '1DA1F2',
'is_translator': False,
'id': 257791390,
'entities': {
'description': {'urls': []},
'url': {
'urls': [{
'display_url': 'statsbeginner.hatenablog.com',
'expanded_url': 'http://statsbeginner.hatenablog.com/',
'url': 'https://t.co/6HCF2FYowE',
'indices': [0, 23]
}]
}
},
'geo_enabled': True,
'profile_sidebar_fill_color': 'DDEEF6',
'has_extended_profile': False,
'verified': False,
'profile_background_image_url_https': 'https://abs.twimg.com/images/themes/theme1/bg.png',
'lang': 'ja',
'utc_offset': 32400,
'profile_sidebar_border_color': 'C0DEED'
},
##### ここまでstatus/_json/user #####
'contributors': None,
'created_at': 'Sun Jan 22 06:05:33 +0000 2017',
'truncated': False,
'retweeted': False,
'in_reply_to_screen_name': None,
'is_quote_status': False,
'in_reply_to_user_id': None,
'id_str': '823048940182376452',
'retweet_count': 0,
'possibly_sensitive_appealable': False,
'in_reply_to_status_id_str': None,
'id': 823048940182376452,
'in_reply_to_status_id': None,
'entities': {
'urls': [{
'display_url': 'youtube.com/watch?v=ADgZso…',
'expanded_url': 'https://www.youtube.com/watch?v=ADgZsoSzDp0&feature=share',
'url': 'https://t.co/fuCvYig0eu',
'indices': [28, 51]
}],
'user_mentions': [],
'symbols': [],
'hashtags': []
},
'favorited': False,
'in_reply_to_user_id_str': None,
'lang': 'ja',
'place': None,
'geo': None
},
##### ここまでstatus/_json #####
lang='ja',
place=None,
geo=None
)
RetweetありのStatusオブジェクト
以下はRTありの場合です。1000項目以上あってヤヴァいですが、UserとStatusを知っていればだいたい分かります。
1階層目は、「RTである私のツイート」としての情報が入っていて、retweeted_statusの中に、RTされた元のツイートの情報が入っています。たとえば、Status直下の、私自身のツイート情報としてはsourceが'Twitter for Mac'になっていますが、retweeted_status中のsourceは'Twitter for iPhone'になっています。ピコ太郎さんがiPhoneのTwitterクライアントから投稿したツイートを、私がMacのTwitterクライアントからRTしたということです。
下の例ではたまたま、extended_entitiesが入っているので、詳しいことを知りたければSyncerの解説を。「エンティティはテキストに含まれているURLアドレスやハッシュタグにリンクを付けてリッチテキスト化するための情報です。拡張エンティティはテキストに画像や動画を加えるための情報」です。
この、entitiesやextended_entitiesは、階層が深くなる代表的な項目ですね。私は今のところ情報として使ったことがありません。
Status(
##### ここからstatus/author #####
author=User(
time_zone='Tokyo',
profile_background_image_url='http://abs.twimg.com/images/themes/theme1/bg.png',
listed_count=38,
is_translation_enabled=True,
profile_background_tile=False,
name='bata',
profile_sidebar_border_color='C0DEED',
screen_name='statsbeginner',
url='https://t.co/6HCF2FYowE',
follow_request_sent=False,
##### ここからstatus/author/_json #####
_json={
'time_zone': 'Tokyo',
'description': '統計学とプログラミングの勉強ブログを書いています(私は初心者なので専門的なものではない)。剣道初心者で、とりあえず1級審査に向けて稽古中。TX通勤。博士(工学)。',
'following': False,
'profile_background_image_url': 'http://abs.twimg.com/images/themes/theme1/bg.png',
'listed_count': 38,
'is_translation_enabled': True,
'profile_background_tile': False,
'profile_text_color': '333333',
'profile_image_url': 'http://pbs.twimg.com/profile_images/517659681313923073/_m3UMIAR_normal.jpeg',
'favourites_count': 1088,
'notifications': False,
'location': 'つくば市',
'profile_use_background_image': True,
'name': 'bata',
'created_at': 'Sat Feb 26 04:59:47 +0000 2011',
'profile_image_url_https': 'https://pbs.twimg.com/profile_images/517659681313923073/_m3UMIAR_normal.jpeg',
'screen_name': 'statsbeginner',
'protected': False,
'profile_background_color': 'C0DEED',
'url': 'https://t.co/6HCF2FYowE',
'follow_request_sent': False,
'friends_count': 775,
'default_profile': True,
'default_profile_image': False,
'followers_count': 1873,
'translator_type': 'none',
'id_str': '257791390',
'statuses_count': 13015,
'contributors_enabled': False,
'profile_link_color': '1DA1F2',
'is_translator': False,
'id': 257791390,
'entities': {
'description': {'urls': []},
'url': {
'urls': [{
'display_url': 'statsbeginner.hatenablog.com',
'expanded_url': 'http://statsbeginner.hatenablog.com/',
'url': 'https://t.co/6HCF2FYowE',
'indices': [0, 23]
}]
}
},
'geo_enabled': True,
'profile_sidebar_fill_color': 'DDEEF6',
'has_extended_profile': False,
'verified': False,
'profile_background_image_url_https': 'https://abs.twimg.com/images/themes/theme1/bg.png',
'lang': 'ja',
'utc_offset': 32400,
'profile_sidebar_border_color': 'C0DEED'
},
##### ここまでstatus/author/_json #####
default_profile_image=False,
profile_use_background_image=True,
entities={
'description': {'urls': []},
'url': {
'urls': [{
'display_url': 'statsbeginner.hatenablog.com',
'expanded_url': 'http://statsbeginner.hatenablog.com/',
'url': 'https://t.co/6HCF2FYowE',
'indices': [0, 23]
}]
}
},
statuses_count=13015,
contributors_enabled=False,
profile_link_color='1DA1F2',
notifications=False,
id=257791390,
profile_background_image_url_https='https://abs.twimg.com/images/themes/theme1 /bg.png',
profile_sidebar_fill_color='DDEEF6',
utc_offset=32400,
description='統計学とプログラミングの勉強ブログを書いています(私は初心者なので専門的なものではない)。剣道初心者で、とりあえず1級審査に向けて稽古中。TX通勤。博士(工学)。',
profile_text_color='333333',
followers_count=1873,
default_profile=True,
profile_image_url='http://pbs.twimg.com/profile_images/517659681313923073/_m3UMIAR_normal.jpeg',
favourites_count=1088,
_api=<tweepy.api.API object at 0x117919198>,
location='つくば市',
created_at=datetime.datetime(2011, 2, 26, 4, 59, 47),
profile_image_url_https='https://pbs.twimg.com/profile_images/517659681313923073/_m3UMIAR_normal.jpeg',
protected=False,
friends_count=775,
following=False,
id_str='257791390',
is_translator=False,
profile_background_color='C0DEED',
translator_type='none',
geo_enabled=True,
verified=False,
has_extended_profile=False,
lang='ja'
),
##### ここまでstatus/author #####
possibly_sensitive=False,
##### ここからstatus/extended_entities #####
extended_entities={
'media': [
{
'type': 'photo',
'media_url': 'http://pbs.twimg.com/media/C20sL--VIAEra5v.jpg',
'source_user_id': 747329673659482113,
'source_user_id_str': '747329673659482113',
'display_url': 'pic.twitter.com/uP5PYzWhHL',
'media_url_https': 'https://pbs.twimg.com/media/C20sL--VIAEra5v.jpg',
'sizes': {
'large': {
'resize': 'fit',
'h': 1536,
'w': 2048
},
'small': {
'resize': 'fit',
'h': 510,
'w': 680
},
'medium': {
'resize': 'fit',
'h': 900,
'w': 1200
},
'thumb': {
'resize': 'crop',
'h': 150,
'w': 150
}
},
'indices': [36, 59],
'id_str': '823362891273281537',
'source_status_id_str': '823362903805804546',
'source_status_id': 823362903805804546,
'expanded_url': 'https://twitter.com/pikotaro_ppap/status /823362903805804546/photo/1',
'id': 823362891273281537,
'url': 'https://t.co/uP5PYzWhHL'
}
]
},
##### ここまでstatus/extenced_entities #####
coordinates=None,
source='Twitter for Mac',
favorite_count=0,
text='RT @pikotaro_ppap: PONで華原朋美様とお写真ピコ! https://t.co/uP5PYzWhHL',
##### ここからstatus/user #####
user=User(time_zone='Tokyo',
profile_background_image_url='http://abs.twimg.com/images/themes/theme1/bg.png',
listed_count=38,
is_translation_enabled=True,
profile_background_tile=False,
name='bata',
profile_sidebar_border_color='C0DEED',
screen_name='statsbeginner',
url='https://t.co/6HCF2FYowE',
follow_request_sent=False,
##### ここからstatus/user/_json #####
_json={
'time_zone': 'Tokyo',
'description': '統計学とプログラミングの勉強ブログを書いています(私は初心者なので専門的なものではない)。剣道初心者で、とりあえず1級審査に向けて稽古中。TX通勤。博士(工学)。',
'following': False,
'profile_background_image_url': 'http://abs.twimg.com/images/themes/theme1 /bg.png',
'listed_count': 38,
'is_translation_enabled': True,
'profile_background_tile': False,
'profile_text_color': '333333',
'profile_image_url': 'http://pbs.twimg.com/profile_images/517659681313923073/_m3UMIAR_normal.jpeg',
'favourites_count': 1088,
'notifications': False,
'location': 'つくば市',
'profile_use_background_image': True,
'name': 'bata',
'created_at': 'Sat Feb 26 04:59:47 +0000 2011',
'profile_image_url_https': 'https://pbs.twimg.com/profile_images/517659681313923073/_m3UMIAR_normal.jpeg',
'screen_name': 'statsbeginner',
'protected': False,
'profile_background_color': 'C0DEED',
'url': 'https://t.co/6HCF2FYowE',
'follow_request_sent': False,
'friends_count': 775,
'default_profile': True,
'default_profile_image': False,
'followers_count': 1873,
'translator_type': 'none',
'id_str': '257791390',
'statuses_count': 13015,
'contributors_enabled': False,
'profile_link_color': '1DA1F2',
'is_translator': False,
'id': 257791390,
'entities': {
'description': {'urls': []},
'url': {
'urls': [{
'display_url': 'statsbeginner.hatenablog.com',
'expanded_url': 'http://statsbeginner.hatenablog.com/',
'url': 'https://t.co/6HCF2FYowE',
'indices': [0, 23]
}]
}
},
'geo_enabled': True,
'profile_sidebar_fill_color': 'DDEEF6',
'has_extended_profile': False,
'verified': False,
'profile_background_image_url_https': 'https://abs.twimg.com/images/themes /theme1/bg.png',
'lang': 'ja',
'utc_offset': 32400,
'profile_sidebar_border_color': 'C0DEED'
},
##### ここまでstatus/user/_json #####
default_profile_image=False,
profile_use_background_image=True,
entities={
'description': {'urls': []},
'url': {
'urls': [{
'display_url': 'statsbeginner.hatenablog.com',
'expanded_url': 'http://statsbeginner.hatenablog.com/',
'url': 'https://t.co/6HCF2FYowE',
'indices': [0, 23]
}]
}
},
statuses_count=13015,
contributors_enabled=False,
profile_link_color='1DA1F2',
notifications=False,
id=257791390,
profile_background_image_url_https='https://abs.twimg.com/images/themes/theme1/bg.png',
profile_sidebar_fill_color='DDEEF6',
utc_offset=32400,
description='統計学とプログラミングの勉強ブログを書いています(私は初心者なので専門的なものではない)。剣道初心者で、とりあえず1級審査に向けて稽古中。TX通勤。博士(工学)。',
profile_text_color='333333',
followers_count=1873,
default_profile=True,
profile_image_url='http://pbs.twimg.com/profile_images/517659681313923073/_m3UMIAR_normal.jpeg',
favourites_count=1088,
_api=<tweepy.api.API object at 0x117919198>,
location='つくば市',
created_at=datetime.datetime(2011, 2, 26, 4, 59, 47),
profile_image_url_https='https://pbs.twimg.com/profile_images/517659681313923073/_m3UMIAR_normal.jpeg',
protected=False,
friends_count=775,
following=False,
id_str='257791390',
is_translator=False,
profile_background_color='C0DEED',
translator_type='none',
geo_enabled=True,
verified=False,
has_extended_profile=False,
lang='ja'
),
##### ここまでstatus/user #####
contributors=None,
created_at=datetime.datetime(2017, 1, 23, 18, 12, 9),
in_reply_to_user_id_str=None,
source_url='http://itunes.apple.com/us/app/twitter/id409789998?mt=12',
id=823594183499780096,
_api=<tweepy.api.API object at 0x117919198>,
retweeted=True,
in_reply_to_screen_name=None,
is_quote_status=False,
in_reply_to_user_id=None,
##### ここからstatus/entities #####
entities={
'urls': [],
'user_mentions': [{
'id_str': '747329673659482113',
'id': 747329673659482113,
'name': 'ピコ太郎(PIKOTARO)(公式)',
'indices': [3, 17],
'screen_name': 'pikotaro_ppap'
}],
'symbols': [],
'hashtags': [],
'media': [{
'type': 'photo',
'media_url': 'http://pbs.twimg.com/media/C20sL--VIAEra5v.jpg',
'source_user_id': 747329673659482113,
'source_user_id_str': '747329673659482113',
'display_url': 'pic.twitter.com/uP5PYzWhHL',
'media_url_https': 'https://pbs.twimg.com/media/C20sL--VIAEra5v.jpg',
'sizes': {
'large': {
'resize': 'fit',
'h': 1536,
'w': 2048
},
'small': {
'resize': 'fit',
'h': 510,
'w': 680
},
'medium': {
'resize': 'fit',
'h': 900,
'w': 1200
},
'thumb': {
'resize': 'crop',
'h': 150,
'w': 150
}
},
'indices': [36, 59],
'id_str': '823362891273281537',
'source_status_id_str': '823362903805804546',
'source_status_id': 823362903805804546,
'expanded_url': 'https://twitter.com/pikotaro_ppap/status/823362903805804546/photo/1',
'id': 823362891273281537,
'url': 'https://t.co/uP5PYzWhHL'
}]
},
##### ここまでstatus/entities #####
##### ここからstatus/retweeted_status #####
retweeted_status=Status(
##### ここからstatus/retweeted_status/author #####
author=User(
time_zone=None,
profile_background_image_url=None,
listed_count=385,
is_translation_enabled=False,
profile_background_tile=False,
name='ピコ太郎(PIKOTARO)(公式)',
profile_sidebar_border_color='C0DEED',
screen_name='pikotaro_ppap',
url='https://t.co/02EEvEpRWi',
follow_request_sent=False,
##### ここからstatus/retweeted_status/author/_json #####
_json={
'time_zone': None,
'description': '(OFFICIAL)シンガーソングライタ ー「ピコ太郎」と、申しやすっ。目指せ紅白歌合戦とサマソニ。リスペクトシンガー→恩人ジャスティンビーバー、クラフトワーク、M.I.A、杏里、石川さゆり、アリアナグランデ For international inquiries:ppap-world@av.avex.co.jp',
'following': False,
'profile_background_image_url': None,
'listed_count': 385,
'is_translation_enabled': False,
'profile_background_tile': False,
'profile_text_color': '333333',
'profile_image_url': 'http://pbs.twimg.com/profile_images/822403634931433472/udAnDIVV_normal.jpg',
'favourites_count': 3,
'has_extended_profile': True,
'notifications': False,
'location': '',
'profile_use_background_image': True,
'name': 'ピコ太郎(PIKOTARO)(公式)',
'created_at': 'Mon Jun 27 07:24:13 +0000 2016',
'profile_image_url_https': 'https://pbs.twimg.com/profile_images/822403634931433472/udAnDIVV_normal.jpg',
'screen_name': 'pikotaro_ppap',
'protected': False,
'profile_background_color': 'F5F8FA',
'url': 'https://t.co/02EEvEpRWi',
'follow_request_sent': False,
'friends_count': 97,
'default_profile': True,
'default_profile_image': False,
'followers_count': 88696,
'translator_type': 'none',
'id_str': '747329673659482113',
'statuses_count': 1210,
'contributors_enabled': False,
'profile_link_color': '1DA1F2',
'is_translator': False,
'id': 747329673659482113,
'entities': {
'description': {
'urls': []
},
'url': {
'urls': [{
'display_url': 'm.youtube.com/channel/UCKpIO…',
'expanded_url': 'https://m.youtube.com/channel/UCKpIOnsk-gcwHXIzuk24ExA',
'url': 'https://t.co/02EEvEpRWi',
'indices': [0, 23]
}]
}
},
'geo_enabled': False,
'profile_sidebar_fill_color': 'DDEEF6',
'profile_banner_url': 'https://pbs.twimg.com/profile_banners/747329673659482113/1484911282',
'verified': False,
'profile_background_image_url_https': None,
'lang': 'en',
'utc_offset': None,
'profile_sidebar_border_color': 'C0DEED'
},
##### ここまでstatus/retweeted_status/author/_json #####
default_profile_image=False,
profile_use_background_image=True,
entities={
'description': {'urls': []},
'url': {
'urls': [{
'display_url': 'm.youtube.com/channel/UCKpIO…',
'expanded_url': 'https://m.youtube.com/channel/UCKpIOnsk-gcwHXIzuk24ExA',
'url': 'https://t.co/02EEvEpRWi',
'indices': [0, 23]
}]
}
},
statuses_count=1210,
contributors_enabled=False,
profile_link_color='1DA1F2',
notifications=False,
id=747329673659482113,
profile_background_image_url_https=None,
profile_sidebar_fill_color='DDEEF6',
utc_offset=None,
description='(OFFICIAL)シンガーソングライタ ー「ピコ太郎」と、申しやすっ。目指せ紅白歌合戦とサマソニ。リスペクトシンガー→恩人ジャスティンビーバー、クラフトワーク、M.I.A、杏里、石川さゆり、アリアナグランデ For international inquiries:ppap-world@av.avex.co.jp',
profile_text_color='333333',
followers_count=88696,
default_profile=True,
profile_image_url='http://pbs.twimg.com/profile_images/822403634931433472/udAnDIVV_normal.jpg',
favourites_count=3,
_api=<tweepy.api.API object at 0x117919198>,
location='',
created_at=datetime.datetime(2016, 6, 27, 7, 24, 13),
profile_image_url_https='https://pbs.twimg.com/profile_images/822403634931433472/udAnDIVV_normal.jpg',
protected=False,
friends_count=97,
following=False,
profile_banner_url='https://pbs.twimg.com/profile_banners/747329673659482113/1484911282',
id_str='747329673659482113',
is_translator=False,
profile_background_color='F5F8FA',
translator_type='none',
geo_enabled=False,
verified=False,
has_extended_profile=True,
lang='en'
),
##### ここまでstatus/retweeted_status/author #####
possibly_sensitive=False,
##### ここからstatus/retweeted_status/extended_entities #####
extended_entities={
'media': [{
'type': 'photo',
'id_str': '823362891273281537',
'media_url': 'http://pbs.twimg.com/media/C20sL--VIAEra5v.jpg',
'display_url': 'pic.twitter.com/uP5PYzWhHL',
'url': 'https://t.co/uP5PYzWhHL',
'expanded_url': 'https://twitter.com/pikotaro_ppap/status/823362903805804546/photo/1',
'sizes': {
'large': {
'resize': 'fit',
'h': 1536,
'w': 2048
},
'small': {
'resize': 'fit',
'h': 510,
'w': 680
},
'medium': {
'resize': 'fit',
'h': 900,
'w': 1200
},
'thumb': {
'resize': 'crop',
'h': 150,
'w': 150
}
},
'media_url_https': 'https://pbs.twimg.com/media/C20sL--VIAEra5v.jpg',
'indices': [17, 40],
'id': 823362891273281537
}]
},
##### ここまでstatus/retweeted_status/extended_entities #####
coordinates=None,
source='Twitter for iPhone',
favorite_count=855,
text='PONで華原朋美様とお写真ピコ! https://t.co/uP5PYzWhHL',
##### ここからstatus/retweeted_status/user #####
user=User(
time_zone=None,
profile_background_image_url=None,
listed_count=385,
is_translation_enabled=False,
profile_background_tile=False,
name='ピコ太郎(PIKOTARO)(公式)',
profile_sidebar_border_color='C0DEED',
screen_name='pikotaro_ppap',
url='https://t.co/02EEvEpRWi',
follow_request_sent=False,
##### ここからstatus/retweeted_status/user/_json #####
_json={
'time_zone': None,
'description': '(OFFICIAL)シンガーソングライタ ー「ピコ太郎」と、申しやすっ。目指せ紅白歌合戦とサマソニ。リスペクトシンガー→恩人ジャスティンビーバー、クラフトワーク、M.I.A、杏里、石川さゆり、アリアナグランデ For international inquiries:ppap-world@av.avex.co.jp',
'following': False,
'profile_background_image_url': None,
'listed_count': 385,
'is_translation_enabled': False,
'profile_background_tile': False,
'profile_text_color': '333333',
'profile_image_url': 'http://pbs.twimg.com/profile_images/822403634931433472/udAnDIVV_normal.jpg',
'favourites_count': 3,
'has_extended_profile': True,
'notifications': False,
'location': '',
'profile_use_background_image': True,
'name': 'ピコ太郎(PIKOTARO)(公式)',
'created_at': 'Mon Jun 27 07:24:13 +0000 2016',
'profile_image_url_https': 'https://pbs.twimg.com/profile_images/822403634931433472/udAnDIVV_normal.jpg',
'screen_name': 'pikotaro_ppap',
'protected': False,
'profile_background_color': 'F5F8FA',
'url': 'https://t.co/02EEvEpRWi',
'follow_request_sent': False,
'friends_count': 97,
'default_profile': True,
'default_profile_image': False,
'followers_count': 88696,
'translator_type': 'none',
'id_str': '747329673659482113',
'statuses_count': 1210,
'contributors_enabled': False,
'profile_link_color': '1DA1F2',
'is_translator': False,
'id': 747329673659482113,
'entities': {
'description': {'urls': []},
'url': {
'urls': [{
'display_url': 'm.youtube.com/channel/UCKpIO…',
'expanded_url': 'https://m.youtube.com/channel/UCKpIOnsk-gcwHXIzuk24ExA',
'url': 'https://t.co/02EEvEpRWi',
'indices': [0, 23]
}]
}
},
'geo_enabled': False,
'profile_sidebar_fill_color': 'DDEEF6',
'profile_banner_url': 'https://pbs.twimg.com/profile_banners/747329673659482113/1484911282',
'verified': False,
'profile_background_image_url_https': None,
'lang': 'en',
'utc_offset': None,
'profile_sidebar_border_color': 'C0DEED'
},
##### ここまでstatus/retweeted_status/user/_json #####
default_profile_image=False,
profile_use_background_image=True,
entities={
'description': {'urls': []},
'url': {
'urls': [{
'display_url': 'm.youtube.com/channel/UCKpIO…',
'expanded_url': 'https://m.youtube.com/channel/UCKpIOnsk-gcwHXIzuk24ExA',
'url': 'https://t.co/02EEvEpRWi',
'indices': [0, 23]
}]
}
},
statuses_count=1210,
contributors_enabled=False,
profile_link_color='1DA1F2',
notifications=False,
id=747329673659482113,
profile_background_image_url_https=None,
profile_sidebar_fill_color='DDEEF6',
utc_offset=None,
description='(OFFICIAL)シンガーソングライタ ー「ピコ太郎」と、申しやすっ。目指せ紅白歌合戦とサマソニ。リスペクトシンガー→恩人ジャスティンビーバー、クラフトワーク、M.I.A、杏里、石川さゆり、アリアナグランデ For international inquiries:ppap-world@av.avex.co.jp',
profile_text_color='333333',
followers_count=88696,
default_profile=True,
profile_image_url='http://pbs.twimg.com/profile_images/822403634931433472/udAnDIVV_normal.jpg',
favourites_count=3,
_api=<tweepy.api.API object at 0x117919198>,
location='',
created_at=datetime.datetime(2016, 6, 27, 7, 24, 13),
profile_image_url_https='https://pbs.twimg.com/profile_images/822403634931433472/udAnDIVV_normal.jpg',
protected=False,
friends_count=97,
following=False,
profile_banner_url='https://pbs.twimg.com/profile_banners/747329673659482113/1484911282',
id_str='747329673659482113',
is_translator=False,
profile_background_color='F5F8FA',
translator_type='none',
geo_enabled=False,
verified=False,
has_extended_profile=True,
lang='en'
),
##### ここまでstatus/retweeted_status/user #####
contributors=None,
created_at=datetime.datetime(2017, 1, 23, 2, 53, 8),
in_reply_to_user_id_str=None,
source_url='http://twitter.com/download/iphone',
id=823362903805804546,
_api=<tweepy.api.API object at 0x117919198>,
retweeted=True,
in_reply_to_screen_name=None,
is_quote_status=False,
in_reply_to_user_id=None,
##### ここからstatus/retweeted_status/entities #####
entities={
'urls': [],
'user_mentions': [],
'symbols': [],
'hashtags': [],
'media': [{
'type': 'photo',
'id_str': '823362891273281537',
'media_url': 'http://pbs.twimg.com/media/C20sL--VIAEra5v.jpg',
'display_url': 'pic.twitter.com/uP5PYzWhHL',
'url': 'https://t.co/uP5PYzWhHL',
'expanded_url': 'https://twitter.com/pikotaro_ppap/status/823362903805804546/photo/1',
'sizes': {
'large': {
'resize': 'fit',
'h': 1536,
'w': 2048
},
'small': {
'resize': 'fit',
'h': 510,
'w': 680
},
'medium': {
'resize': 'fit',
'h': 900,
'w': 1200
},
'thumb': {
'resize': 'crop',
'h': 150,
'w': 150
}
},
'media_url_https': 'https://pbs.twimg.com/media/C20sL--VIAEra5v.jpg',
'indices': [17, 40],
'id': 823362891273281537
}]
},
##### ここまでstatus/retweeted_status/entities #####
retweet_count=133,
possibly_sensitive_appealable=False,
in_reply_to_status_id_str=None,
truncated=False,
in_reply_to_status_id=None,
id_str='823362903805804546',
favorited=False,
##### ここからstatus/retweeted_status/_json #####
_json={
'favorite_count': 855,
'possibly_sensitive': False,
##### ここからstatus/retweeted_status/_json/extended_entities #####
'extended_entities': {
'media': [{
'type': 'photo',
'id_str': '823362891273281537',
'media_url': 'http://pbs.twimg.com/media/C20sL--VIAEra5v.jpg',
'display_url': 'pic.twitter.com/uP5PYzWhHL',
'url': 'https://t.co/uP5PYzWhHL',
'expanded_url': 'https://twitter.com/pikotaro_ppap/status/823362903805804546/photo/1',
'sizes': {
'large': {
'resize': 'fit',
'h': 1536,
'w': 2048
},
'small': {
'resize': 'fit',
'h': 510,
'w': 680
},
'medium': {
'resize': 'fit',
'h': 900,
'w': 1200
},
'thumb': {
'resize': 'crop',
'h': 150,
'w': 150
}
},
'media_url_https': 'https://pbs.twimg.com/media/C20sL--VIAEra5v.jpg',
'indices': [17, 40],
'id': 823362891273281537
}]
},
##### ここまでstatus/retweeted_status/_json/extended_entities #####
'coordinates': None,
'source': '<a href="http://twitter.com/download/iphone" rel="nofollow">Twitter for iPhone</a>',
'text': 'PONで華原朋美様とお写真ピコ! https://t.co/uP5PYzWhHL',
##### ここからstatus/retweeted_status/_json/user #####
'user': {
'time_zone': None,
'description': '(OFFICIAL)シンガーソングライタ ー「ピコ太郎」と、申しやすっ。目指せ紅白歌合戦とサマソニ。リスペクトシンガー→恩人ジャスティンビーバー、クラフトワーク、M.I.A、杏里、石川さゆり、アリアナグランデ For international inquiries:ppap-world@av.avex.co.jp',
'following': False,
'profile_background_image_url': None,
'listed_count': 385,
'is_translation_enabled': False,
'profile_background_tile': False,
'profile_text_color': '333333',
'profile_image_url': 'http://pbs.twimg.com/profile_images/822403634931433472/udAnDIVV_normal.jpg',
'favourites_count': 3,
'has_extended_profile': True,
'notifications': False,
'location': '',
'profile_use_background_image': True,
'name': 'ピコ太郎(PIKOTARO)(公式)',
'created_at': 'Mon Jun 27 07:24:13 +0000 2016',
'profile_image_url_https': 'https://pbs.twimg.com/profile_images/822403634931433472/udAnDIVV_normal.jpg',
'screen_name': 'pikotaro_ppap',
'protected': False,
'profile_background_color': 'F5F8FA',
'url': 'https://t.co/02EEvEpRWi',
'follow_request_sent': False,
'friends_count': 97,
'default_profile': True,
'default_profile_image': False,
'followers_count': 88696,
'translator_type': 'none',
'id_str': '747329673659482113',
'statuses_count': 1210,
'contributors_enabled': False,
'profile_link_color': '1DA1F2',
'is_translator': False,
'id': 747329673659482113,
'entities': {
'description': {'urls': []},
'url': {
'urls': [{
'display_url': 'm.youtube.com/channel/UCKpIO…',
'expanded_url': 'https://m.youtube.com/channel/UCKpIOnsk-gcwHXIzuk24ExA',
'url': 'https://t.co/02EEvEpRWi',
'indices': [0, 23]
}]
}
},
'geo_enabled': False,
'profile_sidebar_fill_color': 'DDEEF6',
'profile_banner_url': 'https://pbs.twimg.com/profile_banners/747329673659482113/1484911282',
'verified': False,
'profile_background_image_url_https': None,
'lang': 'en',
'utc_offset': None,
'profile_sidebar_border_color': 'C0DEED'
},
##### ここまでstatus/retweeted_status/_json/user #####
'contributors': None,
'created_at': 'Mon Jan 23 02:53:08 +0000 2017',
'truncated': False,
'retweeted': True,
'in_reply_to_screen_name': None,
'is_quote_status': False,
'in_reply_to_user_id': None,
'id_str': '823362903805804546',
'retweet_count': 133,
'possibly_sensitive_appealable': False,
'in_reply_to_status_id_str': None,
'id': 823362903805804546,
'in_reply_to_status_id': None,
##### ここからstatus/retweeted_status/_json/entities #####
'entities': {
'urls': [],
'user_mentions': [],
'symbols': [],
'hashtags': [],
'media': [{
'type': 'photo',
'id_str': '823362891273281537',
'media_url': 'http://pbs.twimg.com/media/C20sL--VIAEra5v.jpg',
'display_url': 'pic.twitter.com/uP5PYzWhHL',
'url': 'https://t.co/uP5PYzWhHL',
'expanded_url': 'https://twitter.com/pikotaro_ppap/status/823362903805804546/photo/1',
'sizes': {
'large': {
'resize': 'fit',
'h': 1536,
'w': 2048
},
'small': {
'resize': 'fit',
'h': 510,
'w': 680
},
'medium': {
'resize': 'fit',
'h': 900,
'w': 1200
},
'thumb': {
'resize': 'crop',
'h': 150,
'w': 150
}
},
'media_url_https': 'https://pbs.twimg.com/media/C20sL--VIAEra5v.jpg',
'indices': [17, 40],
'id': 823362891273281537
}]
},
##### ここまでstatus/retweeted_status/_json/entities #####
'favorited': False,
'in_reply_to_user_id_str': None,
'lang': 'ja',
'place': None,
'geo': None
},
##### ここまでstatus/retweeted_status/_json #####
lang='ja',
place=None,
geo=None
),
##### ここまでstatus/retweeted_status #####
retweet_count=133,
possibly_sensitive_appealable=False,
in_reply_to_status_id_str=None,
truncated=False,
in_reply_to_status_id=None,
id_str='823594183499780096',
favorited=False,
##### ここからstatus/_json #####
_json={
'favorite_count': 0,
'possibly_sensitive': False,
##### ここからstatus/_json/extended_entities #####
'extended_entities': {
'media': [{
'type': 'photo',
'media_url': 'http://pbs.twimg.com/media/C20sL--VIAEra5v.jpg',
'source_user_id': 747329673659482113,
'source_user_id_str': '747329673659482113',
'display_url': 'pic.twitter.com/uP5PYzWhHL',
'media_url_https': 'https://pbs.twimg.com/media/C20sL--VIAEra5v.jpg',
'sizes': {
'large': {
'resize': 'fit',
'h': 1536,
'w': 2048
},
'small': {
'resize': 'fit',
'h': 510,
'w': 680
},
'medium': {
'resize': 'fit',
'h': 900,
'w': 1200
},
'thumb': {
'resize': 'crop',
'h': 150,
'w': 150
}
},
'indices': [36, 59],
'id_str': '823362891273281537',
'source_status_id_str': '823362903805804546',
'source_status_id': 823362903805804546,
'expanded_url': 'https://twitter.com/pikotaro_ppap/status/823362903805804546/photo/1',
'id': 823362891273281537,
'url': 'https://t.co/uP5PYzWhHL'
}]
},
##### ここまでstatus/_json/extended_entities #####
'coordinates': None,
'source': '<a href="http://itunes.apple.com/us/app/twitter/id409789998?mt=12" rel="nofollow">Twitter for Mac</a>',
'text': 'RT @pikotaro_ppap: PONで華原朋美様とお写真ピコ! https://t.co/uP5PYzWhHL',
##### ここからstatus/_json/user #####
'user': {
'time_zone': 'Tokyo',
'description': '統計学とプログラミングの勉強ブログを書いています(私は初心者なので専門的なものではない)。剣道初心者で、とりあえず1級審査に向けて稽古中。TX通勤。博士(工学)。',
'following': False,
'profile_background_image_url': 'http://abs.twimg.com/images/themes/theme1/bg.png',
'listed_count': 38,
'is_translation_enabled': True,
'profile_background_tile': False,
'profile_text_color': '333333',
'profile_image_url': 'http://pbs.twimg.com/profile_images/517659681313923073/_m3UMIAR_normal.jpeg',
'favourites_count': 1088,
'notifications': False,
'location': 'つくば市',
'profile_use_background_image': True,
'name': 'bata',
'created_at': 'Sat Feb 26 04:59:47 +0000 2011',
'profile_image_url_https': 'https://pbs.twimg.com/profile_images/517659681313923073/_m3UMIAR_normal.jpeg',
'screen_name': 'statsbeginner',
'protected': False,
'profile_background_color': 'C0DEED',
'url': 'https://t.co/6HCF2FYowE',
'follow_request_sent': False,
'friends_count': 775,
'default_profile': True,
'default_profile_image': False,
'followers_count': 1873,
'translator_type': 'none',
'id_str': '257791390',
'statuses_count': 13015,
'contributors_enabled': False,
'profile_link_color': '1DA1F2',
'is_translator': False,
'id': 257791390,
'entities': {
'description': {'urls': []},
'url': {
'urls': [{
'display_url': 'statsbeginner.hatenablog.com',
'expanded_url': 'http://statsbeginner.hatenablog.com/',
'url': 'https://t.co/6HCF2FYowE',
'indices': [0, 23]
}]
}
},
'geo_enabled': True,
'profile_sidebar_fill_color': 'DDEEF6',
'has_extended_profile': False,
'verified': False,
'profile_background_image_url_https': 'https://abs.twimg.com/images/themes/theme1/bg.png',
'lang': 'ja',
'utc_offset': 32400,
'profile_sidebar_border_color': 'C0DEED'
},
##### ここまでstatus/_json/user #####
'contributors': None,
'created_at': 'Mon Jan 23 18:12:09 +0000 2017',
'truncated': False,
'retweeted': True,
'in_reply_to_screen_name': None,
'is_quote_status': False,
'in_reply_to_user_id': None,
'id_str': '823594183499780096',
##### ここからstatus/_json/retweeted_status #####
'retweeted_status': {
'favorite_count': 855,
'possibly_sensitive': False,
##### ここからstatus/_json/retweeted_status/extended_entities #####
'extended_entities': {
'media': [{
'type': 'photo',
'id_str': '823362891273281537',
'media_url': 'http://pbs.twimg.com/media/C20sL--VIAEra5v.jpg',
'display_url': 'pic.twitter.com/uP5PYzWhHL',
'url': 'https://t.co/uP5PYzWhHL',
'expanded_url': 'https://twitter.com/pikotaro_ppap/status/823362903805804546/photo/1',
'sizes': {
'large': {
'resize': 'fit',
'h': 1536,
'w': 2048
},
'small': {
'resize': 'fit',
'h': 510,
'w': 680
},
'medium': {
'resize': 'fit',
'h': 900,
'w': 1200
},
'thumb': {
'resize': 'crop',
'h': 150,
'w': 150
}
},
'media_url_https': 'https://pbs.twimg.com/media/C20sL--VIAEra5v.jpg',
'indices': [17, 40],
'id': 823362891273281537
}]
},
##### ここまでstatus/_json/retweeted_status/extended_entities #####
'coordinates': None,
'source': '<a href="http://twitter.com/download/iphone" rel="nofollow">Twitter for iPhone</a>',
'text': 'PONで華原朋美様とお写真ピコ! https://t.co/uP5PYzWhHL',
##### ここからstatus/_json/retweeted_status/user #####
'user': {
'time_zone': None,
'description': '(OFFICIAL)シンガーソングライタ ー「ピコ太郎」と、申しやすっ。目指せ紅白歌合戦とサマソニ。リスペクトシンガー→恩人ジャスティンビーバー、クラフトワーク、M.I.A、杏里、石川さゆり、アリアナグランデ For international inquiries:ppap-world@av.avex.co.jp',
'following': False,
'profile_background_image_url': None,
'listed_count': 385,
'is_translation_enabled': False,
'profile_background_tile': False,
'profile_text_color': '333333',
'profile_image_url': 'http://pbs.twimg.com/profile_images/822403634931433472/udAnDIVV_normal.jpg',
'favourites_count': 3,
'has_extended_profile': True,
'notifications': False,
'location': '',
'profile_use_background_image': True,
'name': 'ピコ太郎(PIKOTARO)(公式)',
'created_at': 'Mon Jun 27 07:24:13 +0000 2016',
'profile_image_url_https': 'https://pbs.twimg.com/profile_images/822403634931433472/udAnDIVV_normal.jpg',
'screen_name': 'pikotaro_ppap',
'protected': False,
'profile_background_color': 'F5F8FA',
'url': 'https://t.co/02EEvEpRWi',
'follow_request_sent': False,
'friends_count': 97,
'default_profile': True,
'default_profile_image': False,
'followers_count': 88696,
'translator_type': 'none',
'id_str': '747329673659482113',
'statuses_count': 1210,
'contributors_enabled': False,
'profile_link_color': '1DA1F2',
'is_translator': False,
'id': 747329673659482113,
'entities': {
'description': {'urls': []},
'url': {
'urls': [{
'display_url': 'm.youtube.com/channel/UCKpIO…',
'expanded_url': 'https://m.youtube.com/channel/UCKpIOnsk-gcwHXIzuk24ExA',
'url': 'https://t.co/02EEvEpRWi',
'indices': [0, 23]
}]
}
},
'geo_enabled': False,
'profile_sidebar_fill_color': 'DDEEF6',
'profile_banner_url': 'https://pbs.twimg.com/profile_banners/747329673659482113/1484911282',
'verified': False,
'profile_background_image_url_https': None,
'lang': 'en',
'utc_offset': None,
'profile_sidebar_border_color': 'C0DEED'
},
##### ここまでstatus/_json/retweeted_status/user #####
'contributors': None,
'created_at': 'Mon Jan 23 02:53:08 +0000 2017',
'truncated': False,
'retweeted': True,
'in_reply_to_screen_name': None,
'is_quote_status': False,
'in_reply_to_user_id': None,
'id_str': '823362903805804546',
'retweet_count': 133,
'possibly_sensitive_appealable': False,
'in_reply_to_status_id_str': None,
'id': 823362903805804546,
'in_reply_to_status_id': None,
##### ここからstatus/_json/retweeted_status/entities #####
'entities': {
'urls': [],
'user_mentions': [],
'symbols': [],
'hashtags': [],
'media': [{
'type': 'photo',
'id_str': '823362891273281537',
'media_url': 'http://pbs.twimg.com/media/C20sL--VIAEra5v.jpg',
'display_url': 'pic.twitter.com/uP5PYzWhHL',
'url': 'https://t.co/uP5PYzWhHL',
'expanded_url': 'https://twitter.com/pikotaro_ppap/status/823362903805804546/photo/1',
'sizes': {
'large': {
'resize': 'fit',
'h': 1536,
'w': 2048
},
'small': {
'resize': 'fit',
'h': 510,
'w': 680
},
'medium': {
'resize': 'fit',
'h': 900,
'w': 1200
},
'thumb': {
'resize': 'crop',
'h': 150,
'w': 150
}
},
'media_url_https': 'https://pbs.twimg.com/media/C20sL--VIAEra5v.jpg',
'indices': [17, 40],
'id': 823362891273281537
}]
},
##### ここまでstatus/_json/retweeted_status/entities #####
'favorited': False,
'in_reply_to_user_id_str': None,
'lang': 'ja',
'place': None,
'geo': None
},
##### ここまでstatus/_json/retweeted_status #####
'retweet_count': 133,
'possibly_sensitive_appealable': False,
'in_reply_to_status_id_str': None,
'id': 823594183499780096,
'in_reply_to_status_id': None,
##### ここからstatus/_json/entities #####
'entities': {
'urls': [],
'user_mentions': [{
'id_str': '747329673659482113',
'id': 747329673659482113,
'name': 'ピコ太郎(PIKOTARO)(公式)',
'indices': [3, 17],
'screen_name': 'pikotaro_ppap'
}],
'symbols': [],
'hashtags': [],
'media': [{
'type': 'photo',
'media_url': 'http://pbs.twimg.com/media/C20sL--VIAEra5v.jpg',
'source_user_id': 747329673659482113,
'source_user_id_str': '747329673659482113',
'display_url': 'pic.twitter.com/uP5PYzWhHL',
'media_url_https': 'https://pbs.twimg.com/media/C20sL--VIAEra5v.jpg',
'sizes': {
'large': {
'resize': 'fit',
'h': 1536,
'w': 2048
},
'small': {
'resize': 'fit',
'h': 510,
'w': 680
},
'medium': {
'resize': 'fit',
'h': 900,
'w': 1200
},
'thumb': {
'resize': 'crop',
'h': 150,
'w': 150
}
},
'indices': [36, 59],
'id_str': '823362891273281537',
'source_status_id_str': '823362903805804546',
'source_status_id': 823362903805804546,
'expanded_url': 'https://twitter.com/pikotaro_ppap/status/823362903805804546/photo/1',
'id': 823362891273281537,
'url': 'https://t.co/uP5PYzWhHL'
}]
},
##### ここまでstatus/_json/entities #####
'favorited': False,
'in_reply_to_user_id_str': None,
'lang': 'ja',
'place': None,
'geo': None
},
##### ここまでstatus/_json #####
lang='ja',
place=None,
geo=None
)