ptwobrussell / Mining-the-Social-Web

The official online compendium for Mining the Social Web (O'Reilly, 2011)
http://bit.ly/135dHfs
Other
1.21k stars 491 forks source link

Example 5-2 "the_tweet__extract_tweet_entities.py" #44

Closed tsakamot closed 11 years ago

tsakamot commented 11 years ago

Hi,

I just tried to run "the_tweet__extract_tweet_entities.py", but it returned "{"errors":[{"message":"Bad Authentication data","code":215}]}", even though other examples which need login are working correctly so far.

I tried to put "t = login()" instead of "t = twitter.Twitter(domain='api.twitter.com', api_version='1.1')", and it looks working now.

Thank you.

ptwobrussell commented 11 years ago

Good catch. Commit 358cc71..0d092b6 fixes #44 as you described. Thank you for reporting it.