Giter Club home page Giter Club logo

puppeteer-scraper's Introduction

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.

puppeteer-scraper's People

Contributors

hubidu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.