From: john Date: Mon, 1 Jun 2015 02:46:30 +0000 (-0700) Subject: Added basic support for filter_level parameter for the streaming API X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bad33da5620f14fe56825dce37af868592cb30c5;p=tweepy.git Added basic support for filter_level parameter for the streaming API --- diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 6ce3e5c..0d7f742 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -404,7 +404,7 @@ class Stream(object): self._start(async) def filter(self, follow=None, track=None, async=False, locations=None, - stall_warnings=False, languages=None, encoding='utf8'): + stall_warnings=False, languages=None, encoding='utf8', filter_level=None): self.body = {} self.session.headers['Content-type'] = "application/x-www-form-urlencoded" if self.running: @@ -423,6 +423,8 @@ class Stream(object): self.body['stall_warnings'] = stall_warnings if languages: self.body['language'] = u','.join(map(str, languages)) + if filter_level: + self.body['filter_level'] = filter_level self.session.params = {'delimited': 'length'} self.host = 'stream.twitter.com' self._start(async)