- For this self check exercise I'd like you to use
the search capabilities that I just demonstrated
this time to look specifically for just one tweet
from the NASA account and we wanna make sure
that that tweet contains the word astronaut.
So go ahead and pause the video to give that a shot
then come back to see the answer.
Okay let's go ahead and reveal
the call to the search method of the API object.
Here's my query string in this case
so I'm looking for the word astronaut
in a tweet specifically from the NASA account
and in this case I'd like to just get one search result
so that's going to again give me back a collection
of those results and of course
I have my print tweets function
that I demonstrated to you in the preceding video
and I'll call that to display the output.
This is from the NASA account.
It happens to be a retweet and you'll notice
that the word astronaut does in fact appear
within it's text.