{"id":13653823,"url":"https://github.com/dbeley/lastfm_cg","last_synced_at":"2025-10-25T02:31:17.868Z","repository":{"id":40973787,"uuid":"188267275","full_name":"dbeley/lastfm_cg","owner":"dbeley","description":"Lastfm collage generator (+ twitter/mastodon bot to post the generated collages).","archived":false,"fork":false,"pushed_at":"2025-01-19T23:31:50.000Z","size":11443,"stargazers_count":9,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T02:35:24.838Z","etag":null,"topics":["lastfm","lastfm-collage","lastfm-collage-generator","mastodon","twitter"],"latest_commit_sha":null,"homepage":"","language":"Python","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/dbeley.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,"zenodo":null}},"created_at":"2019-05-23T16:08:51.000Z","updated_at":"2025-10-04T15:40:00.000Z","dependencies_parsed_at":"2025-05-08T15:13:47.792Z","dependency_job_id":null,"html_url":"https://github.com/dbeley/lastfm_cg","commit_stats":{"total_commits":108,"total_committers":4,"mean_commits":27.0,"dds":0.03703703703703709,"last_synced_commit":"27f5c4f345029a8ba529b6c0819a07a0561fc01f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dbeley/lastfm_cg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbeley%2Flastfm_cg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbeley%2Flastfm_cg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbeley%2Flastfm_cg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbeley%2Flastfm_cg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dbeley","download_url":"https://codeload.github.com/dbeley/lastfm_cg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dbeley%2Flastfm_cg/sbom","scorecard":{"id":328843,"data":{"date":"2025-08-11","repo":{"name":"github.com/dbeley/lastfm_cg","commit":"f95bd1c0b6bb68ff982a0df42ebefea14094206d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/dbeley/lastfm_cg/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/dbeley/lastfm_cg/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/dbeley/lastfm_cg/ci.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:25","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:26","Warn: pipCommand not pinned by hash: .github/workflows/ci.yml:27","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   3 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-48p4-8xcf-vxj5","Warn: Project is vulnerable to: GHSA-pq67-6m6q-mj2v"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T03:07:01.462Z","repository_id":40973787,"created_at":"2025-08-18T03:07:01.462Z","updated_at":"2025-08-18T03:07:01.462Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280872016,"owners_count":26405606,"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","status":"online","status_checked_at":"2025-10-24T02:00:06.418Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["lastfm","lastfm-collage","lastfm-collage-generator","mastodon","twitter"],"created_at":"2024-08-02T02:01:18.472Z","updated_at":"2025-10-25T02:31:14.275Z","avatar_url":"https://github.com/dbeley.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# lastfm_cg : lastfm collage generator\n\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/0ee651b54bfd40d4aeece00298dd3fd0)](https://app.codacy.com/app/dbeley/lastfm_cg?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=dbeley/lastfm_cg\u0026utm_campaign=Badge_Grade_Dashboard)\n![Build Status](https://github.com/dbeley/lastfm_cg/workflows/CI/badge.svg)\n[![codecov](https://codecov.io/gh/dbeley/lastfm_cg/branch/master/graph/badge.svg)](https://codecov.io/gh/dbeley/lastfm_cg)\n\n\u003ca href=\"docs/1month_2x3.png\"\u003e\u003cimg src=\"docs/1month_2x3.png\" width=\"390\" height=\"260\"/\u003e\u003c/a\u003e\n\nGenerate album collage from a lastfm user history.\n\nThis utility needs a valid config file with your lastfm API keys (get them at [last.fm/api](https://www.last.fm/api).) in `~/.config/lastfm_cg/config.ini` (the config file will be created at first launch, you can also see `config_sample.ini` for an example).\n You can also use the `--API_KEY` and `--API_SECRET` argument to set your lastfm API key.\n\nA twitter bot and a mastodon bot are also available in the bot_lastfm_cg folder. You can see them in action on my own [Twitter](https://www.twitter.com/d_beley) and [Mastodon](https://mamot.fr/web/accounts/79776) accounts.\n\nSome systemd service are also available in the systemd-service directory to run the lastfm_cg script at a given time (more information below).\n\n## Requirements\n\n- pylast\n- numpy\n- pillow\n- requests\n- tqdm\n\n## Installation\n\nClassic installation :\n\n```\npip install lastfm_cg\n```\n\nIf you are an Archlinux user, you can install the AUR package [lastfm_cg-git](https://aur.archlinux.org/packages/lastfm_cg-git).\n\n### Run from source\n\n```\ngit clone https://github.com/dbeley/lastfm_cg\ncd lastfm_cg\npython setup.py install\nlastfm_cg -h\n```\n\n## Usage\n\nShow the help and the available options.\n\n```\nlastfm_cg -h\n```\n\n```\nusage: lastfm_cg [-h] [--debug] [--timeframe TIMEFRAME] [--rows ROWS]\n                 [--columns COLUMNS] [--username USERNAME] [--top100]\n                 [--API_KEY API_KEY] [--API_SECRET API_SECRET]\n                 [--output_filename OUTPUT_FILENAME]\n\nCreate lastfm album collage for one or several lastfm users.\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --debug               Display debugging information\n  --timeframe TIMEFRAME, -t TIMEFRAME\n                        Timeframe (Accepted values : 7day, 1month, 3month,\n                        6month, 12month, overall. Default : 7day).\n  --rows ROWS, -r ROWS  Number of rows (Default : 5).\n  --columns COLUMNS, -c COLUMNS\n                        Number of columns (Default : number of rows).\n  --username USERNAME, -u USERNAME\n                        Usernames to extract, separated by comma.\n  --top100              Create a top 100 image. Will override columns/rows.\n  --API_KEY API_KEY     Lastfm API key (optional)\n  --API_SECRET API_SECRET\n                        Lastfm API secret (optional)\n  --output_filename OUTPUT_FILENAME\n                        Output filename (optional, example: output.png)\n```\n\nGenerate a collage for the user USER of the size 5x5 for the last 7 days (default values).\n\n```\nlastfm_cg -u USER\nlastfm_cg -u USER -t 7day -r 5\n```\n\nGenerate a collage for the user USER of the size 10x8 for the last year.\n\n```\nlastfm_cg -u USER -t 12month -r 10 -c 8\n```\n\nGenerate a top 100 collage for the user USER for all its listening history.\n\n```\nlastfm_cg -u USER --top100 -t overall\n```\n\nGenerate collages for the users USER and USER2 of the size 3x30 for all their listening history.\n\n```\nlastfm_cg -u USER,USER2 -t overall -r 3 -c 30\nlastfm_cg --username USER,USER2 --rows 3 --columns 30 --timeframe overall\n```\n\n## Sample results\n\n### 5 rows x 8 columns\n\n\u003ca href=\"docs/overall_5x8.png\"\u003e\u003cimg src=\"docs/overall_5x8.png\" width=\"800\" height=\"500\"/\u003e\u003c/a\u003e\n\n### Top 100\n\n\u003ca href=\"docs/12month_top100.png\"\u003e\u003cimg src=\"docs/12month_top100.png\" width=\"800\"/\u003e\u003c/a\u003e\n\n## Systemd service\n\nYou will have to change the command executed with the systemd service (`ExecStart` option) and the working directory (`WorkingDirectory` option).\n\n```\ncp systemd-service/* ~/.config/systemd/user/\nsystemctl --user daemon-reload\nsystemctl --user enable --now lastfm_cg_weekly.timer\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbeley%2Flastfm_cg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdbeley%2Flastfm_cg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdbeley%2Flastfm_cg/lists"}