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

206
Views
Using javascript to read web page after full load

Was trying to read the webpage using javascript & willing to run this from UNIX terminal using below, shell> node test_code.js.

test_code.js

const request = require('request');
request('http://mylocalurl.html', function (error, response, body) {
console.error('error:', error); // Print the error if one occurred
console.log('statusCode:', response && response.statusCode); // Print the response status code if a response was received
console.log('body:', body); // Print the HTML for the Google homepage.
});

The above code does not wait for the web page to completely load(i.e, full load) & it gives the interim data which is inadequate.

Ask is to, check if we can make the request() function to wait for some time for the webpage to load until it pumps all data & later show all data within the response.

Any help on this would be much appreciated.

Thank you.

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