In [1]:
import tweepy

In [2]:
consumer_key = 'SFQoMCyCHUYzHwvOP2hObiaYb'
consumer_secret = 'yCon3o8WMFYDon8D5c8xi5taBDxDldodsdMEFXvrUbi5X3uCK6'
access_token = '13101632-jfzgS37obVEw5vEQhkg3iHuMSgZFwAnLz55OZcVyi'
access_token_secret = 'CeoEHGH6fzrFH1PbXxSwCvmL04rD6nQElJzKgMnAj9AY9'

In [4]:
autorizar = tweepy.OAuthHandler(consumer_key, consumer_secret)

In [5]:
dir(autorizar)


Out[5]:
['OAUTH_HOST',
 'OAUTH_ROOT',
 '__class__',
 '__delattr__',
 '__dict__',
 '__dir__',
 '__doc__',
 '__eq__',
 '__format__',
 '__ge__',
 '__getattribute__',
 '__gt__',
 '__hash__',
 '__init__',
 '__le__',
 '__lt__',
 '__module__',
 '__ne__',
 '__new__',
 '__reduce__',
 '__reduce_ex__',
 '__repr__',
 '__setattr__',
 '__sizeof__',
 '__str__',
 '__subclasshook__',
 '__weakref__',
 '_get_oauth_url',
 '_get_request_token',
 'access_token',
 'access_token_secret',
 'apply_auth',
 'callback',
 'consumer_key',
 'consumer_secret',
 'get_access_token',
 'get_authorization_url',
 'get_username',
 'get_xauth_access_token',
 'oauth',
 'set_access_token',
 'username']

In [6]:
autorizar.set_access_token(access_token,access_token_secret)

In [8]:
api = tweepy.API(autorizar)

In [9]:
print(api)


<tweepy.api.API object at 0x0478DD10>

In [10]:
dir(api)


Out[10]:
['__class__',
 '__delattr__',
 '__dict__',
 '__dir__',
 '__doc__',
 '__eq__',
 '__format__',
 '__ge__',
 '__getattribute__',
 '__gt__',
 '__hash__',
 '__init__',
 '__le__',
 '__lt__',
 '__module__',
 '__ne__',
 '__new__',
 '__reduce__',
 '__reduce_ex__',
 '__repr__',
 '__setattr__',
 '__sizeof__',
 '__str__',
 '__subclasshook__',
 '__weakref__',
 '_add_list_members',
 '_lookup_friendships',
 '_lookup_users',
 '_pack_image',
 '_remove_list_members',
 '_statuses_lookup',
 'add_list_member',
 'add_list_members',
 'api_root',
 'auth',
 'blocks',
 'blocks_ids',
 'cache',
 'compression',
 'configuration',
 'create_block',
 'create_favorite',
 'create_friendship',
 'create_list',
 'create_saved_search',
 'destroy_block',
 'destroy_direct_message',
 'destroy_favorite',
 'destroy_friendship',
 'destroy_list',
 'destroy_saved_search',
 'destroy_status',
 'direct_messages',
 'favorites',
 'followers',
 'followers_ids',
 'friends',
 'friends_ids',
 'friendships_incoming',
 'friendships_outgoing',
 'geo_id',
 'geo_search',
 'geo_similar_places',
 'get_direct_message',
 'get_list',
 'get_oembed',
 'get_saved_search',
 'get_settings',
 'get_status',
 'get_user',
 'home_timeline',
 'host',
 'list_members',
 'list_subscribers',
 'list_timeline',
 'lists_all',
 'lists_memberships',
 'lists_subscriptions',
 'lookup_friendships',
 'lookup_users',
 'me',
 'media_upload',
 'mentions_timeline',
 'parser',
 'proxy',
 'rate_limit_status',
 'related_results',
 'remove_list_member',
 'remove_list_members',
 'report_spam',
 'retry_count',
 'retry_delay',
 'retry_errors',
 'retweet',
 'retweeters',
 'retweets',
 'retweets_of_me',
 'reverse_geocode',
 'saved_searches',
 'search',
 'search_host',
 'search_root',
 'search_users',
 'send_direct_message',
 'sent_direct_messages',
 'set_delivery_device',
 'set_settings',
 'show_friendship',
 'show_list_member',
 'show_list_subscriber',
 'statuses_lookup',
 'subscribe_list',
 'suggested_categories',
 'suggested_users',
 'suggested_users_tweets',
 'supported_languages',
 'timeout',
 'trends_available',
 'trends_closest',
 'trends_place',
 'unsubscribe_list',
 'update_list',
 'update_profile',
 'update_profile_background_image',
 'update_profile_banner',
 'update_profile_colors',
 'update_profile_image',
 'update_status',
 'update_with_media',
 'upload_host',
 'upload_root',
 'user_timeline',
 'verify_credentials',
 'wait_on_rate_limit',
 'wait_on_rate_limit_notify']

