clapScrap:Web爬虫节点库

时间:2021-05-07 02:16:08
【文件属性】:
文件名称:clapScrap:Web爬虫节点库
文件大小:23KB
文件格式:ZIP
更新时间:2021-05-07 02:16:08
JavaScript 拍手报废 Web抓取节点库 一个基于puppeteer的简单库,用于从Web抓取数据 你好,世界: const ClapScrap = require ( 'ClapScrap' ) ; const URL = 'https://coolurl.com' ; //the url to scrap const userAgent = 'your user agent string' ; //the User Agent String const CS = new ClapScrap ( userAgent ) ; //Launch the bot and opens a new page with the URL const { page , response } = await CS . launchBot ( URL ) ; const headers = response . hea
【文件预览】:
clapScrap-master
----yarn.lock(44KB)
----src()
--------ClapScrap.js(2KB)
--------utils.js(212B)
----examples()
--------basic_boilerplate.js(794B)
----README.md(1KB)
----.gitignore(23B)
----package.json(392B)

网友评论