YouTube BOT (Python GUI + Selenium)


Stream YouTube Videos

    Do you want more views on your account? Might want to try this code. All you need to do is install the required libraries and run the program, input necessary details (link, loop, and exact time of the video) and finally click that ok button and wallah! It is now streaming!

Creation and Importing of the BackEnd of the Gui 

        As we can see in the first part of the  picture below "import backENDyoutube as BE" which means we are importing the other file needed or the function part of our code. The latter picture will show it. Here, we can clearly see that this code pertains to a simple GUI, as a "class" is made to group them all together and at the bottom part we simply call the class to execute these lines of code which belongs to the class. 
    






The BackEnd (Functions)

    T    We need to install the webdriver of what browser we are currently using, in my case it is google, I searched for its webdriver and the exact version of it so that I can execute the test and run it using selenium. Here I created a function that passes three arguments, the link of the specific YouTube video and how many times it should be repeated and also the time or seconds of the video. I created a loop so that it can stream the video how many times you want to. I used the inspect element of google to find the exact element id or xpath of the website and execute the following command using selenium's webdriver. The ads are skipped timely 5 seconds at the start of the video ( if there are any)

This code that I created is for fun only, I implemented what I learn in school and did some research on YouTube. If I gave you some idea leave a comment below!
Continue learning. Share. Live life. Be Kind













































Comments

Popular posts from this blog

Prime Numbers Checker, Prime Factors using (Python GUI + backEnd + Main)