Hello, I'm using Google Chrome version 65.0.3325.181 with 64bit Windows 10 Pro. I have 32gb of RAM and 2xIntel Xeon processors each with 4 physical cores. I work in a science lab, and some of my data are returned as links to webpages that are massive. If I "save link as" for one of the result pages, the HTML page downloaded can be upwards of 2gb. The pages often crash before they are all the way open. The memory usage of Chrome will go way up, but it usually doesn't go above 2.5gb before it crashes. The computer itself isn't out of memory though. When/If I get a page open, if I print it as a PDF there are 200+ pages. The most important information I need is almost always in the top 25 pages.
I've had some success using the command below coupled to the end of the data processing so that the results are automatically output to a PDF, but it hangs here too with the larger result pages.
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --headless --print-to-pdf="%userprofile%\Desktop\PDF_Results\<datafilename>.pdf" <resulturl>
Is there a way to automatically limit the length of the page opened by Chrome? If I could get it to only open the first 25 pages with something in a command line, that would be fantastic especially if I could include it in the line above.
I know number of pages is relative so I'm not sure there is a way to do this but the rendering of the entire result seems to be too much for Chrome even using the headless version.
Thank you