|
|
@ -187,10 +187,14 @@ class TwitterNetworkData(NetworkData): |
|
|
|
self.name = retweet_user['name'] |
|
|
|
self.name = retweet_user['name'] |
|
|
|
self.username = retweet_user['screen_name'] |
|
|
|
self.username = retweet_user['screen_name'] |
|
|
|
self.avatar = retweet_user['profile_image_url'] |
|
|
|
self.avatar = retweet_user['profile_image_url'] |
|
|
|
|
|
|
|
self.id = data['retweeted_status']['id'] |
|
|
|
|
|
|
|
|
|
|
|
# also switch the text for the original text. |
|
|
|
# also switch the text for the original text. |
|
|
|
data['text'] = data['retweeted_status']['text'] |
|
|
|
data['text'] = data['retweeted_status']['text'] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# keep the message_time as is, so we have the retweet time, not he |
|
|
|
|
|
|
|
# original message time |
|
|
|
|
|
|
|
|
|
|
|
# Twitter encodes a lot of HTML entities, which are not good when |
|
|
|
# Twitter encodes a lot of HTML entities, which are not good when |
|
|
|
# you want to *display* then (e.g., "<" returns to us as "<"). |
|
|
|
# you want to *display* then (e.g., "<" returns to us as "<"). |
|
|
|
# So we convert this here. Interfaces need to worry about converting |
|
|
|
# So we convert this here. Interfaces need to worry about converting |
|
|
|