'page not found 404 error for dom-parser in node js

I am trying to parse a web page using dom-parser in nodejs. when i hit request through this, it shows 404 not found error but the page can be browsed using browser. here is my code.

    var request = require("request");
    var DomParser = require('dom-parser');
    var parser = new DomParser();
    app.get("/parse", (req, res)=>{
    
    request({uri: "https://www.propertyfinder.ae"}, 
    function(error, response, body) {
    res.status(200).send(body)
    });
});

I couldn't understand why this is happening. Please help me sort this out. any help would be much appreciated. Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source