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
5f2c04ff
Commit
5f2c04ff
authored
Mar 30, 2011
by
AlanBell
Committed by
Josh Roesslein
Apr 14, 2011
Browse files
Add User Streams.
parent
da7a5da5
Changes
1
Hide whitespace changes
Inline
Side-by-side
tweepy/streaming.py
View file @
5f2c04ff
...
...
@@ -159,6 +159,14 @@ class Stream(object):
Thread
(
target
=
self
.
_run
).
start
()
else
:
self
.
_run
()
def
userstream
(
self
,
count
=
None
,
async
=
False
,
secure
=
True
):
if
self
.
running
:
raise
TweepError
(
'Stream object already connected!'
)
self
.
url
=
'/2/user.json'
self
.
host
=
'userstream.twitter.com'
if
count
:
self
.
url
+=
'&count=%s'
%
count
self
.
_start
(
async
)
def
firehose
(
self
,
count
=
None
,
async
=
False
):
self
.
parameters
=
{
'delimited'
:
'length'
}
...
...
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