Puppeteer - NodeJS Scraping: Unterschied zwischen den Versionen

Aus Wikizone
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: „== Quickstart == Voraussetzung: VisualStudioCode, NodeJS installiert Ordner erstellen und NodeJS Projekt starten Terminal npm init -y npm install puppeteer…“)
 
Zeile 1: Zeile 1:
 
== Quickstart ==
 
== Quickstart ==
 +
https://www.youtube.com/watch?v=Sag-Hz9jJNg
 
Voraussetzung: VisualStudioCode, NodeJS installiert
 
Voraussetzung: VisualStudioCode, NodeJS installiert
  
Zeile 10: Zeile 11:
 
Installiert auch Chromium. Schau mal in die
 
Installiert auch Chromium. Schau mal in die
  
index.js erstellen
+
index.js erstellen. Puppeteer laden mit asynchroner Funktion. Diese Funktion
 +
<syntaxhighlight lang="javascript">
 +
const puppeteer = require("puppeteer");
 +
(async () => {
 +
}) ();
 +
</syntaxhighlight>

Version vom 17. August 2022, 13:06 Uhr

Quickstart

https://www.youtube.com/watch?v=Sag-Hz9jJNg

Voraussetzung: VisualStudioCode, NodeJS installiert

Ordner erstellen und NodeJS Projekt starten

Terminal

npm init -y
npm install puppeteer

Installiert auch Chromium. Schau mal in die

index.js erstellen. Puppeteer laden mit asynchroner Funktion. Diese Funktion

const puppeteer = require("puppeteer");
(async () => {
}) ();