Comments (6)
When using search.twitter.com you have to set the api_version to None. However, I will fix this common pitfall in 1.6.1.
from twitter.
I am still having this problem. I have tried it with and without setting the api_version to None - neither seems to work. Any thoughts on why this might be?
from twitter.
hmm, are u using version 1.6.1? If not, try using the latest version ( version 1.6.1 ).
Else you can try to set api_version="" # an empty string
It worked for me.
You can read this blog post : http://www.liangeugene.com/2011/04/error-with-twitter-package-by-sixohsix-and-its-solution/
Best.
from twitter.
Still having the problem, (under version 1.6.1) but I'm specifically searching for trends, so I might be commenting in the wrong place. I tried the suggestions above without luck, but thank you for sharing them.
Incidentally, the code I tried was:
import twitter
twitter_search = twitter.Twitter(domain='search.twitter.com', api_version='')
trends = twitter_search.trends()
But I'll stop spamming this thread, as it is my suspicion that the resulting error has to do with a twitter change in how trends are handled through the API, and may require a separate issue to be opened.
Thanks!
from twitter.
According to the Twitter documentation, trends are accessed via api.twitter.com, NOT search.twitter.com.
http://dev.twitter.com/doc/get/trends
import twitter
twitter = twitter.Twitter()
trends = twitter.trends()
from twitter.
This code comes from the O'Reilly erratum and is verified to be functional
import twitter
twitter_api = twitter.Twitter(domain='api.twitter.com', api_version='1')
trends = twitter_api.trends()
from twitter.
Related Issues (20)
- HTMLParser' object has no attribute 'unescape' HOT 2
- Twitter HOT 1
- Can it support custom action? HOT 1
- support for Twitter API v2 HOT 6
- Roadmap Twitter v2 HOT 2
- Duplicated line in test
- [Problem] How to fetch another batch of tweets search? HOT 2
- [API v2] OAuth 1.0a failed for auth info is not passed through Headers HOT 3
- Mock could be just optional dependency
- twitter-archiver not working HOT 1
- twitter-archiver only works with recent tweets HOT 1
- Twitter API HOT 1
- Media uploading HOT 1
- Datatype "unicode" throws an error in python 3.9
- twitter API
- Twitter tools
- retweeters id don't go to HOT 2
- Module no longer works with Twitter free tier HOT 4
- Change from Twitter to ExTwitter HOT 1
- mint
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 twitter.