Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lyrics export from Artist class to .txt or .json formats #20

Merged
merged 2 commits into from
Feb 22, 2018

Conversation

johnwmillr
Copy link
Owner

This PR closes #13 and #11. The Artist class now has a save_lyrics() method that gives the user the option to export all lyrics in an artist object into either .json or .txt format. The PR also includes unit tests for both export options. I guess to fully address #11 I should add a save_lyrics method to the Song class, but I'm not going to do that now. I will do that later.

Usage:

artist = api.search_artist("Andy Shauf", max_songs=3)

# Method includes optional params: format, filename, overwrite, skip_duplicates
# Default format is .json
artist.save_lyrics()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Song and Artist info should export as JSON
1 participant