|
self.sentiments.append(analyse_per_language(txt, self.lan)["compound"]) |
This could be commented to avoid the ugly "'Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read)" that breaks the streaming. We could run this line with a cron job, every half a minute, by simply updating the CSV. Or do that in another thread maybe? Check this for more details about this issue: https://stackoverflow.com/questions/53326879/twitter-streaming-api-urllib3-exceptions-protocolerror-connection-broken-i
emotions/twitter/stream.py
Line 62 in 77e70cb
This could be commented to avoid the ugly "'Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read)" that breaks the streaming. We could run this line with a cron job, every half a minute, by simply updating the CSV. Or do that in another thread maybe? Check this for more details about this issue: https://stackoverflow.com/questions/53326879/twitter-streaming-api-urllib3-exceptions-protocolerror-connection-broken-i