Comments (7)
I have the same problem with tweepy 1.7.1
It works with basic authentication:
streaming_api = tweepy.streaming.Stream(username, password, CustomStreamListener(), timeout=60)
but refuses oauth:
streaming_api = tweepy.streaming.Stream(auth, CustomStreamListener(), timeout=60)
from recipes-for-mining-twitter.
You're right. Basic authentication works. Thanks!
However, have I missed any requirement to get oauth work?
from recipes-for-mining-twitter.
I'm really sorry that I didn't respond to this issue sooner. It slipped through the cracks. I've tested this with tweepy 1.7.1 (as verified by
import tweepy
print tweepy.__version__
and it runs as expected. Could you possibly verify your version of tweepy as shown above and make sure that you have the latest code? I'd really like to help get this cleared up, and that would be a very valuable data point for me.e
from recipes-for-mining-twitter.
Hi,
I am experiencing the same problem with oauth, although I haven't tried basic yet. I get the TypeError message mentioned above. I just issued pip install tweepy about an hour ago and so I do have 1.7.1. I have tried giving an extra argument, such as snooze_time, but that doesn't seem to affect anything.
Has there been any progress on this? Let me know if I can provide any more data for you - although I am a github newbie, so be forewarned!
Thanks for any help!
from recipes-for-mining-twitter.
Also, as long as I am showing my confusion/ignorance -- it's not clear to me how to expose the tab-delimited table that is created in the custom listener. Having ended up with a streaming API via basic auth but otherwise following the sample code, I want to do something like:
tweets = streaming_api.sample()
for t in tweets:
if t.get('text'):
print(t['text'])
but tweets isn't iterable. I realize this is almost certainly a dumb question - sorry :/
from recipes-for-mining-twitter.
I had the same problem. installing from git seems to solve it
setuptools - from Git repository
git clone git://github.com/tweepy/tweepy.git
cd tweepy
python setup.py install (run as admin/root)
https://github.com/tweepy/tweepy/blob/master/INSTALL
from recipes-for-mining-twitter.
Thanks a lot, fadmaa. I was having a little bit of time reproducing this problem - probably because there was a regression in Tweepy somewhere along the line, but I'd been installing the latest from Git and not thinking to explicitly recommend that others do the same.
FWIW, everyone should note that you can also install directly from HEAD (or a particular revision) using pip like so:
pip install -e git+git://github.com/tweepy/tweepy.git#egg=tweepy-latest
Variations also exist that allow you to apply @revisions, etc. to install specific commits from GitHub.
Note that pip itself can be easy_installed via the standard "easy_install pip"
from recipes-for-mining-twitter.
Related Issues (9)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recipes-for-mining-twitter.