Filter search retweets

streaming
api

#1

Hi,

I’m trying to show retweets from users with their comments ( if they do) but when I keep it in my text file format appears as follows:

Status(contributors=None, truncated=False, text=u’de Anahi con @atwn #Qun’, is_quote_status=False, in_reply_to_status_id=None, id=6624564125782016L, favorite_count=0, _api=<tweepy.api.API object at 0x0000000002C69F98>, author=User(follow_request_sent=False, has_extended_profile=True, profile_use_background_image=True, _json={u’follow_request_sent’: False, u’has_extended_profile’: True, u’profile_use_background_image’: True, u’default_profile_image’: False, u’id’: 148061558, u’profile_background_image_url_https’: u’https://pbs.twimg.com/profile_background_images/624758616149504/NZ68rSC.jpg’, u’verified’: False, u’profile_text_color’: u’333333’, u’profile_image_url_https’: u’https://pbs.twimg.com/profile_images/66245414768646632/4YmbieuO_normal.jpg’, u’profile_sidebar_fill_color’: u’EFEFEF’, u’entities’: {u’description’: {u’urls’: []}}, u’followers_count’: 2763, u’profile_sidebar_border_color’: u’FFFFFF’, u’id_str’: u’14801558’,

Of course, it is more extensive , do not know if they could help show only what I need which is being who retweeted , how many followers it has that person and so on for the others.
And it shows , but as I say, shows all that and do not need it .

I leave some code where I do that:

api = tweepy.API(auth)
hasht=api.search(buscar_term)
data = api.get_user(username)
for datos in hasht:
guardar=datos.split(’,’)
archivo= codecs.open(‘archivo.txt’,‘a’)
archivo.write(str(datos))
archivo.close()
print("\n")
print("\n")
print("\n")
print("\n")
print("\n")
print("\n")
print((“Hashtags and Retweets”), str(hasht))

Thanks.