【tweepy】ツイートを取得する
tweepyの「user_timeline」を使用して自分のツイートを取得してみます。
test.py
import tweepy consumer_key = '★★★' consumer_secret = '★★★' access_token = '★★★' access_token_secret = '★★★' auth = tweepy.OAuthHandler(consumer_key, consumer_secret) auth.set_access_token(access_token, access_token_secret) api = tweepy.API(auth) # ツイートを取得 list = api.user_timeline(screen_name="@ginnanneriko") # 表示 for x in list: print(x)
実行してみる
>python test.py Status(_api=<tweepy.api.API object at 0x0000026314827D90>, _json={'created_at': 'Thu Jul 21 01:50:07 +0000 2022', 'id': 1549934715247161344, 'id_str': '1549934715247161344', 'text': 'TwitterAPIのElevatedアクセスとれてた。申請したとき遷移後の画面 が真っ白になったから失敗したと思ってたよ。', 'truncated': False, 'entities': {'hashtags': [], 'symbols': [], 'user_mentions': [], 'urls': []}, 'source': '<a href="https://mobile.twitter.com" rel="nofollow">Twitter Web App</a>', 'in_reply_to_status_id': None, 'in_reply_to_status_id_str': None, 'in_reply_to_user_id': None, 'in_reply_to_user_id_str': None, 'in_reply_to_screen_name': None, 'user': {'id': 582942202, 'id_str': '582942202', 'name': '銀杏ネリコ', 'screen_name': 'ginnanneriko', 'location': '', 'description': 'つぶやき処', 'url': 'https://t.co/ICaf2LZC3S', 'entities': {'url': {'urls': [{'url': 'https://t.co/ICaf2LZC3S', 'expanded_url': 'https://opensea.io/Neriko', 'display_url': 'opensea.io/Neriko', 'indices': [0, 23]}]}, 'description': {'urls': []}}, 'protected': False, 'followers_count': 8, 'friends_count': 81, 'listed_count': 1, 'created_at': 'Thu May 17 16:48:43 +0000 2012', 'favourites_count': 439, 'utc_offset': None, 'time_zone': None, 'geo_enabled': True, 'verified': False, 'statuses_count': 163, 'lang': None, 'contributors_enabled': False, 'is_translator': False, 'is_translation_enabled': False, 'profile_background_color': 'EEEEEE', 'profile_background_image_url': 'http://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_image_url_https': 'https://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_tile': True, 'profile_image_url': 'http://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', 'profile_image_url_https': 'https://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', 'profile_banner_url': 'https://pbs.twimg.com/profile_banners/582942202/1363092627', 'profile_link_color': 'F1043A', 'profile_sidebar_border_color': 'FFFFFF', 'profile_sidebar_fill_color': '91AE8F', 'profile_text_color': 'C85945', 'profile_use_background_image': False, 'has_extended_profile': False, 'default_profile': False, 'default_profile_image': False, 'following': False, 'follow_request_sent': False, 'notifications': False, 'translator_type': 'none', 'withheld_in_countries': []}, 'geo': None, 'coordinates': None, 'place': None, 'contributors': None, 'is_quote_status': False, 'retweet_count': 0, 'favorite_count': 0, 'favorited': False, 'retweeted': False, 'lang': 'ja'}, created_at=datetime.datetime(2022, 7, 21, 1, 50, 7, tzinfo=datetime.timezone.utc), id=1549934715247161344, id_str='1549934715247161344', text='TwitterAPIのElevatedアクセスとれてた。申請したとき遷移後の画面が真っ白になったから失敗したと思ってたよ。', truncated=False, entities={'hashtags': [], 'symbols': [], 'user_mentions': [], 'urls': []}, source='Twitter Web App', source_url='https://mobile.twitter.com', in_reply_to_status_id=None, in_reply_to_status_id_str=None, in_reply_to_user_id=None, in_reply_to_user_id_str=None, in_reply_to_screen_name=None, author=User(_api=<tweepy.api.API object at 0x0000026314827D90>, _json={'id': 582942202, 'id_str': '582942202', 'name': '銀杏ネリコ', 'screen_name': 'ginnanneriko', 'location': '', 'description': 'つぶやき処', 'url': 'https://t.co/ICaf2LZC3S', 'entities': {'url': {'urls': [{'url': 'https://t.co/ICaf2LZC3S', 'expanded_url': 'https://opensea.io/Neriko', 'display_url': 'opensea.io/Neriko', 'indices': [0, 23]}]}, 'description': {'urls': []}}, 'protected': False, 'followers_count': 8, 'friends_count': 81, 'listed_count': 1, 'created_at': 'Thu May 17 16:48:43 +0000 2012', 'favourites_count': 439, 'utc_offset': None, 'time_zone': None, 'geo_enabled': True, 'verified': False, 'statuses_count': 163, 'lang': None, 'contributors_enabled': False, 'is_translator': False, 'is_translation_enabled': False, 'profile_background_color': 'EEEEEE', 'profile_background_image_url': 'http://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_image_url_https': 'https://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_tile': True, 'profile_image_url': 'http://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', 'profile_image_url_https': 'https://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', 'profile_banner_url': 'https://pbs.twimg.com/profile_banners/582942202/1363092627', 'profile_link_color': 'F1043A', 'profile_sidebar_border_color': 'FFFFFF', 'profile_sidebar_fill_color': '91AE8F', 'profile_text_color': 'C85945', 'profile_use_background_image': False, 'has_extended_profile': False, 'default_profile': False, 'default_profile_image': False, 'following': False, 'follow_request_sent': False, 'notifications': False, 'translator_type': 'none', 'withheld_in_countries': []}, id=582942202, id_str='582942202', name='銀杏ネリコ', screen_name='ginnanneriko', location='', description='つぶやき処', url='https://t.co/ICaf2LZC3S', entities={'url': {'urls': [{'url': 'https://t.co/ICaf2LZC3S', 'expanded_url': 'https://opensea.io/Neriko', 'display_url': 'opensea.io/Neriko', 'indices': [0, 23]}]}, 'description': {'urls': []}}, protected=False, followers_count=8, friends_count=81, listed_count=1, created_at=datetime.datetime(2012, 5, 17, 16, 48, 43, tzinfo=datetime.timezone.utc), favourites_count=439, utc_offset=None, time_zone=None, geo_enabled=True, verified=False, statuses_count=163, lang=None, contributors_enabled=False, is_translator=False, is_translation_enabled=False, profile_background_color='EEEEEE', profile_background_image_url='http://abs.twimg.com/images/themes/theme1/bg.png', profile_background_image_url_https='https://abs.twimg.com/images/themes/theme1/bg.png', profile_background_tile=True, profile_image_url='http://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', profile_image_url_https='https://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', profile_banner_url='https://pbs.twimg.com/profile_banners/582942202/1363092627', profile_link_color='F1043A', profile_sidebar_border_color='FFFFFF', profile_sidebar_fill_color='91AE8F', profile_text_color='C85945', profile_use_background_image=False, has_extended_profile=False, default_profile=False, default_profile_image=False, following=False, follow_request_sent=False, notifications=False, translator_type='none', withheld_in_countries=[]), user=User(_api=<tweepy.api.API object at 0x0000026314827D90>, _json={'id': 582942202, 'id_str': '582942202', 'name': '銀杏ネリコ', 'screen_name': 'ginnanneriko', 'location': '', 'description': 'つぶやき処', 'url': 'https://t.co/ICaf2LZC3S', 'entities': {'url': {'urls': [{'url': 'https://t.co/ICaf2LZC3S', 'expanded_url': 'https://opensea.io/Neriko', 'display_url': 'opensea.io/Neriko', 'indices': [0, 23]}]}, 'description': {'urls': []}}, 'protected': False, 'followers_count': 8, 'friends_count': 81, 'listed_count': 1, 'created_at': 'Thu May 17 16:48:43 +0000 2012', 'favourites_count': 439, 'utc_offset': None, 'time_zone': None, 'geo_enabled': True, 'verified': False, 'statuses_count': 163, 'lang': None, 'contributors_enabled': False, 'is_translator': False, 'is_translation_enabled': False, 'profile_background_color': 'EEEEEE', 'profile_background_image_url': 'http://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_image_url_https': 'https://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_tile': True, 'profile_image_url': 'http://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', 'profile_image_url_https': 'https://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', 'profile_banner_url': 'https://pbs.twimg.com/profile_banners/582942202/1363092627', 'profile_link_color': 'F1043A', 'profile_sidebar_border_color': 'FFFFFF', 'profile_sidebar_fill_color': '91AE8F', 'profile_text_color': 'C85945', 'profile_use_background_image': False, 'has_extended_profile': False, 'default_profile': False, 'default_profile_image': False, 'following': False, 'follow_request_sent': False, 'notifications': False, 'translator_type': 'none', 'withheld_in_countries': []}, id=582942202, id_str='582942202', name='銀杏ネリコ', screen_name='ginnanneriko', location='', description='つ ぶやき処', url='https://t.co/ICaf2LZC3S', entities={'url': {'urls': [{'url': 'https://t.co/ICaf2LZC3S', 'expanded_url': 'https://opensea.io/Neriko', 'display_url': 'opensea.io/Neriko', 'indices': [0, 23]}]}, 'description': {'urls': []}}, protected=False, followers_count=8, friends_count=81, listed_count=1, created_at=datetime.datetime(2012, 5, 17, 16, 48, 43, tzinfo=datetime.timezone.utc), favourites_count=439, utc_offset=None, time_zone=None, geo_enabled=True, verified=False, statuses_count=163, lang=None, contributors_enabled=False, is_translator=False, is_translation_enabled=False, profile_background_color='EEEEEE', profile_background_image_url='http://abs.twimg.com/images/themes/theme1/bg.png', profile_background_image_url_https='https://abs.twimg.com/images/themes/theme1/bg.png', profile_background_tile=True, profile_image_url='http://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', profile_image_url_https='https://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', profile_banner_url='https://pbs.twimg.com/profile_banners/582942202/1363092627', profile_link_color='F1043A', profile_sidebar_border_color='FFFFFF', profile_sidebar_fill_color='91AE8F', profile_text_color='C85945', profile_use_background_image=False, has_extended_profile=False, default_profile=False, default_profile_image=False, following=False, follow_request_sent=False, notifications=False, translator_type='none', withheld_in_countries=[]), geo=None, coordinates=None, place=None, contributors=None, is_quote_status=False, retweet_count=0, favorite_count=0, favorited=False, retweeted=False, lang='ja') Status(_api=<tweepy.api.API object at 0x0000026314827D90>, _json={'created_at': 'Mon Jul 18 04:59:48 +0000 2022', 'id': 1548895287313240064, 'id_str': '1548895287313240064', 'text': '自転車があれば徒歩より楽に遠くに行けるもんだと思ってたけど長く 苦しい道のりになっただけだった', 'truncated': False, 'entities': {'hashtags': [], 'symbols': [], 'user_mentions': [], 'urls': []}, 'source': '<a href="http://twitter.com/download/android" rel="nofollow">Twitter for Android</a>', 'in_reply_to_status_id': None, 'in_reply_to_status_id_str': None, 'in_reply_to_user_id': None, 'in_reply_to_user_id_str': None, 'in_reply_to_screen_name': None, 'user': {'id': 582942202, 'id_str': '582942202', 'name': '銀杏ネリコ', 'screen_name': 'ginnanneriko', 'location': '', 'description': 'つぶやき処', 'url': 'https://t.co/ICaf2LZC3S', 'entities': {'url': {'urls': [{'url': 'https://t.co/ICaf2LZC3S', 'expanded_url': 'https://opensea.io/Neriko', 'display_url': 'opensea.io/Neriko', 'indices': [0, 23]}]}, 'description': {'urls': []}}, 'protected': False, 'followers_count': 8, 'friends_count': 81, 'listed_count': 1, 'created_at': 'Thu May 17 16:48:43 +0000 2012', 'favourites_count': 439, 'utc_offset': None, 'time_zone': None, 'geo_enabled': True, 'verified': False, 'statuses_count': 163, 'lang': None, 'contributors_enabled': False, 'is_translator': False, 'is_translation_enabled': False, 'profile_background_color': 'EEEEEE', 'profile_background_image_url': 'http://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_image_url_https': 'https://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_tile': True, 'profile_image_url': 'http://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', 'profile_image_url_https': 'https://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', 'profile_banner_url': 'https://pbs.twimg.com/profile_banners/582942202/1363092627', 'profile_link_color': 'F1043A', 'profile_sidebar_border_color': 'FFFFFF', 'profile_sidebar_fill_color': '91AE8F', 'profile_text_color': 'C85945', 'profile_use_background_image': False, 'has_extended_profile': False, 'default_profile': False, 'default_profile_image': False, 'following': False, 'follow_request_sent': False, 'notifications': False, 'translator_type': 'none', 'withheld_in_countries': []}, 'geo': None, 'coordinates': None, 'place': None, 'contributors': None, 'is_quote_status': False, 'retweet_count': 0, 'favorite_count': 0, 'favorited': False, 'retweeted': False, 'lang': 'ja'}, created_at=datetime.datetime(2022, 7, 18, 4, 59, 48, tzinfo=datetime.timezone.utc), id=1548895287313240064, id_str='1548895287313240064', text='自転車があれば徒歩より楽に遠くに行けるもんだと思ってたけど長く苦しい道のりになっただけだった', truncated=False, entities={'hashtags': [], 'symbols': [], 'user_mentions': [], 'urls': []}, source='Twitter for Android', source_url='http://twitter.com/download/android', in_reply_to_status_id=None, in_reply_to_status_id_str=None, in_reply_to_user_id=None, in_reply_to_user_id_str=None, in_reply_to_screen_name=None, author=User(_api=<tweepy.api.API object at 0x0000026314827D90>, _json={'id': 582942202, 'id_str': '582942202', 'name': '銀杏ネリコ', 'screen_name': 'ginnanneriko', 'location': '', 'description': 'つぶやき処', 'url': 'https://t.co/ICaf2LZC3S', 'entities': {'url': {'urls': [{'url': 'https://t.co/ICaf2LZC3S', 'expanded_url': 'https://opensea.io/Neriko', 'display_url': 'opensea.io/Neriko', 'indices': [0, 23]}]}, 'description': {'urls': []}}, 'protected': False, 'followers_count': 8, 'friends_count': 81, 'listed_count': 1, 'created_at': 'Thu May 17 16:48:43 +0000 2012', 'favourites_count': 439, 'utc_offset': None, 'time_zone': None, 'geo_enabled': True, 'verified': False, 'statuses_count': 163, 'lang': None, 'contributors_enabled': False, 'is_translator': False, 'is_translation_enabled': False, 'profile_background_color': 'EEEEEE', 'profile_background_image_url': 'http://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_image_url_https': 'https://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_tile': True, 'profile_image_url': 'http://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', 'profile_image_url_https': 'https://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', 'profile_banner_url': 'https://pbs.twimg.com/profile_banners/582942202/1363092627', 'profile_link_color': 'F1043A', 'profile_sidebar_border_color': 'FFFFFF', 'profile_sidebar_fill_color': '91AE8F', 'profile_text_color': 'C85945', 'profile_use_background_image': False, 'has_extended_profile': False, 'default_profile': False, 'default_profile_image': False, 'following': False, 'follow_request_sent': False, 'notifications': False, 'translator_type': 'none', 'withheld_in_countries': []}, id=582942202, id_str='582942202', name='銀杏ネリコ', screen_name='ginnanneriko', location='', description='つ ぶやき処', url='https://t.co/ICaf2LZC3S', entities={'url': {'urls': [{'url': 'https://t.co/ICaf2LZC3S', 'expanded_url': 'https://opensea.io/Neriko', 'display_url': 'opensea.io/Neriko', 'indices': [0, 23]}]}, 'description': {'urls': []}}, protected=False, followers_count=8, friends_count=81, listed_count=1, created_at=datetime.datetime(2012, 5, 17, 16, 48, 43, tzinfo=datetime.timezone.utc), favourites_count=439, utc_offset=None, time_zone=None, geo_enabled=True, verified=False, statuses_count=163, lang=None, contributors_enabled=False, is_translator=False, is_translation_enabled=False, profile_background_color='EEEEEE', profile_background_image_url='http://abs.twimg.com/images/themes/theme1/bg.png', profile_background_image_url_https='https://abs.twimg.com/images/themes/theme1/bg.png', profile_background_tile=True, profile_image_url='http://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', profile_image_url_https='https://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', profile_banner_url='https://pbs.twimg.com/profile_banners/582942202/1363092627', profile_link_color='F1043A', profile_sidebar_border_color='FFFFFF', profile_sidebar_fill_color='91AE8F', profile_text_color='C85945', profile_use_background_image=False, has_extended_profile=False, default_profile=False, default_profile_image=False, following=False, follow_request_sent=False, notifications=False, translator_type='none', withheld_in_countries=[]), user=User(_api=<tweepy.api.API object at 0x0000026314827D90>, _json={'id': 582942202, 'id_str': '582942202', 'name': '銀杏ネ リコ', 'screen_name': 'ginnanneriko', 'location': '', 'description': 'つぶやき処', 'url': 'https://t.co/ICaf2LZC3S', 'entities': {'url': {'urls': [{'url': 'https://t.co/ICaf2LZC3S', 'expanded_url': 'https://opensea.io/Neriko', 'display_url': 'opensea.io/Neriko', 'indices': [0, 23]}]}, 'description': {'urls': []}}, 'protected': False, 'followers_count': 8, 'friends_count': 81, 'listed_count': 1, 'created_at': 'Thu May 17 16:48:43 +0000 2012', 'favourites_count': 439, 'utc_offset': None, 'time_zone': None, 'geo_enabled': True, 'verified': False, 'statuses_count': 163, 'lang': None, 'contributors_enabled': False, 'is_translator': False, 'is_translation_enabled': False, 'profile_background_color': 'EEEEEE', 'profile_background_image_url': 'http://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_image_url_https': 'https://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_tile': True, 'profile_image_url': 'http://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', 'profile_image_url_https': 'https://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', 'profile_banner_url': 'https://pbs.twimg.com/profile_banners/582942202/1363092627', 'profile_link_color': 'F1043A', 'profile_sidebar_border_color': 'FFFFFF', 'profile_sidebar_fill_color': '91AE8F', 'profile_text_color': 'C85945', 'profile_use_background_image': False, 'has_extended_profile': False, 'default_profile': False, 'default_profile_image': False, 'following': False, 'follow_request_sent': False, 'notifications': False, 'translator_type': 'none', 'withheld_in_countries': []}, id=582942202, id_str='582942202', name='銀杏ネリコ', screen_name='ginnanneriko', location='', description='つぶやき処', url='https://t.co/ICaf2LZC3S', entities={'url': {'urls': [{'url': 'https://t.co/ICaf2LZC3S', 'expanded_url': 'https://opensea.io/Neriko', 'display_url': 'opensea.io/Neriko', 'indices': [0, 23]}]}, 'description': {'urls': []}}, protected=False, followers_count=8, friends_count=81, listed_count=1, created_at=datetime.datetime(2012, 5, 17, 16, 48, 43, tzinfo=datetime.timezone.utc), favourites_count=439, utc_offset=None, time_zone=None, geo_enabled=True, verified=False, statuses_count=163, lang=None, contributors_enabled=False, is_translator=False, is_translation_enabled=False, profile_background_color='EEEEEE', profile_background_image_url='http://abs.twimg.com/images/themes/theme1/bg.png', profile_background_image_url_https='https://abs.twimg.com/images/themes/theme1/bg.png', profile_background_tile=True, profile_image_url='http://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', profile_image_url_https='https://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', profile_banner_url='https://pbs.twimg.com/profile_banners/582942202/1363092627', profile_link_color='F1043A', profile_sidebar_border_color='FFFFFF', profile_sidebar_fill_color='91AE8F', profile_text_color='C85945', profile_use_background_image=False, has_extended_profile=False, default_profile=False, default_profile_image=False, following=False, follow_request_sent=False, notifications=False, translator_type='none', withheld_in_countries=[]), geo=None, coordinates=None, place=None, contributors=None, is_quote_status=False, retweet_count=0, favorite_count=0, favorited=False, retweeted=False, lang='ja') Status(_api=<tweepy.api.API object at 0x0000026314827D90>, _json={'created_at': 'Sun Jul 17 10:56:09 +0000 2022', 'id': 1548622578599596032, 'id_str': '1548622578599596032', 'text': '鎌倉。あいかわらず美味しかったwoof curryと時間つぶしのために訪 れた長谷寺と光則寺。 https://t.co/C02BTUnT2n', 'truncated': False, 'entities': {'hashtags': [], 'symbols': [], 'user_mentions': [], 'urls': [], 'media': [{'id': 1548622549788999681, 'id_str': '1548622549788999681', 'indices': [47, 70], 'media_url': 'http://pbs.twimg.com/media/FX3QAQtVQAEtUjJ.jpg', 'media_url_https': 'https://pbs.twimg.com/media/FX3QAQtVQAEtUjJ.jpg', 'url': 'https://t.co/C02BTUnT2n', 'display_url': 'pic.twitter.com/C02BTUnT2n', 'expanded_url': 'https://twitter.com/ginnanneriko/status/1548622578599596032/photo/1', 'type': 'photo', 'sizes': {'thumb': {'w': 150, 'h': 150, 'resize': 'crop'}, 'large': {'w': 1616, 'h': 1080, 'resize': 'fit'}, 'small': {'w': 680, 'h': 454, 'resize': 'fit'}, 'medium': {'w': 1200, 'h': 802, 'resize': 'fit'}}}]}, 'extended_entities': {'media': [{'id': 1548622549788999681, 'id_str': '1548622549788999681', 'indices': [47, 70], 'media_url': 'http://pbs.twimg.com/media/FX3QAQtVQAEtUjJ.jpg', 'media_url_https': 'https://pbs.twimg.com/media/FX3QAQtVQAEtUjJ.jpg', 'url': 'https://t.co/C02BTUnT2n', 'display_url': 'pic.twitter.com/C02BTUnT2n', 'expanded_url': 'https://twitter.com/ginnanneriko/status/1548622578599596032/photo/1', 'type': 'photo', 'sizes': {'thumb': {'w': 150, 'h': 150, 'resize': 'crop'}, 'large': {'w': 1616, 'h': 1080, 'resize': 'fit'}, 'small': {'w': 680, 'h': 454, 'resize': 'fit'}, 'medium': {'w': 1200, 'h': 802, 'resize': 'fit'}}}, {'id': 1548622559322640384, 'id_str': '1548622559322640384', 'indices': [47, 70], 'media_url': 'http://pbs.twimg.com/media/FX3QA0OVEAARFvT.jpg', 'media_url_https': 'https://pbs.twimg.com/media/FX3QA0OVEAARFvT.jpg', 'url': 'https://t.co/C02BTUnT2n', 'display_url': 'pic.twitter.com/C02BTUnT2n', 'expanded_url': 'https://twitter.com/ginnanneriko/status/1548622578599596032/photo/1', 'type': 'photo', 'sizes': {'thumb': {'w': 150, 'h': 150, 'resize': 'crop'}, 'large': {'w': 1616, 'h': 1080, 'resize': 'fit'}, 'medium': {'w': 1200, 'h': 802, 'resize': 'fit'}, 'small': {'w': 680, 'h': 454, 'resize': 'fit'}}}, {'id': 1548622567891562496, 'id_str': '1548622567891562496', 'indices': [47, 70], 'media_url': 'http://pbs.twimg.com/media/FX3QBUJUcAANU2-.jpg', 'media_url_https': 'https://pbs.twimg.com/media/FX3QBUJUcAANU2-.jpg', 'url': 'https://t.co/C02BTUnT2n', 'display_url': 'pic.twitter.com/C02BTUnT2n', 'expanded_url': 'https://twitter.com/ginnanneriko/status/1548622578599596032/photo/1', 'type': 'photo', 'sizes': {'small': {'w': 680, 'h': 454, 'resize': 'fit'}, 'thumb': {'w': 150, 'h': 150, 'resize': 'crop'}, 'large': {'w': 1616, 'h': 1080, 'resize': 'fit'}, 'medium': {'w': 1200, 'h': 802, 'resize': 'fit'}}}]}, 'source': '<a href="http://twitter.com/download/android" rel="nofollow">Twitter for Android</a>', 'in_reply_to_status_id': None, 'in_reply_to_status_id_str': None, 'in_reply_to_user_id': None, 'in_reply_to_user_id_str': None, 'in_reply_to_screen_name': None, 'user': {'id': 582942202, 'id_str': '582942202', 'name': '銀杏ネリコ', 'screen_name': 'ginnanneriko', 'location': '', 'description': 'つぶやき処', 'url': 'https://t.co/ICaf2LZC3S', 'entities': {'url': {'urls': [{'url': 'https://t.co/ICaf2LZC3S', 'expanded_url': 'https://opensea.io/Neriko', 'display_url': 'opensea.io/Neriko', 'indices': [0, 23]}]}, 'description': {'urls': []}}, 'protected': False, 'followers_count': 8, 'friends_count': 81, 'listed_count': 1, 'created_at': 'Thu May 17 16:48:43 +0000 2012', 'favourites_count': 439, 'utc_offset': None, 'time_zone': None, 'geo_enabled': True, 'verified': False, 'statuses_count': 163, 'lang': None, 'contributors_enabled': False, 'is_translator': False, 'is_translation_enabled': False, 'profile_background_color': 'EEEEEE', 'profile_background_image_url': 'http://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_image_url_https': 'https://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_tile': True, 'profile_image_url': 'http://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', 'profile_image_url_https': 'https://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', 'profile_banner_url': 'https://pbs.twimg.com/profile_banners/582942202/1363092627', 'profile_link_color': 'F1043A', 'profile_sidebar_border_color': 'FFFFFF', 'profile_sidebar_fill_color': '91AE8F', 'profile_text_color': 'C85945', 'profile_use_background_image': False, 'has_extended_profile': False, 'default_profile': False, 'default_profile_image': False, 'following': False, 'follow_request_sent': False, 'notifications': False, 'translator_type': 'none', 'withheld_in_countries': []}, 'geo': None, 'coordinates': None, 'place': None, 'contributors': None, 'is_quote_status': False, 'retweet_count': 0, 'favorite_count': 0, 'favorited': False, 'retweeted': False, 'possibly_sensitive': False, 'lang': 'ja'}, created_at=datetime.datetime(2022, 7, 17, 10, 56, 9, tzinfo=datetime.timezone.utc), id=1548622578599596032, id_str='1548622578599596032', text='鎌倉。あいかわらず美味しかったwoof curryと時間つぶしのために訪れた長谷寺と光則寺。 https://t.co/C02BTUnT2n', truncated=False, entities={'hashtags': [], 'symbols': [], 'user_mentions': [], 'urls': [], 'media': [{'id': 1548622549788999681, 'id_str': '1548622549788999681', 'indices': [47, 70], 'media_url': 'http://pbs.twimg.com/media/FX3QAQtVQAEtUjJ.jpg', 'media_url_https': 'https://pbs.twimg.com/media/FX3QAQtVQAEtUjJ.jpg', 'url': 'https://t.co/C02BTUnT2n', 'display_url': 'pic.twitter.com/C02BTUnT2n', 'expanded_url': 'https://twitter.com/ginnanneriko/status/1548622578599596032/photo/1', 'type': 'photo', 'sizes': {'thumb': {'w': 150, 'h': 150, 'resize': 'crop'}, 'large': {'w': 1616, 'h': 1080, 'resize': 'fit'}, 'small': {'w': 680, 'h': 454, 'resize': 'fit'}, 'medium': {'w': 1200, 'h': 802, 'resize': 'fit'}}}]}, extended_entities={'media': [{'id': 1548622549788999681, 'id_str': '1548622549788999681', 'indices': [47, 70], 'media_url': 'http://pbs.twimg.com/media/FX3QAQtVQAEtUjJ.jpg', 'media_url_https': 'https://pbs.twimg.com/media/FX3QAQtVQAEtUjJ.jpg', 'url': 'https://t.co/C02BTUnT2n', 'display_url': 'pic.twitter.com/C02BTUnT2n', 'expanded_url': 'https://twitter.com/ginnanneriko/status/1548622578599596032/photo/1', 'type': 'photo', 'sizes': {'thumb': {'w': 150, 'h': 150, 'resize': 'crop'}, 'large': {'w': 1616, 'h': 1080, 'resize': 'fit'}, 'small': {'w': 680, 'h': 454, 'resize': 'fit'}, 'medium': {'w': 1200, 'h': 802, 'resize': 'fit'}}}, {'id': 1548622559322640384, 'id_str': '1548622559322640384', 'indices': [47, 70], 'media_url': 'http://pbs.twimg.com/media/FX3QA0OVEAARFvT.jpg', 'media_url_https': 'https://pbs.twimg.com/media/FX3QA0OVEAARFvT.jpg', 'url': 'https://t.co/C02BTUnT2n', 'display_url': 'pic.twitter.com/C02BTUnT2n', 'expanded_url': 'https://twitter.com/ginnanneriko/status/1548622578599596032/photo/1', 'type': 'photo', 'sizes': {'thumb': {'w': 150, 'h': 150, 'resize': 'crop'}, 'large': {'w': 1616, 'h': 1080, 'resize': 'fit'}, 'medium': {'w': 1200, 'h': 802, 'resize': 'fit'}, 'small': {'w': 680, 'h': 454, 'resize': 'fit'}}}, {'id': 1548622567891562496, 'id_str': '1548622567891562496', 'indices': [47, 70], 'media_url': 'http://pbs.twimg.com/media/FX3QBUJUcAANU2-.jpg', 'media_url_https': 'https://pbs.twimg.com/media/FX3QBUJUcAANU2-.jpg', 'url': 'https://t.co/C02BTUnT2n', 'display_url': 'pic.twitter.com/C02BTUnT2n', 'expanded_url': 'https://twitter.com/ginnanneriko/status/1548622578599596032/photo/1', 'type': 'photo', 'sizes': {'small': {'w': 680, 'h': 454, 'resize': 'fit'}, 'thumb': {'w': 150, 'h': 150, 'resize': 'crop'}, 'large': {'w': 1616, 'h': 1080, 'resize': 'fit'}, 'medium': {'w': 1200, 'h': 802, 'resize': 'fit'}}}]}, source='Twitter for Android', source_url='http://twitter.com/download/android', in_reply_to_status_id=None, in_reply_to_status_id_str=None, in_reply_to_user_id=None, in_reply_to_user_id_str=None, in_reply_to_screen_name=None, author=User(_api=<tweepy.api.API object at 0x0000026314827D90>, _json={'id': 582942202, 'id_str': '582942202', 'name': '銀杏ネリコ', 'screen_name': 'ginnanneriko', 'location': '', 'description': 'つぶやき処', 'url': 'https://t.co/ICaf2LZC3S', 'entities': {'url': {'urls': [{'url': 'https://t.co/ICaf2LZC3S', 'expanded_url': 'https://opensea.io/Neriko', 'display_url': 'opensea.io/Neriko', 'indices': [0, 23]}]}, 'description': {'urls': []}}, 'protected': False, 'followers_count': 8, 'friends_count': 81, 'listed_count': 1, 'created_at': 'Thu May 17 16:48:43 +0000 2012', 'favourites_count': 439, 'utc_offset': None, 'time_zone': None, 'geo_enabled': True, 'verified': False, 'statuses_count': 163, 'lang': None, 'contributors_enabled': False, 'is_translator': False, 'is_translation_enabled': False, 'profile_background_color': 'EEEEEE', 'profile_background_image_url': 'http://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_image_url_https': 'https://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_tile': True, 'profile_image_url': 'http://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', 'profile_image_url_https': 'https://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', 'profile_banner_url': 'https://pbs.twimg.com/profile_banners/582942202/1363092627', 'profile_link_color': 'F1043A', 'profile_sidebar_border_color': 'FFFFFF', 'profile_sidebar_fill_color': '91AE8F', 'profile_text_color': 'C85945', 'profile_use_background_image': False, 'has_extended_profile': False, 'default_profile': False, 'default_profile_image': False, 'following': False, 'follow_request_sent': False, 'notifications': False, 'translator_type': 'none', 'withheld_in_countries': []}, id=582942202, id_str='582942202', name='銀杏ネリコ', screen_name='ginnanneriko', location='', description='つぶやき処', url='https://t.co/ICaf2LZC3S', entities={'url': {'urls': [{'url': 'https://t.co/ICaf2LZC3S', 'expanded_url': 'https://opensea.io/Neriko', 'display_url': 'opensea.io/Neriko', 'indices': [0, 23]}]}, 'description': {'urls': []}}, protected=False, followers_count=8, friends_count=81, listed_count=1, created_at=datetime.datetime(2012, 5, 17, 16, 48, 43, tzinfo=datetime.timezone.utc), favourites_count=439, utc_offset=None, time_zone=None, geo_enabled=True, verified=False, statuses_count=163, lang=None, contributors_enabled=False, is_translator=False, is_translation_enabled=False, profile_background_color='EEEEEE', profile_background_image_url='http://abs.twimg.com/images/themes/theme1/bg.png', profile_background_image_url_https='https://abs.twimg.com/images/themes/theme1/bg.png', profile_background_tile=True, profile_image_url='http://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', profile_image_url_https='https://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', profile_banner_url='https://pbs.twimg.com/profile_banners/582942202/1363092627', profile_link_color='F1043A', profile_sidebar_border_color='FFFFFF', profile_sidebar_fill_color='91AE8F', profile_text_color='C85945', profile_use_background_image=False, has_extended_profile=False, default_profile=False, default_profile_image=False, following=False, follow_request_sent=False, notifications=False, translator_type='none', withheld_in_countries=[]), user=User(_api=<tweepy.api.API object at 0x0000026314827D90>, _json={'id': 582942202, 'id_str': '582942202', 'name': '銀杏ネリコ', 'screen_name': 'ginnanneriko', 'location': '', 'description': 'つぶやき処', 'url': 'https://t.co/ICaf2LZC3S', 'entities': {'url': {'urls': [{'url': 'https://t.co/ICaf2LZC3S', 'expanded_url': 'https://opensea.io/Neriko', 'display_url': 'opensea.io/Neriko', 'indices': [0, 23]}]}, 'description': {'urls': []}}, 'protected': False, 'followers_count': 8, 'friends_count': 81, 'listed_count': 1, 'created_at': 'Thu May 17 16:48:43 +0000 2012', 'favourites_count': 439, 'utc_offset': None, 'time_zone': None, 'geo_enabled': True, 'verified': False, 'statuses_count': 163, 'lang': None, 'contributors_enabled': False, 'is_translator': False, 'is_translation_enabled': False, 'profile_background_color': 'EEEEEE', 'profile_background_image_url': 'http://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_image_url_https': 'https://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_tile': True, 'profile_image_url': 'http://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', 'profile_image_url_https': 'https://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', 'profile_banner_url': 'https://pbs.twimg.com/profile_banners/582942202/1363092627', 'profile_link_color': 'F1043A', 'profile_sidebar_border_color': 'FFFFFF', 'profile_sidebar_fill_color': '91AE8F', 'profile_text_color': 'C85945', 'profile_use_background_image': False, 'has_extended_profile': False, 'default_profile': False, 'default_profile_image': False, 'following': False, 'follow_request_sent': False, 'notifications': False, 'translator_type': 'none', 'withheld_in_countries': []}, id=582942202, id_str='582942202', name='銀杏ネリコ', screen_name='ginnanneriko', location='', description='つぶやき処', url='https://t.co/ICaf2LZC3S', entities={'url': {'urls': [{'url': 'https://t.co/ICaf2LZC3S', 'expanded_url': 'https://opensea.io/Neriko', 'display_url': 'opensea.io/Neriko', 'indices': [0, 23]}]}, 'description': {'urls': []}}, protected=False, followers_count=8, friends_count=81, listed_count=1, created_at=datetime.datetime(2012, 5, 17, 16, 48, 43, tzinfo=datetime.timezone.utc), favourites_count=439, utc_offset=None, time_zone=None, geo_enabled=True, verified=False, statuses_count=163, lang=None, contributors_enabled=False, is_translator=False, is_translation_enabled=False, profile_background_color='EEEEEE', profile_background_image_url='http://abs.twimg.com/images/themes/theme1/bg.png', profile_background_image_url_https='https://abs.twimg.com/images/themes/theme1/bg.png', profile_background_tile=True, profile_image_url='http://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', profile_image_url_https='https://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', profile_banner_url='https://pbs.twimg.com/profile_banners/582942202/1363092627', profile_link_color='F1043A', profile_sidebar_border_color='FFFFFF', profile_sidebar_fill_color='91AE8F', profile_text_color='C85945', profile_use_background_image=False, has_extended_profile=False, default_profile=False, default_profile_image=False, following=False, follow_request_sent=False, notifications=False, translator_type='none', withheld_in_countries=[]), geo=None, coordinates=None, place=None, contributors=None, is_quote_status=False, retweet_count=0, favorite_count=0, favorited=False, retweeted=False, possibly_sensitive=False, lang='ja') Status(_api=<tweepy.api.API object at 0x0000026314827D90>, _json={'created_at': 'Sat Jul 16 16:28:59 +0000 2022', 'id': 1548343953103081473, 'id_str': '1548343953103081473', 'text': 'タオルケットとか掛け布団をくしゃっとしたものを枕にして寝るのが 一番寝やすい。こういう枕ないかなー。タオルを畳むやつじゃなくて。', 'truncated': False, 'entities': {'hashtags': [], 'symbols': [], 'user_mentions': [], 'urls': []}, 'source': '<a href="http://twitter.com/download/android" rel="nofollow">Twitter for Android</a>', 'in_reply_to_status_id': None, 'in_reply_to_status_id_str': None, 'in_reply_to_user_id': None, 'in_reply_to_user_id_str': None, 'in_reply_to_screen_name': None, 'user': {'id': 582942202, 'id_str': '582942202', 'name': '銀杏ネリコ', 'screen_name': 'ginnanneriko', 'location': '', 'description': 'つぶやき処', 'url': 'https://t.co/ICaf2LZC3S', 'entities': {'url': {'urls': [{'url': 'https://t.co/ICaf2LZC3S', 'expanded_url': 'https://opensea.io/Neriko', 'display_url': 'opensea.io/Neriko', 'indices': [0, 23]}]}, 'description': {'urls': []}}, 'protected': False, 'followers_count': 8, 'friends_count': 81, 'listed_count': 1, 'created_at': 'Thu May 17 16:48:43 +0000 2012', 'favourites_count': 439, 'utc_offset': None, 'time_zone': None, 'geo_enabled': True, 'verified': False, 'statuses_count': 163, 'lang': None, 'contributors_enabled': False, 'is_translator': False, 'is_translation_enabled': False, 'profile_background_color': 'EEEEEE', 'profile_background_image_url': 'http://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_image_url_https': 'https://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_tile': True, 'profile_image_url': 'http://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', 'profile_image_url_https': 'https://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', 'profile_banner_url': 'https://pbs.twimg.com/profile_banners/582942202/1363092627', 'profile_link_color': 'F1043A', 'profile_sidebar_border_color': 'FFFFFF', 'profile_sidebar_fill_color': '91AE8F', 'profile_text_color': 'C85945', 'profile_use_background_image': False, 'has_extended_profile': False, 'default_profile': False, 'default_profile_image': False, 'following': False, 'follow_request_sent': False, 'notifications': False, 'translator_type': 'none', 'withheld_in_countries': []}, 'geo': None, 'coordinates': None, 'place': None, 'contributors': None, 'is_quote_status': False, 'retweet_count': 0, 'favorite_count': 0, 'favorited': False, 'retweeted': False, 'lang': 'ja'}, created_at=datetime.datetime(2022, 7, 16, 16, 28, 59, tzinfo=datetime.timezone.utc), id=1548343953103081473, id_str='1548343953103081473', text='タオルケットとか 掛け布団をくしゃっとしたものを枕にして寝るのが一番寝やすい。こういう枕ないかなー。タオルを畳むやつじゃなくて。', truncated=False, entities={'hashtags': [], 'symbols': [], 'user_mentions': [], 'urls': []}, source='Twitter for Android', source_url='http://twitter.com/download/android', in_reply_to_status_id=None, in_reply_to_status_id_str=None, in_reply_to_user_id=None, in_reply_to_user_id_str=None, in_reply_to_screen_name=None, author=User(_api=<tweepy.api.API object at 0x0000026314827D90>, _json={'id': 582942202, 'id_str': '582942202', 'name': '銀杏ネリコ', 'screen_name': 'ginnanneriko', 'location': '', 'description': 'つぶやき処', 'url': 'https://t.co/ICaf2LZC3S', 'entities': {'url': {'urls': [{'url': 'https://t.co/ICaf2LZC3S', 'expanded_url': 'https://opensea.io/Neriko', 'display_url': 'opensea.io/Neriko', 'indices': [0, 23]}]}, 'description': {'urls': []}}, 'protected': False, 'followers_count': 8, 'friends_count': 81, 'listed_count': 1, 'created_at': 'Thu May 17 16:48:43 +0000 2012', 'favourites_count': 439, 'utc_offset': None, 'time_zone': None, 'geo_enabled': True, 'verified': False, 'statuses_count': 163, 'lang': None, 'contributors_enabled': False, 'is_translator': False, 'is_translation_enabled': False, 'profile_background_color': 'EEEEEE', 'profile_background_image_url': 'http://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_image_url_https': 'https://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_tile': True, 'profile_image_url': 'http://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', 'profile_image_url_https': 'https://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', 'profile_banner_url': 'https://pbs.twimg.com/profile_banners/582942202/1363092627', 'profile_link_color': 'F1043A', 'profile_sidebar_border_color': 'FFFFFF', 'profile_sidebar_fill_color': '91AE8F', 'profile_text_color': 'C85945', 'profile_use_background_image': False, 'has_extended_profile': False, 'default_profile': False, 'default_profile_image': False, 'following': False, 'follow_request_sent': False, 'notifications': False, 'translator_type': 'none', 'withheld_in_countries': []}, id=582942202, id_str='582942202', name='銀杏ネリコ', screen_name='ginnanneriko', location='', description='つぶやき処', url='https://t.co/ICaf2LZC3S', entities={'url': {'urls': [{'url': 'https://t.co/ICaf2LZC3S', 'expanded_url': 'https://opensea.io/Neriko', 'display_url': 'opensea.io/Neriko', 'indices': [0, 23]}]}, 'description': {'urls': []}}, protected=False, followers_count=8, friends_count=81, listed_count=1, created_at=datetime.datetime(2012, 5, 17, 16, 48, 43, tzinfo=datetime.timezone.utc), favourites_count=439, utc_offset=None, time_zone=None, geo_enabled=True, verified=False, statuses_count=163, lang=None, contributors_enabled=False, is_translator=False, is_translation_enabled=False, profile_background_color='EEEEEE', profile_background_image_url='http://abs.twimg.com/images/themes/theme1/bg.png', profile_background_image_url_https='https://abs.twimg.com/images/themes/theme1/bg.png', profile_background_tile=True, profile_image_url='http://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', profile_image_url_https='https://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', profile_banner_url='https://pbs.twimg.com/profile_banners/582942202/1363092627', profile_link_color='F1043A', profile_sidebar_border_color='FFFFFF', profile_sidebar_fill_color='91AE8F', profile_text_color='C85945', profile_use_background_image=False, has_extended_profile=False, default_profile=False, default_profile_image=False, following=False, follow_request_sent=False, notifications=False, translator_type='none', withheld_in_countries=[]), user=User(_api=<tweepy.api.API object at 0x0000026314827D90>, _json={'id': 582942202, 'id_str': '582942202', 'name': '銀杏ネリコ', 'screen_name': 'ginnanneriko', 'location': '', 'description': 'つぶやき処', 'url': 'https://t.co/ICaf2LZC3S', 'entities': {'url': {'urls': [{'url': 'https://t.co/ICaf2LZC3S', 'expanded_url': 'https://opensea.io/Neriko', 'display_url': 'opensea.io/Neriko', 'indices': [0, 23]}]}, 'description': {'urls': []}}, 'protected': False, 'followers_count': 8, 'friends_count': 81, 'listed_count': 1, 'created_at': 'Thu May 17 16:48:43 +0000 2012', 'favourites_count': 439, 'utc_offset': None, 'time_zone': None, 'geo_enabled': True, 'verified': False, 'statuses_count': 163, 'lang': None, 'contributors_enabled': False, 'is_translator': False, 'is_translation_enabled': False, 'profile_background_color': 'EEEEEE', 'profile_background_image_url': 'http://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_image_url_https': 'https://abs.twimg.com/images/themes/theme1/bg.png', 'profile_background_tile': True, 'profile_image_url': 'http://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', 'profile_image_url_https': 'https://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', 'profile_banner_url': 'https://pbs.twimg.com/profile_banners/582942202/1363092627', 'profile_link_color': 'F1043A', 'profile_sidebar_border_color': 'FFFFFF', 'profile_sidebar_fill_color': '91AE8F', 'profile_text_color': 'C85945', 'profile_use_background_image': False, 'has_extended_profile': False, 'default_profile': False, 'default_profile_image': False, 'following': False, 'follow_request_sent': False, 'notifications': False, 'translator_type': 'none', 'withheld_in_countries': []}, id=582942202, id_str='582942202', name='銀杏ネリコ', screen_name='ginnanneriko', location='', description='つぶやき処', url='https://t.co/ICaf2LZC3S', entities={'url': {'urls': [{'url': 'https://t.co/ICaf2LZC3S', 'expanded_url': 'https://opensea.io/Neriko', 'display_url': 'opensea.io/Neriko', 'indices': [0, 23]}]}, 'description': {'urls': []}}, protected=False, followers_count=8, friends_count=81, listed_count=1, created_at=datetime.datetime(2012, 5, 17, 16, 48, 43, tzinfo=datetime.timezone.utc), favourites_count=439, utc_offset=None, time_zone=None, geo_enabled=True, verified=False, statuses_count=163, lang=None, contributors_enabled=False, is_translator=False, is_translation_enabled=False, profile_background_color='EEEEEE', profile_background_image_url='http://abs.twimg.com/images/themes/theme1/bg.png', profile_background_image_url_https='https://abs.twimg.com/images/themes/theme1/bg.png', profile_background_tile=True, profile_image_url='http://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', profile_image_url_https='https://pbs.twimg.com/profile_images/1526392555499159552/Ps_-tC-q_normal.jpg', profile_banner_url='https://pbs.twimg.com/profile_banners/582942202/1363092627', profile_link_color='F1043A', profile_sidebar_border_color='FFFFFF', profile_sidebar_fill_color='91AE8F', profile_text_color='C85945', profile_use_background_image=False, has_extended_profile=False, default_profile=False, default_profile_image=False, following=False, follow_request_sent=False, notifications=False, translator_type='none', withheld_in_countries=[]), geo=None, coordinates=None, place=None, contributors=None, is_quote_status=False, retweet_count=0, favorite_count=0, favorited=False, retweeted=False, lang='ja')
Jsonで返ってきましたね。ほぐしてみます。
for x in list: print(x.created_at) print(x.text)
ツイート時刻とツイート内容だけ取得してみます。
C:\Users\0mayu\Downloads>python C:\Users\0mayu\Downloads\bot.py 2022-07-21 01:50:07+00:00 TwitterAPIのElevatedアクセスとれてた。申請したとき遷移後の画面が真っ白になったから失敗したと思ってたよ。 2022-07-18 04:59:48+00:00 自転車があれば徒歩より楽に遠くに行けるもんだと思ってたけど長く苦しい道のりになっただけだった 2022-07-17 10:56:09+00:00 鎌倉。あいかわらず美味しかったwoof curryと時間つぶしのために訪れた長谷寺と光則寺。 https://t.co/C02BTUnT2n 2022-07-16 16:28:59+00:00 タオルケットとか掛け布団をくしゃっとしたものを枕にして寝るのが一番寝やすい。こういう枕ないかなー。タオルを畳むやつじゃなく て。
Jsonから必要なところだけ取得できました。
今回自分のツイートを試しに取得してみましたけど、api.user_timeline(screen_name="@ginnanneriko")
のところを、取得したいアカウント名に変更すれば誰のツイートでも取得できるみたいです。
もし以下のようなエラー担った場合、Elevatedアクセスの申請をすれば解決します。
【Twitter API】Elevatedアクセス申請を出す(例文あり) - ネリコは興味津々
453 - You currently have Essential access which includes access to Twitter API v2 endpoints only. If you need access to this endpoint, you’ll need to apply for Elevated access via the Developer Portal. You can learn more here: https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api#v2-access-leve