Commit 09e29c81 authored by Aaron Hill's avatar Aaron Hill
Browse files

Unescape stream data from Twitter

parent 0097801b
......@@ -7,6 +7,7 @@ import requests
from requests.exceptions import Timeout
from threading import Thread
from time import sleep
from HTMLParser import HTMLParser
import ssl
from tweepy.models import Status
......@@ -39,7 +40,7 @@ class StreamListener(object):
Override this method if you wish to manually handle
the stream data. Return False to stop stream and close connection.
data = json.loads(raw_data)
data = json.loads(HTMLParser().unescape(raw_data))
if 'in_reply_to_status_id' in data:
status = Status.parse(self.api, data)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment