查询 GitHub 仓库信息、Star 数、Issue 和 PR 等
使用 Python 调用 GitHub REST API 查询公开仓库信息,无需认证。
生成一条 python -c '...' 命令,调用 GitHub API 获取数据。
python -c "import urllib.request,json; r=urllib.request.urlopen(urllib.request.Request('https://api.github.com/repos/用户名/仓库名',headers={'User-Agent':'Mozilla/5.0'}),timeout=10); d=json.loads(r.read().decode('utf-8')); print(f'仓库: {d[\"full_name\"]}\n描述: {d[\"description\"]}\nStar: {d[\"stargazers_count\"]}\nFork: {d[\"forks_count\"]}\nWatch: {d[\"watchers_count\"]}\n语言: {d[\"language\"]}\n创建时间: {d[\"created_at\"]}\n最近更新: {d[\"updated_at\"]}\n主页: {d[\"html_url\"]}')"
python -c "import urllib.request,json; r=urllib.request.urlopen(urllib.request.Request('https://api.github.com/repos/用户名/仓库名/issues?state=open&per_page=10',headers={'User-Agent':'Mozilla/5.0'}),timeout=10); issues=json.loads(r.read().decode('utf-8')); [print(f'#{i[\"number\"]} [{i[\"state\"]}] {i[\"title\"]} (by {i[\"user\"][\"login\"]}, {i[\"created_at\"][:10]})') for i in issues]"
python -c "import urllib.request,json; r=urllib.request.urlopen(urllib.request.Request('https://api.github.com/repos/用户名/仓库名/pulls?state=open&per_page=10',headers={'User-Agent':'Mozilla/5.0'}),timeout=10); prs=json.loads(r.read().decode('utf-8')); [print(f'#{p[\"number\"]} {p[\"title\"]} (by {p[\"user\"][\"login\"]}, {p[\"created_at\"][:10]})') for p in prs]"
python -c "import urllib.request,json,urllib.parse; q=urllib.parse.quote('搜索关键词'); r=urllib.request.urlopen(urllib.request.Request(f'https://api.github.com/search/repositories?q={q}&sort=stars&per_page=5',headers={'User-Agent':'Mozilla/5.0'}),timeout=10); d=json.loads(r.read().decode('utf-8')); [print(f'{repo[\"full_name\"]} ⭐{repo[\"stargazers_count\"]} - {repo[\"description\"][:60] if repo[\"description\"] else \"无描述\"}') for repo in d.get('items',[])]"
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer