Skip to content

Instantly share code, notes, and snippets.

@sergiolucero
Last active August 30, 2018 18:18
Show Gist options
  • Save sergiolucero/bf7d6e40c7657e46d40c58bcfa309983 to your computer and use it in GitHub Desktop.
Save sergiolucero/bf7d6e40c7657e46d40c58bcfa309983 to your computer and use it in GitHub Desktop.
from docx import Document
def compilar_cancionero(artista):
data_canciones = recopila_acordes(artista)
document = Document()
document.add_heading(artista, 0)
for songname, song_chords in data_canciones.items():
document.add_heading(songname, level=1)
document.add_paragraph(song_chords) # style='Intense Quote'
document.save(f'{fartist}.docx')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment