projects
/
tweepy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c2419d
)
Improve order and formatting in Stream.sample
author
Harmon
<Harmon758@gmail.com>
Sat, 23 Jan 2021 19:53:26 +0000
(13:53 -0600)
committer
Harmon
<Harmon758@gmail.com>
Sat, 23 Jan 2021 19:53:26 +0000
(13:53 -0600)
tweepy/streaming.py
patch
|
blob
|
blame
|
history
diff --git
a/tweepy/streaming.py
b/tweepy/streaming.py
index 5dfd05e027d0bae3f27088c83e48b0fcd6d15e38..3cd9e4c10c72db3cbdda91897ba1a9557a90b395 100644
(file)
--- a/
tweepy/streaming.py
+++ b/
tweepy/streaming.py
@@
-259,10
+259,12
@@
class Stream:
self._connect(endpoint, body=body)
def sample(self, threaded=False, languages=None, stall_warnings=False):
- params = {}
if self.running:
raise TweepError('Stream object already connected!')
+
endpoint = 'statuses/sample'
+
+ params = {}
if languages:
params['language'] = ','.join(map(str, languages))
if stall_warnings: