{"id":17621105,"url":"https://github.com/jliuhtonen/lastfm-dump","last_synced_at":"2025-03-30T01:18:14.359Z","repository":{"id":30194644,"uuid":"33745454","full_name":"jliuhtonen/lastfm-dump","owner":"jliuhtonen","description":"Export scrobbles from Last.fm to MongoDB","archived":false,"fork":false,"pushed_at":"2018-08-28T18:00:05.000Z","size":56,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T03:16:45.486Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Haskell","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/jliuhtonen.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}},"created_at":"2015-04-10T18:58:37.000Z","updated_at":"2023-10-13T08:43:58.000Z","dependencies_parsed_at":"2022-08-17T19:55:05.453Z","dependency_job_id":null,"html_url":"https://github.com/jliuhtonen/lastfm-dump","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/jliuhtonen%2Flastfm-dump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jliuhtonen%2Flastfm-dump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jliuhtonen%2Flastfm-dump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jliuhtonen%2Flastfm-dump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jliuhtonen","download_url":"https://codeload.github.com/jliuhtonen/lastfm-dump/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246262600,"owners_count":20749175,"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-10-22T20:10:40.436Z","updated_at":"2025-03-30T01:18:14.343Z","avatar_url":"https://github.com/jliuhtonen.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lastfm-dump\n\nLastfm-dump is a tool that fetches your listening data from Last.fm and inserts them to Mongo DB so you can make all sorts of interesting stuff with your listening data.\n\nThe resulting BSON objects will look like this:\n\n```\n{\n    \"_id\": ObjectId(\"5522c37ca7956d6b02000010\"),\n    \"name\": \"Carrie \u0026 Lowell\",\n    \"artist\": {\n        \"name\": \"Sufjan Stevens\",\n        \"mbid\": \"01d3c51b-9b98-418a-8d8e-37f6fab59d8c\"\n    },\n    \"album\": {\n        \"name\": \"Carrie \u0026 Lowell\",\n        \"mbid\": \"87b4a614-d53d-4495-b176-5d4f2bb353e6\"\n    },\n    \"url\": \"http://www.last.fm/music/Sufjan+Stevens/_/Carrie+\u0026+Lowell\",\n    \"scrobbledAt\": ISODate(\"2015-04-05T20:56:41Z\")\n}\n```\n\n## Compiling\n\nInstall stack and...\n\n```\nstack setup\nstack build\n```\n\nOr use Docker:\n`docker build -t lastfm-dump .`\n\n## Usage\n\nTo sync your data to Mongo, start your mongod and run `lastfm-dump` with the following env vars set either in `.env` file or environmental variables: \n\n```\nMONGODB_PASSWORD=\u003csecret\u003e\nMONGODB_USER=\u003csecret\u003e\nMONGODB_DBNAME=\u003csecret\u003e\nMONGODB_ADDRESS=\u003csecret\u003e\nMONGODB_PORT=\u003csecret\u003e\nLASTFM_API_KEY=\u003csecret\u003e\nPAGE_SIZE=200\nLASTFM_USER=myUser\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjliuhtonen%2Flastfm-dump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjliuhtonen%2Flastfm-dump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjliuhtonen%2Flastfm-dump/lists"}