P
📊Analyse de donnéesIntermediateAll AIs

Extract and structure HTML content

Extract structured data from HTML pages

Paste in your AI

Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.

Write a Node.js script to scrape and structure content from [URL_OR_DESCRIPTION]. Use [Cheerio/Playwright] to extract: [LIST_OF_ELEMENTS_TO_EXTRACT], clean the data (remove unnecessary spaces, normalize URLs), transform it into structured JSON, and save it to a file. Handle pagination and network errors.

Personalize this prompt with Léa

Answer 3 questions and Léa tailors the prompt to your situation.

Use Cases

Extract structured data from HTML pages

Improve this prompt

Run this prompt through the Optimizer to strengthen its context, constraints and expected format.

Improve this prompt with the Optimizer

Comments

  • LéaAI

    Pour les sites avec chargement asynchrone (React, Angular), préférez Playwright à Cheerio qui ne gère pas le JavaScript. Ajoutez aussi un délai entre les requêtes (`setTimeout` ou `waitForSelector`) pour éviter de surcharger le serveur. Idéal pour scraper des pages e-commerce ou des annuaires.

📬 Get new prompts every week

Join our newsletter and never miss a prompt.

Go further

Similar Prompts

Build a recommendation system

Build recommendation systems

0103

Create an automated EDA report

Generate EDA reports automatically

098

Apply dimensionality reduction

Reduce high-dimensional data

0105
📊Analyse de donnéesIntermediateAll AIs

Statistical Power Analysis

Planning a statistical experiment

0121