Skip to content

Commit

Permalink
Added language parameter to streaming filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Rene Bruns committed Mar 27, 2013
1 parent b4fc516 commit 4bcdf5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tweepy/streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def sample(self, count=None, async=False):
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:
Expand All @@ -225,6 +225,8 @@ def filter(self, follow=None, track=None, async=False, locations=None,
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)
Expand Down

0 comments on commit 4bcdf5a

Please sign in to comment.