Skip to content

pplam/crawler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crawler

A crawler for scraping guide information from Shanghai government's site

Installation

git clone https://github.com/pplam/crawler.git && cd crawler
npm install

Usage

Having a taste:

npm run scrape

Please be patient, it will take 10~20 minutes to finish.

Inviting it to your code:

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()
}

About

A crawler for scraping guide information from Shanghai government's site

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors