Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
tweepy
Commits
71771b0d
Commit
71771b0d
authored
Apr 08, 2014
by
Ruxandra Burtica
Browse files
Stream - add all parameters to the URL when making UserStream requests.
parent
91dd1d89
Changes
1
Hide whitespace changes
Inline
Side-by-side
tweepy/streaming.py
View file @
71771b0d
...
...
@@ -245,7 +245,7 @@ class Stream(object):
self
.
parameters
=
{
'delimited'
:
'length'
}
if
self
.
running
:
raise
TweepError
(
'Stream object already connected!'
)
self
.
url
=
'/%s/user.json
?delimited=length
'
%
STREAM_VERSION
self
.
url
=
'/%s/user.json'
%
STREAM_VERSION
self
.
host
=
'userstream.twitter.com'
if
stall_warnings
:
self
.
parameters
[
'stall_warnings'
]
=
stall_warnings
...
...
@@ -259,7 +259,9 @@ class Stream(object):
if
track
:
encoded_track
=
[
s
.
encode
(
encoding
)
for
s
in
track
]
self
.
parameters
[
'track'
]
=
','
.
join
(
encoded_track
)
self
.
body
=
urlencode_noplus
(
self
.
parameters
)
self
.
url
=
self
.
url
+
'?'
+
self
.
body
self
.
_start
(
async
)
def
firehose
(
self
,
count
=
None
,
async
=
False
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment