Remove Stream.host
authorHarmon <Harmon758@gmail.com>
Fri, 22 Jan 2021 23:33:37 +0000 (17:33 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 22 Jan 2021 23:33:37 +0000 (17:33 -0600)
tweepy/streaming.py

index 12a23a5973e39174ec811ebb1a3a4153c13b0826..4a173c60231c43a645d9341aafca512b9ab8a13a 100644 (file)
@@ -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