You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
iotcat 46de249110 remove node_modules 4 years ago
node_modules fix oversea bugs 4 years ago
.gitignore remove node_modules 4 years ago
LICENSE Initial commit 4 years ago
README.md Update README.md 4 years ago
index.js fix oversea bugs 4 years ago
package-lock.json init 4 years ago
package.json init 4 years ago
test-uk.js uk 4 years ago
test.js init 4 years ago
uk.js uk 4 years ago
yarn.lock fix oversea bugs 4 years ago

README.md

coro-py

新型冠状病毒 爬虫 丁香医生

快速使用

引入依赖

$ npm i coro-py

或者

$ yarn add coro-py

打印所有数据

const coro = require('coro-py');

(async () => {
	console.log(await coro());
})()

参数说明

	var params = {
		reg: {
			inland: /getAreaStat\s=\s([\s\S]*?)}catch\(e\)/, //匹配中国地区的正则
			oversea: /getListByCountryTypeService2\s=\s([\s\S]*?)}catch\(e\)/ //匹配海外的正则
		},
		url: 'https://ncov.dxy.cn/ncovh5/view/pneumonia' //目标网址,默认丁香园
	}

开源协议

本项目使用MIT协议,允许非署名商业及非商业用途。武汉加油!中国加油!!