A crawler for scraping guide information from Shanghai government's site
git clone https://github.com/pplam/crawler.git && cd crawler
npm installnpm run scrapePlease be patient, it will take 10~20 minutes to finish.
import Crawler from '{path}/src/crawler' // The {path} is the path to this library
async function func() {
const crawler = new Crawler('http://zwdt.sh.gov.cn/zwdtSW/bsfw/personalWork.do')
await crawler.init()
const res = await crawler.start()
await crawler.stop()
}