0.0.11 • Published 6 years ago

puppeteer-scrapy v0.0.11

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

puppeteer-scraper

Implement scrapers with a sane api. Thanks to codeceptjs and puppeteer.

Use it in your project

  npm install puppeteer-scrapy --save

Examples

There is a simple example in the examples subdirectory. To run it:

Switch to the example directory and run

  npm install

Then run the script

  node check24.js

You can turn on debug output in crawl scripts with

  DEBUG=run-script node check24.js

You will see a detailed list of executed commands like so

  run-script                          /local-ntp.html    I.RESIZEWINDOW (1200 ,800) +0ms
  run-script                                        /    I.WAIT (0) +2s
  run-script                                        /    I.AMONPAGE (https://jobs.check24.de/) +2ms
  run-script                                        /    I.WAIT (0) +1s
  run-script                                        /    I.FILLFIELD (#search ,nodejs) +1ms
  run-script                                        /    I.WAIT (0) +8ms
  run-script                                        /    I.PRESSKEY (Enter) +0ms
  run-script                                 /search/    I.WAIT (1) +2s
  run-script                                 /search/    I.WAITFORNAVIGATION () +4ms
  run-script                                 /search/    I.WAITINURL (/search) +18ms
  run-script AUTOWAIT .vacancies--section +4ms
  run-script                                 /search/    I.SEEELEMENT (.vacancies--section) +505ms
  run-script                                 /search/    I.GRABHTMLFROM (.vacancies--section) +375ms

Besides the output directory will contain a number of screenshots of the websites' state at various points during the script execution.

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.5

6 years ago