Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

142
Vistas
How can I scrape html of any website, find specific values and manipulate, then send back data to client side?

Here is the main idea.

  1. Get Input from the user(client-side) and send it to the server on submit.
  2. In the server, scrape data from any external website (Suppose it will be the whole Html of the target URL).
  3. Manipulate those data to get specific values using the user inputs.
  4. Then send back specific data to the client-side and show it to the user.

I can scrape Html with the following Javascript code.

const request = require('request')
const cheerio = require('cheerio');


let options = {
    url: 'https://targetwebsite.com',
    headers: {
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36 Edg/93.0.961.47'
        
    }
};

request(options, function(err, resp, html) {
    if (!err) {
        console.log(html);
    }
})

Now I just needed to know how can I do the whole process.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda