Skip to content

zztiswb116/crawler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crawler

Install

yarn install

Development Run

yarn start

start a new task

  1. just write a task file, create a file screenshot.js to tasks dir. and write below...
module.exports = async function(browser) {
  const page = await browser.newPage();
  await page.goto('https://example.com');
  await page.screenshot({path: 'example.png'});

  browser.close();
}
  1. send a command to http server.
curl -XPOST -d name=screenshot http://127.0.0.1:3000/task

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published