{"id":19662379,"url":"https://github.com/calne-ca/lastfm-simple-scrobble-client","last_synced_at":"2026-06-12T19:33:05.211Z","repository":{"id":57736988,"uuid":"132281783","full_name":"calne-ca/lastfm-simple-scrobble-client","owner":"calne-ca","description":"A simple Java Scrobble Client for Last.fm","archived":false,"fork":false,"pushed_at":"2025-07-12T00:48:52.000Z","size":50,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-05T04:44:37.401Z","etag":null,"topics":["java","last-fm","lastfm","scrobble","unscrobble"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/calne-ca.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-05T20:23:41.000Z","updated_at":"2020-11-15T11:23:03.000Z","dependencies_parsed_at":"2022-08-24T05:21:07.348Z","dependency_job_id":null,"html_url":"https://github.com/calne-ca/lastfm-simple-scrobble-client","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/calne-ca/lastfm-simple-scrobble-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calne-ca%2Flastfm-simple-scrobble-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calne-ca%2Flastfm-simple-scrobble-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calne-ca%2Flastfm-simple-scrobble-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calne-ca%2Flastfm-simple-scrobble-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/calne-ca","download_url":"https://codeload.github.com/calne-ca/lastfm-simple-scrobble-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calne-ca%2Flastfm-simple-scrobble-client/sbom","scorecard":{"id":263168,"data":{"date":"2025-08-11","repo":{"name":"github.com/calne-ca/lastfm-simple-scrobble-client","commit":"a3a4afa80d32b113580c5ac99d447bd928dff893"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.2,"checks":[{"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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Code-Review","score":0,"reason":"Found 0/11 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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"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":"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.0.1 not signed: https://api.github.com/repos/calne-ca/lastfm-simple-scrobble-client/releases/10877568","Warn: release artifact v1.0.0 not signed: https://api.github.com/repos/calne-ca/lastfm-simple-scrobble-client/releases/10871552","Warn: release artifact v1.0.1 does not have provenance: https://api.github.com/repos/calne-ca/lastfm-simple-scrobble-client/releases/10877568","Warn: release artifact v1.0.0 does not have provenance: https://api.github.com/repos/calne-ca/lastfm-simple-scrobble-client/releases/10871552"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-78wr-2p64-hpwj","Warn: Project is vulnerable to: GHSA-gwrp-pvrq-jmwv","Warn: Project is vulnerable to: GHSA-j288-q9x7-2f5v","Warn: Project is vulnerable to: GHSA-7r82-7xv7-xcpj"],"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-17T11:18:22.563Z","repository_id":57736988,"created_at":"2025-08-17T11:18:22.563Z","updated_at":"2025-08-17T11:18:22.563Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34260309,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"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":["java","last-fm","lastfm","scrobble","unscrobble"],"created_at":"2024-11-11T16:11:01.472Z","updated_at":"2026-06-12T19:33:05.171Z","avatar_url":"https://github.com/calne-ca.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## A simple Java Scrobble Client for Last.fm\n\nThis client uses [jkovac's](https://github.com/jkovacs) [lastfm-java](https://github.com/jkovacs/lastfm-java) library for calls of the official [Last.fm API](https://www.last.fm/api/intro) as well as the [lastfm-unscrobble-java](https://github.com/calne-ca/lastfm-unscrobble-java) library for unscrobbling and updating Scrobbles.\n\nThe purpose of this library is to simplify all interactions with Last.fm concerning scrobbles as well as providing extended features - relying on official and unofficial features of Last.fm - such as scrobble updating.\n\n### Usage\n\n**Initializing the Scrobble Client**\n\n```java\nLastfmAuthenticationDetails authenticationDetails = new LastfmAuthenticationDetails();\nauthenticationDetails.setApiKey(\"api-key\");\nauthenticationDetails.setSharedSecret(\"shared-secret\");\nauthenticationDetails.setUsername(\"username\");\nauthenticationDetails.setPassword(\"password\");\n\nScrobbleClient scrobbleClient = new ScrobbleClient();\n\ntry {\n    scrobbleClient.login(authenticationDetails);\n} catch(LastfmAuthenticationException e){\n    System.err.println(e.getMessage());\n}\n```\n\nNot all authentication details are mandatory depending on what you want to do. Certain operations require certain authentication details as shown in the table below:\n\n|               | Scrobbling                | Fetching Scrobbles | Unscrobbling    | Updating Scrobbles    |\n| ------------- | :-------------:           | :-------------:    | :-------------: | :-------------: |\n| API key       | X                         | X                  |                 | X               |\n| Shared Secret | X                         |                    |                 | X               |\n| Username      | X                         | X                  | X               | X               |\n| Password      | X                         |                    | X               | X               |\n\nSo if for example you only want to fetch scrobble data from a user then the username and your API key is sufficient.\n\n**Fetching all Scrobbles**\n```java\nList\u003cScrobble\u003e scrobbles = scrobbleClient.getAllScrobbles();\n```\n\n**Fetching Scrobbles from a specific time**\n```java\nTemporal since = ZonedDateTime.now(ZoneOffset.UTC).minusDays(10);\nList\u003cScrobble\u003e scrobblesSince = scrobbleClient.getScrobblesSince(since);\n```\n\n**Fetching a certain amount of Scrobbles**\n```java\nList\u003cScrobble\u003e scrobbles = scrobbleClient.getLastScrobbles(100);\n```\n\n**Scrobbling a Track**\n```java\nScrobble scrobble = scrobbleClient.scrobble(\"LIQ\",\"[un]INSOMNIA\");\n```\n\n**Setting the *now playing* status**\n```java\nScrobble scrobble = scrobbleClient.nowPlaying(\"LIQ\",\"[un]INSOMNIA\");\n```\n\n**Unscrobbling a Scrobble**\n```java\nScrobble lastScrobble = scrobbles.get(0);\nscrobbleClient.unscrobble(lastScrobble);\n```\n\n**Updating Scrobble data**\n```java\nscrobble.setArtist(\"LIQ feat. 結月ゆかり\");\nscrobbleClient.updateScrobble(scrobble);\n```\n\n### Maven Dependency\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003enet.beardbot\u003c/groupId\u003e\n    \u003cartifactId\u003elastfm-simple-scrobble-client\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.2\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Enable debug logging\n```bash\n-Dorg.slf4j.simpleLogger.defaultLogLevel=DEBUG\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalne-ca%2Flastfm-simple-scrobble-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcalne-ca%2Flastfm-simple-scrobble-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalne-ca%2Flastfm-simple-scrobble-client/lists"}