- The last step before we get into the actual source
code of this lesson is going to be to get the Tweepy
library installed on to your systems. First of all,
you can learn more about the Tweepy library at
tweepy.org. Here's where you'll find the access
to the on-line documentation. Let me just open that
in a separate tab here. So getting started plus all
the information you need to know about working with
the Tweepy API.
And the separately back on the main Tweepy page
you can also jump on to this button here and
click it to go to the get hub repository for
Tweepy. This is where you can actually look, if
you want, at the Tweepy source code. They have some
example code here that you can use to learn as well.
And the just some additional information about
installation and more.
So going back over my slide for a moment. As you are
about to see, this library is going to give you super
easy access to Twitter's capabilities and it's going
to hide a lot of the more difficult details of things
like authenticating with Twitter from you and dealing
with the java script object notation.
And then separately to install Tweepy, you're going
to use the pip tool, pip install tweepy. And we added
on the greater than or equal to 3.7 to just ensure
that we're getting the most up-to-date Tweepy library.
And the reason for that is in Python 3.7 there were
some changes in key words that actually broke earlier
versions of the Tweepy library. So you do want to make
sure that you have one that's up-to-date and capable
of being used with Python 3.7 and higher which is what
we use in our videos. Now, separately as long as you're
doing the install you should also go ahead and execute
this installation command for the geopy library.
We'll be using that later on in this lesson to take
locations of tweets and translate them into latitude
and longitude coordinates that we can use to plot
tweet locations on interactive maps, which is a kind
of cool example that we'll do towards the end of this
lesson. And just a reminder to any of you who are
Windows users, you're going to use the anaconda prompt
to execute these command and you probably want to
execute the anaconda prompt as administrator to
ensure that the libraries get installed correctly.