Skip to content

Instantly share code, notes, and snippets.

@matrixcloud
Created December 30, 2018 00:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matrixcloud/958ec1a354daab4d1f725d30e0ec6954 to your computer and use it in GitHub Desktop.
Save matrixcloud/958ec1a354daab4d1f725d30e0ec6954 to your computer and use it in GitHub Desktop.
with codecs.open('./tmp/' + yt.title + '.xml', 'w+', 'utf-8') as f:
f.write(caption.xml_captions)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment