This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name hide-linkedin-news | |
// @namespace dtmf.ca | |
// @version 2024-04-28 | |
// @description no news == good news | |
// @author dtmf | |
// @match *://*.linkedin.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pafy | |
playlist_url = raw_input("Please enter a proper Youtube playlist URL: ") #must be properly formatted like https://www.youtube.com/playlist?list=PL557BC4AF6ABFF637 | |
playlist = pafy.get_playlist(playlist_url) | |
how_many_vids_in_this_playlist = len(playlist['items']) #long variables are fun | |
print "Thanks for the URL, I'm now going to download", how_many_vids_in_this_playlist, "videos" | |
for videos in playlist['items']: |