{"id":19725442,"url":"https://github.com/easychen/ncov-push","last_synced_at":"2025-04-29T23:30:43.796Z","repository":{"id":145559207,"uuid":"235741719","full_name":"easychen/nCoV-push","owner":"easychen","description":"nCoV疫情实时播报推送脚本。数据基于丁香园。","archived":false,"fork":false,"pushed_at":"2021-08-01T10:47:58.000Z","size":8,"stargazers_count":53,"open_issues_count":2,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-05T20:11:14.408Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/easychen.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":"2020-01-23T07:05:45.000Z","updated_at":"2023-03-27T09:51:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"e99d5c2e-8bf7-4b9b-8b65-68e9af765781","html_url":"https://github.com/easychen/nCoV-push","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2FnCoV-push","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2FnCoV-push/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2FnCoV-push/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2FnCoV-push/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/easychen","download_url":"https://codeload.github.com/easychen/nCoV-push/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251599740,"owners_count":21615574,"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-11T23:29:55.164Z","updated_at":"2025-04-29T23:30:43.787Z","avatar_url":"https://github.com/easychen.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nCoV-push\n\nnCoV疫情实时播报推送脚本。数据基于丁香园。\n\n## 使用说明\n\n### 环境要求\n\n- php7 以上\n- 当前目录可写\n\n### 推送配置\n\n#### Server酱\n\n第一行，将「\"填写SendKey\"」换成你的 sendkey 即可。\n```\ndefine(\"SCKEY\", \"填写SendKey\");\n```\n\n#### 其他\n\n在42行处，添加推送函数即可，`$title` 为标题，`$content` 为内容。\n\n```\nprint_r(sc_send($title, $content, SCKEY));\n```\n\n### 定时访问\n\n然后定时访问本页面即可。可以通过 cron 、云平台的定时任务等方式操作。\n\n```\n*/5 * * * * /usr/local/bin/php cron.php \u003e/dev/null 2\u003e\u00261\n```\n\n注意丁香园的页面因为访问频繁且长，经常出现一半内容返回的情况，这时候提取函数会失败。要考虑重试。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasychen%2Fncov-push","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasychen%2Fncov-push","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasychen%2Fncov-push/lists"}