Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

176
Views
Agregar complejidad a un webscrapper

¿Cómo puedo automatizar aún más mi web-scrapper? Actualmente puede buscar direcciones URL constantes singulares. ¿Cómo agrego una función que hace que busque varias páginas dentro de un sitio web constante?

Aquí está mi código

 const PORT = 8000 const axios = require('axios') const cheerio = require('cheerio') const express = require('express') const app = express () const url = 'heresurdata' axios(url) .then(response => { const html = response.data console.log(html) }) app.listen (PORT, () => console.log('server running on PORT ${PORT}'))
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

puede hacer una solicitud a la primera página encontrar todas las etiquetas de anclaje obtener sus enlaces hacerles una solicitud y repetir el proceso

 const {data} = await axios.get(url); const $ = cheerio.load(data); const allLinkTags = $('body a').map((index, el) => $(el).attr('href')).get(); // Now look through all the link tags and scrape them

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!