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

396
Vistas
How to pass data in node.js (unsolved)

How do I pipe file from a external server though localhost (Node.JS)
(Load localhost as if its another site like http://mcom.com)

PC requests http://localhost:80/highres/switch.html
Node Downloads http://mcom.com/highres/switch.html
Then Sends Downloaded File Back to the PC / Client

aka
REQ.URL /highres/switch.html
GET http://mcom.com + req.url
SEND mcom file to localhost request

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

const scrape = require('website-scraper');
const options = {
  urls: ['http://mcom.com/highres/switch.html'],
  directory: "./result"
};
 
scrape(options);

This should work but before you use it type in terminal

npm i website-scraper

This will give you a folder named result and have the html file, if you need more help comment to this post

about 4 years ago · Juan Pablo Isaza Denunciar
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