From 9cf8518350113c1bc89aa978d7a89ffcae2f1832 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 22 Jan 2021 17:33:37 -0600 Subject: [PATCH] Remove Stream.host --- tweepy/streaming.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 12a23a5..4a173c6 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -150,14 +150,13 @@ class Stream: # Example: proxies = {'http': 'http://localhost:1080', 'https': 'http://localhost:1080'} self.proxies = options.get("proxies") - self.host = options.get('host', 'stream.twitter.com') def new_session(self): self.session = requests.Session() def _run(self, params=None, body=None): # Authenticate - url = f"https://{self.host}{self.url}" + url = f"https://stream.twitter.com{self.url}" # Connect and process the stream error_counter = 0 -- 2.25.1