0.0.15 • Published 5 years ago

@pscraper/scraper v0.0.15

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Demo for @pscraper/scraper

Install

$ yarn add @pscraper/scraper

or 


$ npm install @pscraper/scraper

Run

$ npx @pscraper/scraper --config='./yourConfigName.js'

./yourConfigName.js

  • must have ./

    const scrollDown = async function(page){
       await page.evaluate(async () => {
           await new Promise((resolve, reject) => {
             // implement browser javascript 
             window.scrollBy(0, 100);
           })
       });
     }

module.exports = { name: yahoo-${new Date().getTime()}, url: 'https://yahoo.com/', isDownloadResource: true, //save to ./name/file.css isDownloadCookies: true, //save to ./name/cookies.json isReport: true, //save to ./name/report.json downloadResourceType: 'document','stylesheet','script','image','font','xhr','other', afterPageLoad: scrollDown, afterHtmlLoad: async function(html){ // console.log(html) }, }

0.0.14

5 years ago

0.0.15

5 years ago

0.0.12

5 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago