From: Harmon Date: Fri, 22 Jan 2021 23:33:37 +0000 (-0600) Subject: Remove Stream.host X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9cf8518350113c1bc89aa978d7a89ffcae2f1832;p=tweepy.git Remove Stream.host --- 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