Skip to content

Commit

Permalink
use the new package in all the right spots
Browse files Browse the repository at this point in the history
  • Loading branch information
wadey committed Mar 17, 2010
1 parent d451679 commit 8e42ca4
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions examples/follow.py
Expand Up @@ -10,10 +10,10 @@
# fd.close()
# print doc.get("id")

import twitterstream
import txtwitterstream
from twisted.internet import reactor

class consumer(twitterstream.TweetReceiver):
class consumer(txtwitterstream.TweetReceiver):
def connectionMade(self):
print "connected..."

Expand All @@ -25,6 +25,6 @@ def tweetReceived(self, tweet):
print "new tweet:", repr(tweet)

if __name__ == "__main__":
twitterstream.Client("username", "password").filter(consumer(),
txtwitterstream.Client("username", "password").filter(consumer(),
follow=["101010", "202020", "303030", "404040"])
reactor.run()
6 changes: 3 additions & 3 deletions examples/locations.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python
# coding: utf-8

import twitterstream
import txtwitterstream
from twisted.internet import reactor

class consumer(twitterstream.TweetReceiver):
class consumer(txtwitterstream.TweetReceiver):
def connectionMade(self):
print "connected..."

Expand All @@ -19,6 +19,6 @@ def tweetReceived(self, tweet):
# permanently disconnect from the Twitter Stream

if __name__ == "__main__":
twitterstream.Client("username", "password").filter(consumer(),
txtwitterstream.Client("username", "password").filter(consumer(),
locations="-122.75,36.8,-121.75,37.8,-74,40,-73,41")
reactor.run()
6 changes: 3 additions & 3 deletions examples/sample.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python
# coding: utf-8

import twitterstream
import txtwitterstream
from twisted.internet import reactor

class consumer(twitterstream.TweetReceiver):
class consumer(txtwitterstream.TweetReceiver):
def connectionMade(self):
print "connected..."

Expand All @@ -18,5 +18,5 @@ def tweetReceived(self, tweet):
if __name__ == "__main__":
#TwistedTwitterStream.firehose("username", "password", consumer())
#TwistedTwitterStream.retweet("username", "password", consumer())
TwistedTwitterStream.sample("username", "password", consumer())
txtwitterstream.Client("username, password").sample(consumer())
reactor.run()
6 changes: 3 additions & 3 deletions examples/track.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python
# coding: utf-8

import twitterstream
import txtwitterstream
from twisted.internet import reactor

class consumer(twitterstream.TweetReceiver):
class consumer(txtwitterstream.TweetReceiver):
def connectionMade(self):
print "connected..."

Expand All @@ -19,6 +19,6 @@ def tweetReceived(self, tweet):
# permanently disconnect from the Twitter Stream

if __name__ == "__main__":
twitterstream.Client("username", "password").filter(consumer(),
txtwitterstream.Client("username", "password").filter(consumer(),
track=["football", "soccer", "world cup", "palmeiras"])
reactor.run()
2 changes: 1 addition & 1 deletion txtwitterstream/__init__.py
@@ -1,7 +1,7 @@
"""Twisted client library for the Twitter Streaming API:
http://apiwiki.twitter.com/Streaming-API-Documentation"""

from twitterstream.client import Client, TweetReceiver
from txtwitterstream.client import Client, TweetReceiver

__author__ = "Wade Simmons"
__version__ = "0.0.2"
Expand Down
2 changes: 1 addition & 1 deletion txtwitterstream/client.py
Expand Up @@ -24,7 +24,7 @@
from twisted.web.client import ResponseDone
from twisted.web.http import PotentialDataLoss

from twitterstream.util import StringProducer, auth_header
from txtwitterstream.util import StringProducer, auth_header

try:
import simplejson as _json
Expand Down

0 comments on commit 8e42ca4

Please sign in to comment.