SHARE
TWEET

Untitled

a guest Aug 14th, 2019 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top