In [13]:
retorno = api.update_status(status="Hello twitter. Test from python")
p

In [14]:
print(retorno)


Status(contributors=None, favorite_count=0, source='python aula twitter', user=User(profile_background_image_url_https='https://pbs.twimg.com/profile_background_images/3019929/opposite_way.jpg', description='Christian + Information designer + interactive designer + dataviz at @folha & @gruponews + cyclist. These opinions are my own.', contributors_enabled=False, location='São Paulo, Brazil', following=False, statuses_count=2168, utc_offset=-10800, created_at=datetime.datetime(2008, 2, 5, 17, 31, 57), profile_use_background_image=True, _api=<tweepy.api.API object at 0x0478DD10>, favourites_count=370, profile_image_url_https='https://pbs.twimg.com/profile_images/378800000545005336/153a471b68c7ab91bf35dc71f91242cb_normal.jpeg', verified=False, id=13101632, profile_image_url='http://pbs.twimg.com/profile_images/378800000545005336/153a471b68c7ab91bf35dc71f91242cb_normal.jpeg', profile_sidebar_fill_color='FFFFFF', profile_background_image_url='http://pbs.twimg.com/profile_background_images/3019929/opposite_way.jpg', is_translation_enabled=False, profile_sidebar_border_color='FFFFFF', protected=False, has_extended_profile=False, is_translator=False, profile_text_color='231F20', time_zone='Brasilia', followers_count=337, id_str='13101632', profile_background_tile=False, screen_name='rubensfernando', friends_count=797, geo_enabled=True, entities={'description': {'urls': []}, 'url': {'urls': [{'display_url': 'rubensfernando.com', 'indices': [0, 22], 'expanded_url': 'http://rubensfernando.com', 'url': 'http://t.co/nSvUZbgxxP'}]}}, listed_count=23, default_profile=False, notifications=False, default_profile_image=False, url='http://t.co/nSvUZbgxxP', lang='en', profile_link_color='0084B4', name='Rubens Fernando', profile_background_color='FFFFFF', _json={'description': 'Christian + Information designer + interactive designer + dataviz at @folha & @gruponews + cyclist. These opinions are my own.', 'contributors_enabled': False, 'location': 'São Paulo, Brazil', 'profile_image_url': 'http://pbs.twimg.com/profile_images/378800000545005336/153a471b68c7ab91bf35dc71f91242cb_normal.jpeg', 'url': 'http://t.co/nSvUZbgxxP', 'default_profile_image': False, 'utc_offset': -10800, 'created_at': 'Tue Feb 05 17:31:57 +0000 2008', 'follow_request_sent': False, 'profile_background_color': 'FFFFFF', 'id': 13101632, 'favourites_count': 370, 'lang': 'en', 'id_str': '13101632', 'profile_use_background_image': True, 'statuses_count': 2168, 'profile_sidebar_fill_color': 'FFFFFF', 'profile_background_image_url': 'http://pbs.twimg.com/profile_background_images/3019929/opposite_way.jpg', 'is_translation_enabled': False, 'has_extended_profile': False, 'is_translator': False, 'following': False, 'time_zone': 'Brasilia', 'verified': False, 'profile_background_tile': False, 'default_profile': False, 'geo_enabled': True, 'notifications': False, 'entities': {'description': {'urls': []}, 'url': {'urls': [{'display_url': 'rubensfernando.com', 'indices': [0, 22], 'expanded_url': 'http://rubensfernando.com', 'url': 'http://t.co/nSvUZbgxxP'}]}}, 'listed_count': 23, 'friends_count': 797, 'profile_text_color': '231F20', 'followers_count': 337, 'protected': False, 'profile_image_url_https': 'https://pbs.twimg.com/profile_images/378800000545005336/153a471b68c7ab91bf35dc71f91242cb_normal.jpeg', 'name': 'Rubens Fernando', 'profile_link_color': '0084B4', 'profile_background_image_url_https': 'https://pbs.twimg.com/profile_background_images/3019929/opposite_way.jpg', 'screen_name': 'rubensfernando', 'profile_sidebar_border_color': 'FFFFFF'}, follow_request_sent=False), created_at=datetime.datetime(2016, 7, 29, 22, 55, 7), id=759160354811289601, _api=<tweepy.api.API object at 0x0478DD10>, in_reply_to_user_id=None, author=User(profile_background_image_url_https='https://pbs.twimg.com/profile_background_images/3019929/opposite_way.jpg', description='Christian + Information designer + interactive designer + dataviz at @folha & @gruponews + cyclist. These opinions are my own.', contributors_enabled=False, location='São Paulo, Brazil', following=False, statuses_count=2168, utc_offset=-10800, created_at=datetime.datetime(2008, 2, 5, 17, 31, 57), profile_use_background_image=True, _api=<tweepy.api.API object at 0x0478DD10>, favourites_count=370, profile_image_url_https='https://pbs.twimg.com/profile_images/378800000545005336/153a471b68c7ab91bf35dc71f91242cb_normal.jpeg', verified=False, id=13101632, profile_image_url='http://pbs.twimg.com/profile_images/378800000545005336/153a471b68c7ab91bf35dc71f91242cb_normal.jpeg', profile_sidebar_fill_color='FFFFFF', profile_background_image_url='http://pbs.twimg.com/profile_background_images/3019929/opposite_way.jpg', is_translation_enabled=False, profile_sidebar_border_color='FFFFFF', protected=False, has_extended_profile=False, is_translator=False, profile_text_color='231F20', time_zone='Brasilia', followers_count=337, id_str='13101632', profile_background_tile=False, screen_name='rubensfernando', friends_count=797, geo_enabled=True, entities={'description': {'urls': []}, 'url': {'urls': [{'display_url': 'rubensfernando.com', 'indices': [0, 22], 'expanded_url': 'http://rubensfernando.com', 'url': 'http://t.co/nSvUZbgxxP'}]}}, listed_count=23, default_profile=False, notifications=False, default_profile_image=False, url='http://t.co/nSvUZbgxxP', lang='en', profile_link_color='0084B4', name='Rubens Fernando', profile_background_color='FFFFFF', _json={'description': 'Christian + Information designer + interactive designer + dataviz at @folha & @gruponews + cyclist. These opinions are my own.', 'contributors_enabled': False, 'location': 'São Paulo, Brazil', 'profile_image_url': 'http://pbs.twimg.com/profile_images/378800000545005336/153a471b68c7ab91bf35dc71f91242cb_normal.jpeg', 'url': 'http://t.co/nSvUZbgxxP', 'default_profile_image': False, 'utc_offset': -10800, 'created_at': 'Tue Feb 05 17:31:57 +0000 2008', 'follow_request_sent': False, 'profile_background_color': 'FFFFFF', 'id': 13101632, 'favourites_count': 370, 'lang': 'en', 'id_str': '13101632', 'profile_use_background_image': True, 'statuses_count': 2168, 'profile_sidebar_fill_color': 'FFFFFF', 'profile_background_image_url': 'http://pbs.twimg.com/profile_background_images/3019929/opposite_way.jpg', 'is_translation_enabled': False, 'has_extended_profile': False, 'is_translator': False, 'following': False, 'time_zone': 'Brasilia', 'verified': False, 'profile_background_tile': False, 'default_profile': False, 'geo_enabled': True, 'notifications': False, 'entities': {'description': {'urls': []}, 'url': {'urls': [{'display_url': 'rubensfernando.com', 'indices': [0, 22], 'expanded_url': 'http://rubensfernando.com', 'url': 'http://t.co/nSvUZbgxxP'}]}}, 'listed_count': 23, 'friends_count': 797, 'profile_text_color': '231F20', 'followers_count': 337, 'protected': False, 'profile_image_url_https': 'https://pbs.twimg.com/profile_images/378800000545005336/153a471b68c7ab91bf35dc71f91242cb_normal.jpeg', 'name': 'Rubens Fernando', 'profile_link_color': '0084B4', 'profile_background_image_url_https': 'https://pbs.twimg.com/profile_background_images/3019929/opposite_way.jpg', 'screen_name': 'rubensfernando', 'profile_sidebar_border_color': 'FFFFFF'}, follow_request_sent=False), in_reply_to_screen_name=None, source_url='http://www.rubensfernando.com', truncated=False, is_quote_status=False, favorited=False, id_str='759160354811289601', in_reply_to_user_id_str=None, in_reply_to_status_id=None, in_reply_to_status_id_str=None, coordinates=None, entities={'urls': [], 'hashtags': [], 'user_mentions': [], 'symbols': []}, retweet_count=0, place=None, retweeted=False, lang='en', geo=None, text='Hello twitter. Test from python', _json={'contributors': None, 'favorite_count': 0, 'source': '<a href="http://www.rubensfernando.com" rel="nofollow">python aula twitter</a>', 'created_at': 'Fri Jul 29 22:55:07 +0000 2016', 'id': 759160354811289601, 'in_reply_to_user_id': None, 'coordinates': None, 'in_reply_to_screen_name': None, 'truncated': False, 'is_quote_status': False, 'favorited': False, 'id_str': '759160354811289601', 'in_reply_to_user_id_str': None, 'in_reply_to_status_id': None, 'in_reply_to_status_id_str': None, 'user': {'description': 'Christian + Information designer + interactive designer + dataviz at @folha & @gruponews + cyclist. These opinions are my own.', 'contributors_enabled': False, 'location': 'São Paulo, Brazil', 'profile_image_url': 'http://pbs.twimg.com/profile_images/378800000545005336/153a471b68c7ab91bf35dc71f91242cb_normal.jpeg', 'url': 'http://t.co/nSvUZbgxxP', 'default_profile_image': False, 'utc_offset': -10800, 'created_at': 'Tue Feb 05 17:31:57 +0000 2008', 'follow_request_sent': False, 'profile_background_color': 'FFFFFF', 'id': 13101632, 'favourites_count': 370, 'lang': 'en', 'id_str': '13101632', 'profile_use_background_image': True, 'statuses_count': 2168, 'profile_sidebar_fill_color': 'FFFFFF', 'profile_background_image_url': 'http://pbs.twimg.com/profile_background_images/3019929/opposite_way.jpg', 'is_translation_enabled': False, 'has_extended_profile': False, 'is_translator': False, 'following': False, 'time_zone': 'Brasilia', 'verified': False, 'profile_background_tile': False, 'default_profile': False, 'geo_enabled': True, 'notifications': False, 'entities': {'description': {'urls': []}, 'url': {'urls': [{'display_url': 'rubensfernando.com', 'indices': [0, 22], 'expanded_url': 'http://rubensfernando.com', 'url': 'http://t.co/nSvUZbgxxP'}]}}, 'listed_count': 23, 'friends_count': 797, 'profile_text_color': '231F20', 'followers_count': 337, 'protected': False, 'profile_image_url_https': 'https://pbs.twimg.com/profile_images/378800000545005336/153a471b68c7ab91bf35dc71f91242cb_normal.jpeg', 'name': 'Rubens Fernando', 'profile_link_color': '0084B4', 'profile_background_image_url_https': 'https://pbs.twimg.com/profile_background_images/3019929/opposite_way.jpg', 'screen_name': 'rubensfernando', 'profile_sidebar_border_color': 'FFFFFF'}, 'entities': {'urls': [], 'hashtags': [], 'user_mentions': [], 'symbols': []}, 'retweet_count': 0, 'place': None, 'retweeted': False, 'lang': 'en', 'geo': None, 'text': 'Hello twitter. Test from python'})

