{"id":20845557,"url":"https://github.com/wdataorg/github-quicklook","last_synced_at":"2026-04-26T01:31:25.825Z","repository":{"id":130629815,"uuid":"536071343","full_name":"Wdataorg/Github-Quicklook","owner":"Wdataorg","description":"使用api.github.com作为接口，快速查看Github星星数等信息","archived":false,"fork":false,"pushed_at":"2023-01-14T03:44:24.000Z","size":11729,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-30T08:57:32.146Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Wdataorg.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-09-13T10:24:17.000Z","updated_at":"2022-10-04T04:58:05.000Z","dependencies_parsed_at":"2024-03-17T07:01:33.700Z","dependency_job_id":null,"html_url":"https://github.com/Wdataorg/Github-Quicklook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Wdataorg/Github-Quicklook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wdataorg%2FGithub-Quicklook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wdataorg%2FGithub-Quicklook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wdataorg%2FGithub-Quicklook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wdataorg%2FGithub-Quicklook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Wdataorg","download_url":"https://codeload.github.com/Wdataorg/Github-Quicklook/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Wdataorg%2FGithub-Quicklook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32283294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"ssl_error","status_checked_at":"2026-04-25T18:29:32.149Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-18T02:13:17.933Z","updated_at":"2026-04-26T01:31:25.819Z","avatar_url":"https://github.com/Wdataorg.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Github-Quicklook\n![https://img.shields.io/github/issues/Wdataorg/Github-Quicklook](https://img.shields.io/github/issues/Wdataorg/Github-Quicklook)\n![https://img.shields.io/github/forks/Wdataorg/Github-Quicklook](https://img.shields.io/github/forks/Wdataorg/Github-Quicklook)\n![https://img.shields.io/github/stars/Wdataorg/Github-Quicklook](https://img.shields.io/github/stars/Wdataorg/Github-Quicklook)\n![https://img.shields.io/github/license/Wdataorg/Github-Quicklook](https://img.shields.io/github/license/Wdataorg/Github-Quicklook)\n![https://www.murphysec.com/platform3/v3/badge/1612817586031460352.svg?t=1](https://www.murphysec.com/platform3/v3/badge/1612817586031460352.svg?t=1)\n\n- [简单介绍](#简单介绍)\n- [使用方法](#使用方法)\n- [官方网站](#官方网站)\n- [API接口的使用方法](#API接口的使用方法)\n\n## 简单介绍\n使用`api.github.com`作为接口，快速查看Github星星数等信息\n`api.github.com`是Github的api接口\n\n## 使用方法\n\n下载后会有一个`Github信息快速查看器.exe`的文件，这就是软件，双击打开后，输入仓库的拥有者，以及仓库名，即可查看相关信息\n\n## 官方网站\n\nGithub-Quicklook官方网站:[https://Wdataorg/Github-Quicklook](https://Wdataorg/Github-Quicklook)\n\n## API接口的使用方法\n\n我们将使用Python代码实现\n\n### 解析\n\n\u003e 以下属于进阶内容，讲解的是本项目的实现方法\n\n```python\nfrom requests import get # 导入请求函数\nresponse = get('https://api.github.com/repos/{UserName}/{RepoName}') # 向API接口请求\nprint(response.content) \n```\n\n以`Wdataorg/Github-Quicklook`为例，输出是这样\n\n```\nPS D:\\Github-Quicklook\u003e \u0026 C:/Users/S.X.Y/AppData/Local/Programs/Python/Python38-32/python.exe d:/Github-Quicklook/test/test.py\nb'{\"id\":536071343,\"node_id\":\"R_kgDOH_PMrw\",\"name\":\"Github-Quicklook\",\"full_name\":\"Wdataorg/Github-Quicklook\",\"private\":false,\"owner\":{\"login\":\"Wdataorg\",\"id\":107593423,\"node_id\":\"O_kgDOBmm-zw\",\"avatar_url\":\"https://avatars.githubusercontent.com/u/107593423?v=4\",\"gravatar_id\":\"\",\"url\":\"https://api.github.com/users/Wdataorg\",\"html_url\":\"https://github.com/Wdataorg\",\"followers_url\":\"https://api.github.com/users/\n......(太多了)\n```\n\n他的格式是json, 没法直接使用，还得**转换**成`dict`\n\n以下是转化的代码\n```python\njson_data = response.content\nimport json # 导入Json类\ndict_data = json.loads(json_data) # 转化成Dict类型\nprint(type(dict_data)) # 打印类型\n```\n\n输出是`\u003cclass 'dict'\u003e`，得到了`Dict`类型的数据，我们就可以直接分析了！\n\n但我们要了解网页返回的`json`类型中的一些数据\n\n```\neg.                     类型\n\"size\":11671            显示仓库大小\n\"forks_count\":0         显示仓库fork数量\n\"stargazers_count\": 1   显示仓库Star数量\n\"watchers_count\": 1     显示仓库Watch数量\n```\n了解了这些信息，我们就可以补全查询仓库信息的代码\n\n```python\nprint('星星数量\\tWatch数量\\tFork数量\\t仓库大小')\nprint('{}\\t{}\\t{}\\t{}'.format(dict_data['stargazers_count'], dict_data[\"watchers_count\"], dict_data[\"forks_count\"],dict_data[\"size\"])) # 打印信息\n```\n\n完整代码如下：\n\n```python\nfrom requests import get # 导入请求函数\nresponse = get('https://api.github.com/repos/Wdataorg/Github-Quicklook') # 向API接口请求\njson_data = response.content\nimport json\ndict_data = json.loads(json_data)\nprint('星星数量\\tWatch数量\\tFork数量\\t仓库大小')\nprint('{}\\t{}\\t{}\\t{}'.format(dict_data['stargazers_count'], dict_data[\"watchers_count\"], dict_data[\"forks_count\"],dict_data[\"size\"])) # 打印信息\n```\n\n输出如下：\n\n```\nPS D:\\Github-Quicklook\u003e \u0026 C:/Users/S.X.Y/AppData/Local/Programs/Python/Python38-32/python.exe d:/Github-Quicklook/test/test.py\n星星数量        Watch数量       Fork数量        仓库大小\n1              1              0               11671\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwdataorg%2Fgithub-quicklook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwdataorg%2Fgithub-quicklook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwdataorg%2Fgithub-quicklook/lists"}