Commit c1e31be0 authored by Raphael Beer's avatar Raphael Beer

Fix: set session._headers in __init__, again; was changed in 1e4bc11e

parent e989f5ed
......@@ -74,6 +74,9 @@ class TwitterSession:
# this stays `None` for guest sessions
self.username = None
self._headers = {
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36"
}
# sets self._headers
self.reset_headers()
......@@ -456,6 +459,7 @@ class TwitterSession:
# debug('[TimelineTermination] Request failed for ' + result["tests"]["search"])
# debug(e)
debug('Writing result for ' + result['profile']['screen_name'] + ' to DB')
db.write_result(result)
return result
......
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