diff --git a/src/scraper.py b/src/scraper.py index 02ef9b5..fabb82c 100644 --- a/src/scraper.py +++ b/src/scraper.py @@ -1,7 +1,12 @@ import requests + from auth import authenticate + def main(): + """ + This function is the main function that will be executed when the script is run + """ scope = "user-read-recently-played" bearer_token = authenticate(scope) last_played_track = _get_last_played_track(bearer_token=bearer_token) @@ -27,4 +32,4 @@ def _get_last_played_track(limit: str = "1", bearer_token: str = "") -> dict: if __name__ == '__main__': - main() \ No newline at end of file + main()