In [15]:
retorno.id


Out[15]:
759160354811289601

In [19]:
dir(retorno)


Out[19]:
['__class__',
 '__delattr__',
 '__dict__',
 '__dir__',
 '__doc__',
 '__eq__',
 '__format__',
 '__ge__',
 '__getattribute__',
 '__getstate__',
 '__gt__',
 '__hash__',
 '__init__',
 '__le__',
 '__lt__',
 '__module__',
 '__ne__',
 '__new__',
 '__reduce__',
 '__reduce_ex__',
 '__repr__',
 '__setattr__',
 '__sizeof__',
 '__str__',
 '__subclasshook__',
 '__weakref__',
 '_api',
 '_json',
 'author',
 'contributors',
 'coordinates',
 'created_at',
 'destroy',
 'entities',
 'favorite',
 'favorite_count',
 'favorited',
 'geo',
 'id',
 'id_str',
 'in_reply_to_screen_name',
 'in_reply_to_status_id',
 'in_reply_to_status_id_str',
 'in_reply_to_user_id',
 'in_reply_to_user_id_str',
 'is_quote_status',
 'lang',
 'parse',
 'parse_list',
 'place',
 'retweet',
 'retweet_count',
 'retweeted',
 'retweets',
 'source',
 'source_url',
 'text',
 'truncated',
 'user']

