Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chaprte 1 Exemple 1.2 its not working #332

Open
eleuuterio opened this issue Feb 27, 2018 · 1 comment
Open

Chaprte 1 Exemple 1.2 its not working #332

eleuuterio opened this issue Feb 27, 2018 · 1 comment

Comments

@eleuuterio
Copy link

eleuuterio commented Feb 27, 2018

Im trying to find trending topics in Brasil with the following code:

WORLD_WOE_ID = 1
BR_WOE_ID = 455821

world_trends = twitter_api.trends.place(_id=WORLD_WOE_ID)
br_trends = twitter_api.trends.place(_id=BR_WOE_ID)

print(world_trends)
print(br_trends)

As output I receive:

<twitter.api.Twitter object at 0x7fa586b56400>

It was suposed to print the trendings as:

[{u'created_at': u'2013-03-27T11:50:40Z', u'trends': [{u'url': u'http://twitter.com/search?q=%23MentionSomeoneImportantForYou'...

The Aouth credentials are working normally.
In using Python3 to do it, but the material I'm following uses Python2 (I'm correcting everything by my self and so far everything works as in the book.
Except for this part.

Any thoughts?

@eleuuterio
Copy link
Author

NEVERMIND, stupid mistake !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant