Advertisement
Guest User

Untitled

a guest
Aug 14th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. video = 'https://www.youtube.com/watch?v=cQv8tL-QMxk&fbclid=IwAR2PmqYuiWpReMAzCbniATwNVZyYJpSRdJ4ynEa0A1o84r85DvPWahjLNHk'
  2. connect = pytube.YouTube(url=video)
  3. legendas = connect.captions.all()
  4. down_legendas = connect.captions.get_by_language_code('pt')
  5.  
  6. leg = down_legendas.generate_srt_captions()
  7. lista_02 = leg.replace("\n"," ").split(" ")
  8. print(lista_02)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement