Skip to content

Instantly share code, notes, and snippets.

// ==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==
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']: