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
a31d7952
Commit
a31d7952
authored
Mar 28, 2013
by
Joshua Roesslein
Browse files
Merge pull request #278 from wywygmbh/master
Pull request: Added new language parameter to filter endpoint
parents
b4fc516f
4bcdf5a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
tweepy/streaming.py
View file @
a31d7952
...
...
@@ -208,7 +208,7 @@ class Stream(object):
self
.
_start
(
async
)
def
filter
(
self
,
follow
=
None
,
track
=
None
,
async
=
False
,
locations
=
None
,
count
=
None
,
stall_warnings
=
False
):
count
=
None
,
stall_warnings
=
False
,
languages
=
None
):
self
.
parameters
=
{}
self
.
headers
[
'Content-type'
]
=
"application/x-www-form-urlencoded"
if
self
.
running
:
...
...
@@ -225,6 +225,8 @@ class Stream(object):
self
.
parameters
[
'count'
]
=
count
if
stall_warnings
:
self
.
parameters
[
'stall_warnings'
]
=
stall_warnings
if
languages
:
self
.
parameters
[
'language'
]
=
','
.
join
(
map
(
str
,
languages
))
self
.
body
=
urlencode_noplus
(
self
.
parameters
)
self
.
parameters
[
'delimited'
]
=
'length'
self
.
_start
(
async
)
...
...
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