In [20]:
id = retorno.id

In [21]:
retornoDestroy = api.destroy_status(id=id)

In [22]:
retornoDestroy


Out[22]:
Status(contributors=None, favorite_count=0, source='python aula twitter', user=User(profile_background_image_url_https='https://pbs.twimg.com/profile_background_images/3019929/opposite_way.jpg', description='Christian + Information designer + interactive designer + dataviz at @folha & @gruponews + cyclist. These opinions are my own.', contributors_enabled=False, location='São Paulo, Brazil', following=False, statuses_count=2168, utc_offset=-10800, created_at=datetime.datetime(2008, 2, 5, 17, 31, 57), profile_use_background_image=True, _api=<tweepy.api.API object at 0x0478DD10>, favourites_count=370, profile_image_url_https='https://pbs.twimg.com/profile_images/378800000545005336/153a471b68c7ab91bf35dc71f91242cb_normal.jpeg', verified=False, id=13101632, profile_image_url='http://pbs.twimg.com/profile_images/378800000545005336/153a471b68c7ab91bf35dc71f91242cb_normal.jpeg', profile_sidebar_fill_color='FFFFFF', profile_background_image_url='http://pbs.twimg.com/profile_background_images/3019929/opposite_way.jpg', is_translation_enabled=False, profile_sidebar_border_color='FFFFFF', protected=False, has_extended_profile=False, is_translator=False, profile_text_color='231F20', time_zone='Brasilia', followers_count=337, id_str='13101632', profile_background_tile=False, screen_name='rubensfernando', friends_count=797, geo_enabled=True, entities={'description': {'urls': []}, 'url': {'urls': [{'display_url': 'rubensfernando.com', 'indices': [0, 22], 'expanded_url': 'http://rubensfernando.com', 'url': 'http://t.co/nSvUZbgxxP'}]}}, listed_count=23, default_profile=False, notifications=False, default_profile_image=False, url='http://t.co/nSvUZbgxxP', lang='en', profile_link_color='0084B4', name='Rubens Fernando', profile_background_color='FFFFFF', _json={'description': 'Christian + Information designer + interactive designer + dataviz at @folha & @gruponews + cyclist. These opinions are my own.', 'contributors_enabled': False, 'location': 'São Paulo, Brazil', 'profile_image_url': 'http://pbs.twimg.com/profile_images/378800000545005336/153a471b68c7ab91bf35dc71f91242cb_normal.jpeg', 'url': 'http://t.co/nSvUZbgxxP', 'default_profile_image': False, 'utc_offset': -10800, 'created_at': 'Tue Feb 05 17:31:57 +0000 2008', 'follow_request_sent': False, 'profile_background_color': 'FFFFFF', 'id': 13101632, 'favourites_count': 370, 'lang': 'en', 'id_str': '13101632', 'profile_use_background_image': True, 'statuses_count': 2168, 'profile_sidebar_fill_color': 'FFFFFF', 'profile_background_image_url': 'http://pbs.twimg.com/profile_background_images/3019929/opposite_way.jpg', 'is_translation_enabled': False, 'has_extended_profile': False, 'is_translator': False, 'following': False, 'time_zone': 'Brasilia', 'verified': False, 'profile_background_tile': False, 'default_profile': False, 'geo_enabled': True, 'notifications': False, 'entities': {'description': {'urls': []}, 'url': {'urls': [{'display_url': 'rubensfernando.com', 'indices': [0, 22], 'expanded_url': 'http://rubensfernando.com', 'url': 'http://t.co/nSvUZbgxxP'}]}}, 'listed_count': 23, 'friends_count': 797, 'profile_text_color': '231F20', 'followers_count': 337, 'protected': False, 'profile_image_url_https': 'https://pbs.twimg.com/profile_images/378800000545005336/153a471b68c7ab91bf35dc71f91242cb_normal.jpeg', 'name': 'Rubens Fernando', 'profile_link_color': '0084B4', 'profile_background_image_url_https': 'https://pbs.twimg.com/profile_background_images/3019929/opposite_way.jpg', 'screen_name': 'rubensfernando', 'profile_sidebar_border_color': 'FFFFFF'}, follow_request_sent=False), created_at=datetime.datetime(2016, 7, 29, 22, 55, 7), id=759160354811289601, _api=<tweepy.api.API object at 0x0478DD10>, in_reply_to_user_id=None, author=User(profile_background_image_url_https='https://pbs.twimg.com/profile_background_images/3019929/opposite_way.jpg', description='Christian + Information designer + interactive designer + dataviz at @folha & @gruponews + cyclist. These opinions are my own.', contributors_enabled=False, location='São Paulo, Brazil', following=False, statuses_count=2168, utc_offset=-10800, created_at=datetime.datetime(2008, 2, 5, 17, 31, 57), profile_use_background_image=True, _api=<tweepy.api.API object at 0x0478DD10>, favourites_count=370, profile_image_url_https='https://pbs.twimg.com/profile_images/378800000545005336/153a471b68c7ab91bf35dc71f91242cb_normal.jpeg', verified=False, id=13101632, profile_image_url='http://pbs.twimg.com/profile_images/378800000545005336/153a471b68c7ab91bf35dc71f91242cb_normal.jpeg', profile_sidebar_fill_color='FFFFFF', profile_background_image_url='http://pbs.twimg.com/profile_background_images/3019929/opposite_way.jpg', is_translation_enabled=False, profile_sidebar_border_color='FFFFFF', protected=False, has_extended_profile=False, is_translator=False, profile_text_color='231F20', time_zone='Brasilia', followers_count=337, id_str='13101632', profile_background_tile=False, screen_name='rubensfernando', friends_count=797, geo_enabled=True, entities={'description': {'urls': []}, 'url': {'urls': [{'display_url': 'rubensfernando.com', 'indices': [0, 22], 'expanded_url': 'http://rubensfernando.com', 'url': 'http://t.co/nSvUZbgxxP'}]}}, listed_count=23, default_profile=False, notifications=False, default_profile_image=False, url='http://t.co/nSvUZbgxxP', lang='en', profile_link_color='0084B4', name='Rubens Fernando', profile_background_color='FFFFFF', _json={'description': 'Christian + Information designer + interactive designer + dataviz at @folha & @gruponews + cyclist. These opinions are my own.', 'contributors_enabled': False, 'location': 'São Paulo, Brazil', 'profile_image_url': 'http://pbs.twimg.com/profile_images/378800000545005336/153a471b68c7ab91bf35dc71f91242cb_normal.jpeg', 'url': 'http://t.co/nSvUZbgxxP', 'default_profile_image': False, 'utc_offset': -10800, 'created_at': 'Tue Feb 05 17:31:57 +0000 2008', 'follow_request_sent': False, 'profile_background_color': 'FFFFFF', 'id': 13101632, 'favourites_count': 370, 'lang': 'en', 'id_str': '13101632', 'profile_use_background_image': True, 'statuses_count': 2168, 'profile_sidebar_fill_color': 'FFFFFF', 'profile_background_image_url': 'http://pbs.twimg.com/profile_background_images/3019929/opposite_way.jpg', 'is_translation_enabled': False, 'has_extended_profile': False, 'is_translator': False, 'following': False, 'time_zone': 'Brasilia', 'verified': False, 'profile_background_tile': False, 'default_profile': False, 'geo_enabled': True, 'notifications': False, 'entities': {'description': {'urls': []}, 'url': {'urls': [{'display_url': 'rubensfernando.com', 'indices': [0, 22], 'expanded_url': 'http://rubensfernando.com', 'url': 'http://t.co/nSvUZbgxxP'}]}}, 'listed_count': 23, 'friends_count': 797, 'profile_text_color': '231F20', 'followers_count': 337, 'protected': False, 'profile_image_url_https': 'https://pbs.twimg.com/profile_images/378800000545005336/153a471b68c7ab91bf35dc71f91242cb_normal.jpeg', 'name': 'Rubens Fernando', 'profile_link_color': '0084B4', 'profile_background_image_url_https': 'https://pbs.twimg.com/profile_background_images/3019929/opposite_way.jpg', 'screen_name': 'rubensfernando', 'profile_sidebar_border_color': 'FFFFFF'}, follow_request_sent=False), in_reply_to_screen_name=None, source_url='http://www.rubensfernando.com', truncated=False, is_quote_status=False, favorited=False, id_str='759160354811289601', in_reply_to_user_id_str=None, in_reply_to_status_id=None, in_reply_to_status_id_str=None, coordinates=None, entities={'urls': [], 'hashtags': [], 'user_mentions': [], 'symbols': []}, retweet_count=0, place=None, retweeted=False, lang='en', geo=None, text='Hello twitter. Test from python', _json={'contributors': None, 'favorite_count': 0, 'source': '<a href="http://www.rubensfernando.com" rel="nofollow">python aula twitter</a>', 'created_at': 'Fri Jul 29 22:55:07 +0000 2016', 'id': 759160354811289601, 'in_reply_to_user_id': None, 'coordinates': None, 'in_reply_to_screen_name': None, 'truncated': False, 'is_quote_status': False, 'favorited': False, 'id_str': '759160354811289601', 'in_reply_to_user_id_str': None, 'in_reply_to_status_id': None, 'in_reply_to_status_id_str': None, 'user': {'description': 'Christian + Information designer + interactive designer + dataviz at @folha & @gruponews + cyclist. These opinions are my own.', 'contributors_enabled': False, 'location': 'São Paulo, Brazil', 'profile_image_url': 'http://pbs.twimg.com/profile_images/378800000545005336/153a471b68c7ab91bf35dc71f91242cb_normal.jpeg', 'url': 'http://t.co/nSvUZbgxxP', 'default_profile_image': False, 'utc_offset': -10800, 'created_at': 'Tue Feb 05 17:31:57 +0000 2008', 'follow_request_sent': False, 'profile_background_color': 'FFFFFF', 'id': 13101632, 'favourites_count': 370, 'lang': 'en', 'id_str': '13101632', 'profile_use_background_image': True, 'statuses_count': 2168, 'profile_sidebar_fill_color': 'FFFFFF', 'profile_background_image_url': 'http://pbs.twimg.com/profile_background_images/3019929/opposite_way.jpg', 'is_translation_enabled': False, 'has_extended_profile': False, 'is_translator': False, 'following': False, 'time_zone': 'Brasilia', 'verified': False, 'profile_background_tile': False, 'default_profile': False, 'geo_enabled': True, 'notifications': False, 'entities': {'description': {'urls': []}, 'url': {'urls': [{'display_url': 'rubensfernando.com', 'indices': [0, 22], 'expanded_url': 'http://rubensfernando.com', 'url': 'http://t.co/nSvUZbgxxP'}]}}, 'listed_count': 23, 'friends_count': 797, 'profile_text_color': '231F20', 'followers_count': 337, 'protected': False, 'profile_image_url_https': 'https://pbs.twimg.com/profile_images/378800000545005336/153a471b68c7ab91bf35dc71f91242cb_normal.jpeg', 'name': 'Rubens Fernando', 'profile_link_color': '0084B4', 'profile_background_image_url_https': 'https://pbs.twimg.com/profile_background_images/3019929/opposite_way.jpg', 'screen_name': 'rubensfernando', 'profile_sidebar_border_color': 'FFFFFF'}, 'entities': {'urls': [], 'hashtags': [], 'user_mentions': [], 'symbols': []}, 'retweet_count': 0, 'place': None, 'retweeted': False, 'lang': 'en', 'geo': None, 'text': 'Hello twitter. Test from python'})

In [23]:
retorno.source


Out[23]:
'python aula twitter'

In [24]:
retorno.source_url


Out[24]:
'http://www.rubensfernando.com'

In [25]:
retorno.truncated


Out[25]:
False

In [26]:
retorno.created_at


Out[26]:
datetime.datetime(2016, 7, 29, 22, 55, 7)

In [ ]: