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

403
Views
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 answers
Answer question

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 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!