0.6.3 • Published 6 years ago

youtube-bookmarks-player v0.6.3

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

Easy Youtube Playlist Bot

alt tag

I had the problem that I got hundreds of bookmarked YouTube Videos. The Problem was that I got a lot of playlist links like

https://www.youtube.com/watch?v=DqL6cX9NNMk&index=155&list=PLyseQqCmfI7VNA9qPyHhbfm3y1IajTqah

So you can´t use the internal YouTube Playlist Feature to bulk import all of your favorite URL´s because only normal /watch links will work.So I thought why not creating a Node.js Module that will emulate a Playlist and will open all of your links with Chrome/Opera, chromedriver/operadriver. Of course you can easy change the browser or change other stuff look here pls

http://www.seleniumhq.org/about/platforms.jsp

But I will create this script only for Chrome/Opera & Chromedriver/Operadriver so you need to do the changes by yourself if you prefer another browser. Also notice that this script will be only tested with Chrome!

Extras

  • Randomise your URL´s each new start for fresh Playlist feeling
  • "This video is unavailable videos" will be skipped now - Generally if NO video duration was found video will be skipped
  • With Version 0.5.0 were fixed some perfomance bugs with adding .pause or timeouts to different parts of the script.
  • Since Version 0.3.5 is Opera in this project included.
  • You don´t need XAMPP for this Project.

First you need to install/download: Chrome/Opera, Chromedriver/Operadriver, Java, Selenium Standalone Server(I use 3.5.0)It should also work with normal Selenium but never tested. Then I use this .bat code on windows to start selenium standalone server with chromedriver. Please notice that the include code of the webdriver changes on the selenium standalone version you use.

color 4
cd /d C:\xampp\htdocs\youtube_bookmarks_player\
taskkill /f /im java.exe
java -Dwebdriver.chrome.driver="C:\\xampp\\htdocs\\youtube_bookmarks_player\\chromedriver.exe" -jar selenium-server.jar
:: Or here include code for Opera - Default browser in this script is Chrome with chromedriver
:: java -Dwebdriver.opera.driver="C:\\xampp\\htdocs\\youtube_bookmarks_player\\chromedriver.exe" -jar selenium-server.jar
pause

For me it worked without to download operadriver.exe as you see from the include code from the top. It worked with chromedriver.exe

Then install all of these modules.

npm install webdriverio fs serial-loop unq shuffle-array youtube-bookmarks-player

Export your Bookmarks from your Browser and rename the file to play_me and save the file before the node_modules folder. In my case C:\xampp\htdocs\musicbot\play_me.html - My node modules folder would be at C:\xampp\htdocs\musicbot\node_modules If you get path problems or something else you need to rewrite the module by yourself.

Then call the script with

const youtube_bookmarks_player = require('youtube-bookmarks-player');
      youtube_bookmarks_player();

IMPORTANT - Please install Adblock Plus. This script will check at the beginning the video duration. But if there is advertisement video the script will bug. I preinclude in this script that you open always the same browser profile this means you can install addons and they won´t be away at the next start. It is just like you would use your browser as normal user :)

If you have problems with making npm install then please download this plugin here

https://github.com/arenacheck/YouTube-Bookmarks-Player

insert at ./node_modules/youtube-bookmarks-player
For Selenium / Chromedriver/Operadriver start options please look in the same folder at index.js - You will find at the top sample code for Chrome and Opera. If not already exist you must create the folder "Profiles" at the path below for Opera. Inside this folder create the folder youtube_bookmark_player. Then control if the code below has the same path structur as in your machine. If not or if you are using an other OS then please edit the line below in index.js

user-data-dir=C:\\Users\\Administrator\\AppData\\Local\\Opera Software\\Opera Stable\\Profiles\\youtube_bookmark_player

For Chrome you don´t need to pre create the folder it will be created by itself. But for Opera it worked for me only If I manually create the folder.

License

MIT - created by Dennis Demand - www.hornyfamily.online
You can do what ever you want with this script:) If you want to support the backlink to www.hornyfamily.online
Warning the links from above contains sexual content and should be only viewed by people over 18 years!

0.6.3

6 years ago

0.6.2

6 years ago

0.6.1

6 years ago

0.6.0

6 years ago

0.5.9

6 years ago

0.5.7

6 years ago

0.5.6

6 years ago

0.5.5

6 years ago

0.5.4

6 years ago

0.5.3

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

7 years ago

0.4.9

7 years ago

0.4.8

7 years ago

0.4.7

7 years ago

0.4.6

7 years ago

0.4.5

7 years ago

0.4.4

7 years ago

0.4.3

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.9

7 years ago

0.3.8

7 years ago

0.3.7

7 years ago

0.3.6

7 years ago

0.3.5

7 years ago

0.3.4

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.9

7 years ago

0.2.8

7 years ago

0.2.7

7 years ago

0.2.6

7 years ago

0.2.5

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.0

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.5

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago