{"id":21823771,"url":"https://github.com/gh0stkey/command2api","last_synced_at":"2025-09-06T09:34:35.856Z","repository":{"id":39782163,"uuid":"437541284","full_name":"gh0stkey/Command2API","owner":"gh0stkey","description":"Command2API - 万物皆可API","archived":false,"fork":false,"pushed_at":"2022-03-10T02:45:48.000Z","size":4917,"stargazers_count":254,"open_issues_count":0,"forks_count":42,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-13T06:44:04.339Z","etag":null,"topics":["api","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gh0stkey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-12T12:37:54.000Z","updated_at":"2025-02-12T06:39:32.000Z","dependencies_parsed_at":"2022-07-09T05:46:22.447Z","dependency_job_id":null,"html_url":"https://github.com/gh0stkey/Command2API","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gh0stkey/Command2API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh0stkey%2FCommand2API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh0stkey%2FCommand2API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh0stkey%2FCommand2API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh0stkey%2FCommand2API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gh0stkey","download_url":"https://codeload.github.com/gh0stkey/Command2API/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh0stkey%2FCommand2API/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263932017,"owners_count":23531707,"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":["api","python"],"created_at":"2024-11-27T17:36:57.553Z","updated_at":"2025-07-06T16:04:39.819Z","avatar_url":"https://github.com/gh0stkey.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Command2API\n\n**作者**：key@元亨实验室\n\n**简介**：这是一个可以实时获取执行命令结果的脚本，脚本原理就是一个线程开启Web服务，一个线程执行命令，通过全局变量与Web服务共享执行命令的结果。\n\n## 使用方法\n\n执行命令：\n\n```shell\npython Command2Api.py \"执行的命令\" Web运行的端口\npython Command2Api_Py3.py \"执行的命令\" Web运行的端口 // Python3版本来自noobyan\n```\n\n接着在命令中会输出对应的URL，访问即可获取信息：\n\n![](images/0.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgh0stkey%2Fcommand2api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgh0stkey%2Fcommand2api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgh0stkey%2Fcommand2api/lists"}