- In this self check exercise
I'd like you to use that Tweepi api object that we used
in the preceding video
to get a User object from Tweepi
that represents the NASAKepler Twitter account
or if you'd like,
you can use some other Twitter account as well
and then we want you to simply display that accounts'
number of followers and most recent tweet.
So go ahead and pause the video to give that a shot
then come back here to see the answer.
Okay the first step of course is going to be
to get the user object
so we're going to use the get user method of the api object
to do that.
Again we're getting the account by it's Twitter handle
in this case NASAKepler,
and if that executes successfully we can then
interact with that variable that we just created
to get the number of followers
via the followers count attribute
and similarly we can get the most recent tweet
by accessing the status objects text property or attribute.
So this is the most recent tweet as of today
from the NASAKepler account.