Closed cxsunflower closed 9 months ago
request url https://api.github.com/repos/yuzu-emu/yuzu-android/releases
https://api.github.com/repos/yuzu-emu/yuzu-android/releases
header X-GitHub-Api-Version: 2022-11-28 Accept: application/vnd.github+json User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0
X-GitHub-Api-Version: 2022-11-28
Accept: application/vnd.github+json
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0
response
[ { "url": "https://api.github.com/repos/yuzu-emu/yuzu-android/releases/136758012", "assets_url": "https://api.github.com/repos/yuzu-emu/yuzu-android/releases/136758012/assets", "upload_url": "https://uploads.github.com/repos/yuzu-emu/yuzu-android/releases/136758012/assets{?name,label}", "html_url": "https://github.com/yuzu-emu/yuzu-android/releases/tag/android-190", "id": 136758012, "author": { "login": "github-actions[bot]", "id": 41898282, "node_id": "MDM6Qm90NDE4OTgyODI=", "avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4", "gravatar_id": "", "url": "https://api.github.com/users/github-actions%5Bbot%5D", "html_url": "https://github.com/apps/github-actions", "followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers", "following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}", "gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}", "starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions", "organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs", "repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos", "events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}", "received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events", "type": "Bot", "site_admin": false }, "node_id": "RE_kwDOJqeWvs4IJsL8", "tag_name": "android-190", "target_commitish": "e9d7bd25345dd03cf0c18fcb96523fd91541f777", "name": "android-190", "draft": false, "prerelease": false, "created_at": "2024-01-12T01:00:45Z", "published_at": "2024-01-12T01:18:56Z", "assets": [ { "url": "https://api.github.com/repos/yuzu-emu/yuzu-android/releases/assets/145160303", "id": 145160303, "node_id": "RA_kwDOJqeWvs4Ipvhv", "name": "yuzu-20240112-e9d7bd253.aab", "label": "", "uploader": { "login": "github-actions[bot]", "id": 41898282, "node_id": "MDM6Qm90NDE4OTgyODI=", "avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4", "gravatar_id": "", "url": "https://api.github.com/users/github-actions%5Bbot%5D", "html_url": "https://github.com/apps/github-actions", "followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers", "following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}", "gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}", "starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions", "organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs", "repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos", "events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}", "received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events", "type": "Bot", "site_admin": false }, "content_type": "binary/octet-stream", "state": "uploaded", "size": 62115739, "download_count": 188, "created_at": "2024-01-12T01:19:00Z", "updated_at": "2024-01-12T01:19:03Z", "browser_download_url": "https://github.com/yuzu-emu/yuzu-android/releases/download/android-190/yuzu-20240112-e9d7bd253.aab" }, { "url": "https://api.github.com/repos/yuzu-emu/yuzu-android/releases/assets/145160298", "id": 145160298, "node_id": "RA_kwDOJqeWvs4Ipvhq", "name": "yuzu-20240112-e9d7bd253.apk", "label": "", "uploader": { "login": "github-actions[bot]", "id": 41898282, "node_id": "MDM6Qm90NDE4OTgyODI=", "avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4", "gravatar_id": "", "url": "https://api.github.com/users/github-actions%5Bbot%5D", "html_url": "https://github.com/apps/github-actions", "followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers", "following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}", "gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}", "starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions", "organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs", "repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos", "events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}", "received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events", "type": "Bot", "site_admin": false }, "content_type": "application/vnd.android.package-archive", "state": "uploaded", "size": 38593985, "download_count": 2159, "created_at": "2024-01-12T01:18:57Z", "updated_at": "2024-01-12T01:18:59Z", "browser_download_url": "https://github.com/yuzu-emu/yuzu-android/releases/download/android-190/yuzu-20240112-e9d7bd253.apk" } ], ...... ]
参考 https://docs.github.com/zh/rest/repos/repos?apiVersion=2022-11-28#list-repository-activities
镜像站点 https://kkgithub.com/ 镜像使用方法 https://juejin.cn/post/7210744398640595005
非常感谢大佬提供的方法但是以我目前的技术水平可能还需要学习一段时间才能将您提供的方案应用到我的网站
成功啦!感谢大佬提供的办法!
如果只获取最新发布, 使用以下requesturl https://api.github.com/repos/yuzu-emu/yuzu-android/releases/latest
https://api.github.com/repos/yuzu-emu/yuzu-android/releases/latest
request url
https://api.github.com/repos/yuzu-emu/yuzu-android/releases
header
X-GitHub-Api-Version: 2022-11-28
Accept: application/vnd.github+json
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0
response
参考 https://docs.github.com/zh/rest/repos/repos?apiVersion=2022-11-28#list-repository-activities
镜像站点 https://kkgithub.com/ 镜像使用方法 https://juejin.cn/post/7210744398640595005