 Okay, a few days ago. I posted a video saying that my patreon supporters are divided Half of them want to see shell script tutorials up next half of them want to see 2d game design So now I'm like my YouTube viewers break the tie by commenting So I asked people to comment on a video here and whether they want shell scripts or whether they want 2d game design So we're gonna count that up now and we're gonna count it kind of sloppily So the numbers may not be a hundred percent accurate But unless the numbers fall within a few you know a few digits of each other It won't really make a difference. It's not like we're giving out prizes or anything. It's just the topic there So we'll do this and see if our numbers are close. So to get YouTube Comments, there's an old API that doesn't work anymore. I think there's a new API But you need to get a key for it blah blah blah. We're just gonna strip the HTML straight So if you I got this from just doing YouTube Google search on YouTube comments if you do YouTube comm forward slash all comments Question mark v equals and then put in the ID of the video You will get all the comments in a basic HTML format here We can quickly see that we have 58 comments So let's go ahead We will take this URL and we'll go into our shell here It's a little bit bigger for you and you can use W get or curl I'm gonna use curl in this case and I'm going to go like so And we should enter and we should see some form of output here in a moment. There we go So the HTML of the page just so we're gonna run pipe this into a bunch of stuff again This may not be the best way to do it It's just a quick and dirty way that I'm gonna do it and we don't want to have to pull it from the website Each time and wait even though it's only a couple seconds pull it down So let's go ahead and redirect this into a file. So dash lowercase o for curl if you're using W get dash capital O And we will call this comments So we just put all that HTML into a file called comments I can cap comments and you can see the HTML there now. We're going to start greping for stuff now. I can Go here and quickly Start looking at the HTML with something like our little shell here if I hit f12 and chrome and some other Browsers it's f12 as well, but you look here and you can see all the elements I can quickly highlight one, you know, like this here and start looking for key words that I can grep for Or if I didn't want to do that, I know that I'm looking for the word shell for shell scripts and 2d for 2d votes So let's go ahead and just use grep will do dash I for case insensitive So it's going to ignore whether the person capitalized the shell or wrote lowercase But we're going to say shell and you don't need quotations in this particular case But it's not a bad habit to get into and we're going to grep through our comments we're saying look through the comments File and return any line that contains the word shell if we hit enter you can see the The return there So at this point One thing we can see is that seems like all these comments because we have to be careful if we go up the top here It's also pulling the title of the page which has the word shell in it So we can see the comment tags are the div tags on the page have a class of Comment text contact content so a better thing to start greping for it would be that so let's go ahead and Paste that in there. So I highlighted that and center clicked which is clicking the center wheel to paste You can always right-click and say copy and right-click to say paste But we're now going to grep that so now we do that now This is all comments here should be all comments now if we look back at the page We can go to the top and it says there are 58 comments and If I now pipe this into W C and do dash L which is a line count if I remember correctly grep has some sort of function like this built-in I'm just saying that because someone's going to yell at me for not just putting it into the grep command But I'm going to pipe this into Wc dash L and it's going to return that there's 55 comments I haven't really again. I'm just doing this quick and dirty I'm assuming that it's probably us do something with replies here And again if we're trying to get it up a very precise number I want to look into more why it's returning 55 rather than 58 comments But again, not a huge deal unless our end numbers are really close And so now we know we have 55 comments all together that we're counting from now I can grep and I can say dash I Shell and I'll return only comments So we're ignoring things like the title of the video and stuff like that And so comments to have the word shelling them and now I can do a word count on that and see that there's 37 Votes theoretically when I say theoretically I mean they say the word shelling them doesn't necessarily mean the person's voting for shell Scrub so we'll get to that in a moment So we'll say 37 votes for shell now. We also had People voting for 2d games so I can search for 2d or I can search for game And you can see some people said 2d some people might have said 2d game, but I want to check for both I can also search for And I should follow my own rule of putting quotations around this I can search 2d game and also returns 20 So probably one of those people probably said 2d without the word game So as you can see the numbers aren't even close So I mean if it was like 35 to 37, I'd be like I need to fine-tune this a little bit But you also might think yourself, okay Well 37 to 21 actually returns 58 which was our original number of comments. I think that's just a coincidence Because the reason for this is some people said the word shell like they maybe said I don't want shell scripts I want 2d game or something like that. So what we can do is we can search for both of those so We can search for 2d and then grep for shell and see what people were saying. So for example here 2d game design, please because there's a lot of resources about shell scripts or so they said both words But they're obviously voting for 2d games. So I say while I want to see shell scripts I'm leaning towards 2d game design. So that's two votes to give towards 2d game design This person's I have no interest in 2d game design But there's so many shell scripts out there You should probably do game design and 2d game design in shell in the shell in a shell script So so that person kind of voted for both these three people were voted for for 2d game design so even if we add three to this bringing up to 24 and bringing this one down to 34 shell script still seems to come out ahead So our next series starting in January will be on shell script. So again, this is a quick dirty way There's lots of ways I could have repped through this and again more accurate ways, but this isn't like a very important you know End of the world Search that we're doing here and the numbers were far enough apart that even though my numbers may not be a hundred percent Accurate, they're close enough to see that shell scripts won. So in January, I will be doing shell script videos again What I plan on doing is quickly reviewing The basics and then jumping into something beyond the basics, I guess But the way I plan on doing it at this point at least for the first couple of weeks or maybe months is Lately I've been doing one video every Wednesday What I plan on doing now is doing a handful of videos on a Particular topic or similar topic on Wednesday. So a Wednesday video will probably have a playlist of five short videos I explain something rather than one long video that way you can I Know when I go to YouTube and I see a video that's rather long I kind of skip through it or I'll get back to it later. I never do so Like the first week, I might do five short videos on the echo command, you know But very short ones, but you'll have five that week that you can look through and then the next week We'll have five on something else and I'm just throwing five out there as a number It may not be five, but there'll be a number of videos each week, but I'll release in the same day So you can watch them all at once if you want But I'll also be doing other videos. I'm gonna be doing some Software review videos and things of that nature on other days So look forward to that and so I'm upping the number of videos for at least the first couple of months in 2016 and I'll talk more about that in another video But I'm basically doing it in hopes to get more support from viewers Because I cut back a while ago on the number of videos I did because the support I'm getting is rather low if I can up my support I can justify doing more videos so I'm hoping that if I Start doing the work, maybe the support will come in but I'll talk more about that in another video Again, this video is getting kind of long. I thank you for watching if you voted for 2d game design I'm sure I'll be doing that in the future in your future and So I'm sorry that didn't come up now would have been a fun topic But it's been a while since I've done shell script videos in a series. So that's it Thanks for watching. Please is it filmsbychrist.com? That's Chris of the K. There should be a link in the description as always Thanks for watching visit my website filmsbychrist.com. That's Chris of the K Link to that in the description Like subscribe share. I hope you like I have a bunch of new video intros and outros that I'm doing that I just put together for the the new year that you may have seen at the beginning of this video and at the end Anyway, just pointing that out. Thanks for watching. Have a great day