How to create an app that opens external URL then scroll the page down?

Solution for How to create an app that opens external URL then scroll the page down?
is Given Below:

I want to create an app using nodejs & Gulpjs that opens a specific URL then scroll the page of the URL down to the end of the page, is that possible ?

Here is my code inside gulpfile.js

const {series, src, dest} = require('gulp');
var fs = require('fs');
var path = require('path');
var open  =require('open');
var https = require('https');

async function getLinks(params) {
    var pageLink = '';
    var links = [];

    open(pageLink, {app: 'chrome'});

    https.get(pageLink, (res) => {
        let rawHtml="";
        res.on('data', (chunk) => { rawHtml += chunk; });
        res.on('end', () => {
            try {
            } catch (e) {


exports.default = getLinks;

I would be thankful for some help!

I do not believe that without the use of extensions or some external program exactly what you are looking for is currently possible, but there are some potential alternatives that may help you accomplish some of what you are aiming to do.


If the page you are linking to has ID’s for the element you want to link to you can append that to the end of URL. For example if you wanted to link to an element with the id of #pricing your link would look like this:

Obviously this is only useful on some pages, and only with elements that have ID’s.

Text Fragments

These are slightly closer to what you may be looking for in that it allows you to link to anywhere on a page, regardless of whether the element has an ID or not. Here is an example of how you would link to the More information... text on

Unfortunately this still has some cons, chiefly in the browser support arena. According to caniuse only Chromium browsers currently supports the feature. (That is 71% of users though).