{"id":21520618,"url":"https://github.com/mrnkr/fresh-on-repeat","last_synced_at":"2025-03-17T17:15:20.508Z","repository":{"id":97408890,"uuid":"490824169","full_name":"mrnkr/fresh-on-repeat","owner":"mrnkr","description":"Generate a Spotify playlist with the last songs you liked","archived":false,"fork":false,"pushed_at":"2022-05-10T19:01:28.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-24T04:43:34.316Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrnkr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-10T18:54:57.000Z","updated_at":"2022-05-10T19:01:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"1c668f74-1139-48e6-86fb-c1e7e82d76e3","html_url":"https://github.com/mrnkr/fresh-on-repeat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrnkr%2Ffresh-on-repeat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrnkr%2Ffresh-on-repeat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrnkr%2Ffresh-on-repeat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrnkr%2Ffresh-on-repeat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrnkr","download_url":"https://codeload.github.com/mrnkr/fresh-on-repeat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244075637,"owners_count":20393979,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T01:01:54.828Z","updated_at":"2025-03-17T17:15:20.489Z","avatar_url":"https://github.com/mrnkr.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fresh On Repeat\n\nEasily have this CLI create a playlist with the last songs you liked on Spotify, ideal if you're going on a plane ride and you need to download them real quick.\n\n## How to use\n\n1. Get an access token with the following permissions:\n\n* user-read-private\n* user-read-email\n* playlist-read-private\n* playlist-modify-private\n* user-library-read\n\n### Tip\n\nClone the [`web-api-auth-examples`](https://github.com/spotify/web-api-auth-examples) repository and use the `authorization_code` project to get the access token. Change the requested permissions in line 49 of `app.js`.\n\n2. Setup a `.env` file\n\n```\nACCESS_TOKEN=\u003cpaste_yours_here\u003e\nSONG_COUNT=50\n```\n\n`SONG_COUNT` is the number of songs that will be included in the playlist. Given the way this is coded and the way the Spotify API is made this number has to be \u003c= 50.\n\n3. Install dependencies and run the script\n\n```\nyarn\nyarn start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrnkr%2Ffresh-on-repeat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrnkr%2Ffresh-on-repeat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrnkr%2Ffresh-on-repeat/lists"}