{"id":19758292,"url":"https://github.com/xmcp/loveliv","last_synced_at":"2026-04-15T11:34:44.104Z","repository":{"id":77776830,"uuid":"70325127","full_name":"xmcp/loveliv","owner":"xmcp","description":"Personal LoveLive SIF Event Tracker","archived":false,"fork":false,"pushed_at":"2017-02-19T14:32:10.000Z","size":830,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T09:24:02.921Z","etag":null,"topics":["echarts","flask","itchat","lovelive","scraper"],"latest_commit_sha":null,"homepage":null,"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/xmcp.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-08T10:55:17.000Z","updated_at":"2022-06-17T00:11:31.000Z","dependencies_parsed_at":"2023-04-01T08:33:41.882Z","dependency_job_id":null,"html_url":"https://github.com/xmcp/loveliv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xmcp/loveliv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmcp%2Floveliv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmcp%2Floveliv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmcp%2Floveliv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmcp%2Floveliv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xmcp","download_url":"https://codeload.github.com/xmcp/loveliv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xmcp%2Floveliv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31839621,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T11:29:19.690Z","status":"ssl_error","status_checked_at":"2026-04-15T11:29:19.171Z","response_time":63,"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":["echarts","flask","itchat","lovelive","scraper"],"created_at":"2024-11-12T03:23:54.466Z","updated_at":"2026-04-15T11:34:44.088Z","avatar_url":"https://github.com/xmcp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# loveliv\nSIF 国服活动追踪器，可以每分钟爬取档线和**指定玩家的得分**，并支持微信提醒。\n\n## 功能\n\n本项目分为三个组件\n- 爬虫 `Servant`：从SIFLive爬取档线和指定玩家的得分、排名、等级信息\n- Web服务器 `Web`：实时展示档线、玩家分数、排名变化等数据和图表\n- 微信机器人 `Bot`：当关注玩家等级提升、档位变化、分数变化时提醒\n\n## 运行方法\n\n#### 1. 首先，你要安装 Python 3.4 +\n\n#### 2. `python3 -m pip install -r requirements.txt`\n\n#### 3. 初始化数据库\n\n```bash\n$ python3 -i utils.py\n\u003e\u003e\u003e init_master()\n\u003e\u003e\u003e exit()\n```\n\n#### 4. 输入关注者列表\n\n```sql\n$ sqlite3 events.db\nSQLite version 3.x.x 20xx-xx-xx xx:xx:xx\nEnter \".help\" for instructions\nEnter SQL statements terminated with a \";\"\nsqlite\u003e insert into follows (ind, id, name) values (1, xxx, 'xxx');\n\n```\n\n其中，`ind` 是玩家在本系统中的编号，要求 `isinstance(ind,int) and 1\u003c=ind\u003c=5`（更改代码可以放宽ind数量的限制）；\n`id` 是玩家在 sifcn.loveliv.es 网站中的 ID；`name` 是昵称。\n\n#### 5. 启动爬虫模块\n\n`python3 servant.py`\n\n使用 `-e EVENT_ID` 参数指定活动 ID，如留空将爬取最新的活动；\n使用 `-b BUGGY_USERS,...` 来指定爬取时减少关注哪些人，当爬取这些人出错时将不会重试，也不会记录日志。\n\n#### 6. 启动 Web 服务器\n\n`python3 webserver.py`\n\n使用 `LOVELIV_PORT` 参数指定端口，默认为`80`。\n\n#### 7. 启动微信机器人\n\n`python3 chatbot.py`\n\n你需要事先创建一个用于通知的微信群，将群聊名称填入代码的 `CHAT_NAME` 常量中，然后用微信扫码登录。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxmcp%2Floveliv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxmcp%2Floveliv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxmcp%2Floveliv/lists"}