Git Product home page Git Product logo

backgroudyoutubeplayer's Introduction

BackgroudYoutubePlayer

A python program to play youtube videos in the backgroud. With bandwith limitation, videos play at the 144p thus consuming the least amount of data possible. Also a bat file enables us to run this program from the run window itself.

To use :-

  1. Edit the 'path' environment variable, adding a path to the folder you keep these files in.
  2. Open run window and type in 'w' + the name of the song or video (keep this such that the first result is the video you want to play). use double quotes to pass arguments of multile words.

What did i do ?
It is quite easy, most of you might have guessed it. I used Selenium python library to open a browser window, made it invisible by
chrome_options.add_argument("--headless")
browser = webdriver.Chrome(options=chrome_options)
The Programs an argument, which search for that query on youtube, fetches result, the script after which clicks on the first video link and the video starts playing.

Why it is better than Pafy?
I know it would be a lot easier to download the particular video and convert it to mp3, but thus it supports privacy. Here as we are not extracting music out of it, It seems to be a more honest option. Also, the youtube autoplay option adds to the great expreince.

backgroudyoutubeplayer's People

Contributors

vedangj044 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.