I have a problem when reading the book Mining the Social Web because I live in China and we can’t access Twitter due to government internet filtering.
I got stuck when testing this example in chapter 1-3:
`import twitter`
`twitter_search = twitter.Twitter(domain="api.twitter.com")`
`trends = twitter_search.trends()`
It stops here.
I tried a Twitter API proxy, but still couldn’t get the data using the Twitter Api.
You could try to use a VPN outside your country or maybe try out Tor. No guarantees that it’s not illegal in the People’s republic of China, though.
I suffer with you.