1 00:00:00,860 --> 00:00:03,480 - The last step before we get into the actual source 2 00:00:03,480 --> 00:00:06,930 code of this lesson is going to be to get the Tweepy 3 00:00:06,930 --> 00:00:09,760 library installed on to your systems. First of all, 4 00:00:09,760 --> 00:00:12,900 you can learn more about the Tweepy library at 5 00:00:12,900 --> 00:00:16,230 tweepy.org. Here's where you'll find the access 6 00:00:16,230 --> 00:00:19,080 to the on-line documentation. Let me just open that 7 00:00:19,080 --> 00:00:22,210 in a separate tab here. So getting started plus all 8 00:00:22,210 --> 00:00:24,860 the information you need to know about working with 9 00:00:24,860 --> 00:00:26,363 the Tweepy API. 10 00:00:26,363 --> 00:00:29,460 And the separately back on the main Tweepy page 11 00:00:29,460 --> 00:00:32,060 you can also jump on to this button here and 12 00:00:32,060 --> 00:00:35,500 click it to go to the get hub repository for 13 00:00:35,500 --> 00:00:37,760 Tweepy. This is where you can actually look, if 14 00:00:37,760 --> 00:00:40,550 you want, at the Tweepy source code. They have some 15 00:00:40,550 --> 00:00:44,290 example code here that you can use to learn as well. 16 00:00:44,290 --> 00:00:47,600 And the just some additional information about 17 00:00:48,920 --> 00:00:50,081 installation and more. 18 00:00:50,081 --> 00:00:52,350 So going back over my slide for a moment. As you are 19 00:00:52,350 --> 00:00:54,670 about to see, this library is going to give you super 20 00:00:54,670 --> 00:00:57,930 easy access to Twitter's capabilities and it's going 21 00:00:57,930 --> 00:01:02,210 to hide a lot of the more difficult details of things 22 00:01:02,210 --> 00:01:05,290 like authenticating with Twitter from you and dealing 23 00:01:05,290 --> 00:01:08,600 with the java script object notation. 24 00:01:08,600 --> 00:01:12,060 And then separately to install Tweepy, you're going 25 00:01:12,060 --> 00:01:15,060 to use the pip tool, pip install tweepy. And we added 26 00:01:15,060 --> 00:01:19,103 on the greater than or equal to 3.7 to just ensure 27 00:01:19,103 --> 00:01:22,580 that we're getting the most up-to-date Tweepy library. 28 00:01:22,580 --> 00:01:26,690 And the reason for that is in Python 3.7 there were 29 00:01:26,690 --> 00:01:30,930 some changes in key words that actually broke earlier 30 00:01:30,930 --> 00:01:34,620 versions of the Tweepy library. So you do want to make 31 00:01:34,620 --> 00:01:37,960 sure that you have one that's up-to-date and capable 32 00:01:37,960 --> 00:01:41,180 of being used with Python 3.7 and higher which is what 33 00:01:41,180 --> 00:01:45,640 we use in our videos. Now, separately as long as you're 34 00:01:45,640 --> 00:01:48,580 doing the install you should also go ahead and execute 35 00:01:48,580 --> 00:01:52,050 this installation command for the geopy library. 36 00:01:52,050 --> 00:01:55,380 We'll be using that later on in this lesson to take 37 00:01:55,380 --> 00:01:59,340 locations of tweets and translate them into latitude 38 00:01:59,340 --> 00:02:02,430 and longitude coordinates that we can use to plot 39 00:02:02,430 --> 00:02:06,900 tweet locations on interactive maps, which is a kind 40 00:02:06,900 --> 00:02:09,880 of cool example that we'll do towards the end of this 41 00:02:09,880 --> 00:02:12,780 lesson. And just a reminder to any of you who are 42 00:02:12,780 --> 00:02:16,260 Windows users, you're going to use the anaconda prompt 43 00:02:16,260 --> 00:02:19,110 to execute these command and you probably want to 44 00:02:19,110 --> 00:02:22,670 execute the anaconda prompt as administrator to 45 00:02:22,670 --> 00:02:25,513 ensure that the libraries get installed correctly.