Git Product home page Git Product logo

pph-cheatsheet's Introduction

pph-cheatsheet

So happy you have found me, and hopefully found us in the future!

This demo and code base is just to illustrate how to approach learning any new tool or technology in general. We show case how to scrape a website that I had approval to do so on, and more importantly are here to show how Puppeteer can be used in tandem with Node.js to scrape data from websites. With a few added features just for fun.

Refactor and Revision

Difference Between Original Demo VS Refactor Demo

- All of the code between the two directories produce the same output.

- The large benefit of the refactor is abstracting some of the cleanup functions into utilities, and also isolating the scrape call itself for use in the express demo's.

- In the current version, so much code has been cut out by doing the labor of modularization.

Over-View

Why

  • Why Learn Web Scraping?

    Basically personal data and large datasets are big money. This can be everything from tracking the different websites you visit, what kind of credit card you use most online, and several other factors.

What

  • What is Web Scraping?

    It is just simply a tool to collect information based upon a specific url to scrape. The idea is, load a page, take a look at all of it's rendered HTML, decide what you would like to do with that info, and return something useful from all of your hard work.

How

  • How does Web Scraping work?

    The fundementals of Puppeteer are:

    • start a Chrome browser instance
    • after, start a page instance in the browser
    • decide and implement a url to target
    • do your amazing logic
    • do something with your fruit

Tooling Versions

Node

  • 12.12.0

NPM

  • 7.5.2

Puppeteer

  • 8.0.0

Operating System

  • macOS Big Sur
    • 11.2.2

Resources and Links

Contribute!

pph-cheatsheet's People

Contributors

chanceharmon avatar

Stargazers

 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.