1 00:00:00,210 --> 00:00:01,380 Hi, welcome back. 2 00:00:01,500 --> 00:00:09,740 In this video, we will complete our journey and and learning how to use Twitter if I was by son. 3 00:00:09,900 --> 00:00:15,630 So we have received the Twitter account application approval. 4 00:00:16,750 --> 00:00:19,900 We were signing a developer account. 5 00:00:21,500 --> 00:00:32,750 Then create our app name, which will be based on their buy by some project and collect get Case Zen 6 00:00:32,750 --> 00:00:34,220 and sublime text. 7 00:00:34,280 --> 00:00:45,170 We will try to import thwe by Python library or module, but firstly we will save our BI file in a new 8 00:00:45,170 --> 00:00:49,880 folder called Twitter Chappellet as Twitter. 9 00:00:50,910 --> 00:00:51,820 Chambord. 10 00:00:53,120 --> 00:01:04,190 That by then click save to save the file as Abai file or Pisin extension file, then we will check our 11 00:01:04,490 --> 00:01:15,080 system which must be or shall be Pisin and the Views and Syntex, which will be also at Python or adjusted 12 00:01:15,080 --> 00:01:18,690 to Piso import weepie as GW. 13 00:01:18,710 --> 00:01:21,440 And we will build our project. 14 00:01:22,300 --> 00:01:33,340 To run this line of code and we get an import error as we don't have to, we buy module and our Python 15 00:01:33,350 --> 00:01:42,940 three, so we will install it using C and D or Terminal Emek, I will use CMD because my operating system 16 00:01:43,210 --> 00:01:46,690 is when the sole purpose re install wi by. 17 00:01:47,610 --> 00:01:55,080 And click enter to run the comment, which will take some time to run. 18 00:01:56,850 --> 00:01:57,360 Then. 19 00:01:59,410 --> 00:02:05,590 We now have to buy and installed in our bison's free version and can. 20 00:02:06,740 --> 00:02:17,660 Run it, as you see, but it's important for our crew to run correctly, to install or upgrade the city 21 00:02:17,930 --> 00:02:28,340 as followed by some Dot EXI and BEB and install, hyphen, hyphen, upgrade and run this comment. 22 00:02:28,730 --> 00:02:37,490 This will upgrade by installing the old version and installing the new one, as you see, after we have 23 00:02:37,500 --> 00:02:41,130 installed PIP successfully and upgraded it again. 24 00:02:41,180 --> 00:02:44,260 Now we can started with a tweet by by cabbing. 25 00:02:44,270 --> 00:02:44,930 Hello. 26 00:02:45,300 --> 00:02:56,510 We could without the board could fly and then added to our sublime text from the documents of the web. 27 00:02:56,780 --> 00:03:06,740 But before running this lines of code, we need to add the consumer and consumer secured and access 28 00:03:06,740 --> 00:03:16,760 token and access token secured as a variable after the bold statement as the following consumer will 29 00:03:16,760 --> 00:03:19,530 equal between two parentheses. 30 00:03:19,550 --> 00:03:28,310 Also, the consumers take it will be equal between two parentheses or a value that represented the K, 31 00:03:28,400 --> 00:03:33,470 the same for access token and access token secretase. 32 00:03:33,680 --> 00:03:38,450 But the question here, how can I get these four values? 33 00:03:38,750 --> 00:03:44,540 We can get these four values from the Twitter API, the following tools. 34 00:03:44,540 --> 00:03:52,520 That Twitter app that I want to connect to our person could then click on the K icons will take us to 35 00:03:52,520 --> 00:04:03,080 another screen that we will generate the API case and API seconds, which is the consumer and the consumer. 36 00:04:03,170 --> 00:04:13,760 Secrett, I will copy this case by using the corporate icon and the left side of HK and best every K 37 00:04:13,940 --> 00:04:19,640 in its place in our code as you see, then run our code. 38 00:04:20,150 --> 00:04:32,510 I forget to add t w instead of twelve, then our code will run correctly and get the timeline tweets 39 00:04:32,510 --> 00:04:33,730 of my account. 40 00:04:33,740 --> 00:04:40,460 Now I can read all the tweets and the timeline of my account and the console. 41 00:04:40,460 --> 00:04:44,160 As you see now I will add something. 42 00:04:44,160 --> 00:04:47,980 A new user equal if I don't mean them. 43 00:04:48,020 --> 00:04:59,180 Brene user details are then in a new line drawn between two parentheses, user name and also print user. 44 00:04:59,180 --> 00:05:06,860 Dot the screen name, then Brent user dot followers underscore, count and build our project to return 45 00:05:06,860 --> 00:05:12,680 the user name and user screen name and the number of followers in the console. 46 00:05:12,680 --> 00:05:13,600 As you see now. 47 00:05:13,610 --> 00:05:19,070 I will go to my account at Twitter to ensure of this information. 48 00:05:19,100 --> 00:05:22,340 Tamarama will take Learning Academy at Tammar. 49 00:05:22,460 --> 00:05:28,430 It's five five one zero five two nine one and also the whole world is ten. 50 00:05:28,850 --> 00:05:38,810 All these information about methods and classes of Twitter API you will find and tweet by documentation's. 51 00:05:39,620 --> 00:05:42,540 As you see, also we can. 52 00:05:43,960 --> 00:05:51,490 Bent all the friend screen screenname, the following for friend and user got friends. 53 00:05:52,350 --> 00:05:53,010 Massoud. 54 00:05:55,290 --> 00:05:59,970 Brent between two, Brent, as his friend on the screen, underscored name. 55 00:06:02,020 --> 00:06:08,290 Apprentices and after running this, could Etoile brand the screen? 56 00:06:09,390 --> 00:06:17,730 Name, friends or friend's name as the following for friend and use, are those friends, MassArt brand 57 00:06:17,730 --> 00:06:19,630 friends that name. 58 00:06:19,650 --> 00:06:29,880 So in this lecture or video, we learn many things to do with Twitter API to create Twitter chat, both 59 00:06:29,880 --> 00:06:36,590 by using the power of tweet by module or tweet by Python Library. 60 00:06:36,660 --> 00:06:41,940 We can get the user details and the friend is Chowan. 61 00:06:41,940 --> 00:06:51,140 And also we can get our every friend screen user name, as you see in the console at this point. 62 00:06:51,150 --> 00:06:53,130 We reached the end of this lecture. 63 00:06:53,200 --> 00:06:56,270 Hope you enjoyed this lecture and get all of that. 64 00:06:56,610 --> 00:06:59,610 Thanks for being here and thanks for watching. 65 00:06:59,910 --> 00:07:00,570 See you. 66 00:07:00,750 --> 00:07:01,790 Next video. 67 00:07:02,070 --> 00:07:12,300 And in the next video, we will complete how can add more functions to our Twitter Chappells.