{"id":20382884,"url":"https://github.com/zfb132/reserveseat","last_synced_at":"2026-05-28T20:31:12.766Z","repository":{"id":130412754,"uuid":"154263896","full_name":"zfb132/reserveSeat","owner":"zfb132","description":"图书馆预约座位","archived":false,"fork":false,"pushed_at":"2024-05-21T19:30:03.000Z","size":42,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-15T07:57:24.928Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zfb132.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}},"created_at":"2018-10-23T04:46:16.000Z","updated_at":"2023-04-19T04:43:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"31813639-dad6-4806-8ae9-597a5d33f494","html_url":"https://github.com/zfb132/reserveSeat","commit_stats":{"total_commits":33,"total_committers":1,"mean_commits":33.0,"dds":0.0,"last_synced_commit":"4959b2b771892c809516d12924114b1ca9c3d54f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zfb132%2FreserveSeat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zfb132%2FreserveSeat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zfb132%2FreserveSeat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zfb132%2FreserveSeat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zfb132","download_url":"https://codeload.github.com/zfb132/reserveSeat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241935269,"owners_count":20044826,"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":[],"created_at":"2024-11-15T02:19:26.757Z","updated_at":"2025-12-01T20:03:11.457Z","avatar_url":"https://github.com/zfb132.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 图书馆预约座位\n## 准备工作\n1. 基于Python3编写，因此需要首先安装Python3\n2. 依赖放在requirements.txt中，运行前需要先安装依赖的库  \n`pip install -r requirements.txt`\n3. 重命名`config.example.py`为`config.py`，修改里面的个人配置，注意自己申请腾讯云短信应用\n## 运行程序\n开始预约，系统会自动预约指定房间（可以多个）的空闲座位，打开终端切换到当前目录并输入：  \n`python3 reserve.py`  \n失败则退出，成功会发送短信通知\n## 全自动化\n使用Linux系统的定时任务`crontab`来实现（也可以自己用Windows实现），在终端编辑定时文件：  \n`crontab -e`  \n在打开的文件中添加一行内容：  \n`44 22 * * * /usr/bin/python3 ~/reserveSeat/reserve.py`  \n这句话意思是：每天的22:45分开始运行本程序（假设本程序位于主目录下，根据实际位置自行更改`py`文件路径）\n## 其他信息\n保存所有座位信息到数据库（需要首先安装MySQL数据库）：  \n`python3 saveSeats.py`  \n## API相关\n获取所有自习室的接口又改变了：  \n~~`/rest/v2/free/filters?token={}`~~ -\u003e `/rest/v2/room/stats2/0?token=`  \n获取某个图书馆内的自习室的接口也改变了：  \n~~`/rest/v2/room/layoutByDate/{}/{}?token={}`~~ -\u003e `/rest/v2/room/stats2/{}?token=`  \n（它又改回来了，应该是在测试新接口吧）\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzfb132%2Freserveseat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzfb132%2Freserveseat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzfb132%2Freserveseat/lists"}