Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- video = 'https://www.youtube.com/watch?v=cQv8tL-QMxk&fbclid=IwAR2PmqYuiWpReMAzCbniATwNVZyYJpSRdJ4ynEa0A1o84r85DvPWahjLNHk'
- connect = pytube.YouTube(url=video)
- legendas = connect.captions.all()
- down_legendas = connect.captions.get_by_language_code('pt')
- leg = down_legendas.generate_srt_captions()
- lista_02 = leg.replace("\n"," ").split(" ")
- print(lista_02)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement