Advertisement
SuNgoc

Untitled

Jan 24th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1.  
  2. import pafy
  3.  
  4. print("Nhập link cần download")
  5. url = input()
  6. video = pafy.new(url)
  7.  
  8. best = video.getbest() #get best resolution regardless of file format
  9. best.resolution, best.extension
  10.  
  11. filename = best.download(quiet=false) #download video and show progress
  12.  
  13.  
  14. print ('done')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement