Click here to Skip to main content
15,893,904 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello, colleagues.
Is there a way to have a webpage saved in HTML-format with saving all the dependencies it uses?
The instrument is supposed to be javascript.
Thank you in advance.
Posted
Comments
Sergey Alexandrovich Kryukov 3-Jun-15 12:22pm    
This is called Web scraping, is a usual thing. But JavaScript is not the best instrument for that. Why? Do you want to scrape sites on a local client site, in a browser? Or are you talking about JavaScript not hosted in the browser? Then where? (WSH, for example...) Why? What are you going to do with the results of scraping and how much data would you like to scrape? Remember that JavaScript (in the browser) file I/O capabilities are very limited.
—SA
Dzianis Igaravich Leanenka 4-Jun-15 2:32am    
The main goal is to built in the possibility for a user to click on a button on the screen like "Save HTML" button created by me and the to get the whole HTML code of the webpage with all the CSS3 styles and pictures.
So if WSH can be built in the client's side - it can be done via WSH. why not...
But all in all I suppose that the implementation can be daone also via Js
By the way what limitations has javascript in I/O?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900