Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 1.74 KB

README.md

File metadata and controls

47 lines (38 loc) · 1.74 KB

Python Application to Create Spotify Playlist

Description:

  • Application can take any block of text
  • It creates a playlist of Spotify tracks using the Spotify API.
  • Input to the application is provided in the form of command line arguments, if not provided script will prompt the user to provide a text query

Dependency / Installation

Quick Start Modules

  • create_spotify_playlist.py:
    • Main class file
    • reads user input -> parses input -> authorizes spotify -> search for tracks
    • Provide the above fetch client id & secret key to the global variables created in class MyTrack
      • client_id = " "
      • client_secret = " "
    • Following will give examples on how to execute the above script:

Testing

  • test_end_to_end.py

    • Performs end to end testing of the application
    • execution: python test_end_to_end.py
  • test_unitest.py

    • Performs unittest
    • execution: python test_unitest.py

Application Assumptions

  • Splits the user input into short text of size 3 or more
  • filter duplicate tracks