Hello Everyone this is my first answer:)
you can use get_playlist2() as @JalxP said
just checkout the below code and run it.
I think It should solve the problem
Thanks!
import pafy
import sys
import time
url = sys.argv[1] # takes the playlist link as argument
details = pafy.get_playlist(url)
playlist = pafy.get_playlist2(url)
# below three statements print the tilte,author and number of videos
print(details['title'])
print(details['author'])
print(len(playlist))
# path to store the videos
userpath = input("enter path to save the playlist:")
# you can modify this for loop for a particular range of videos
# this a bare-bone
# this loop downloads all the videos in the playlist
for item in range(len(playlist)):
url = playlist[item].getbest()
url.download(userpath)
time.sleep(3)# just to not make immediate download calls