Reputation: 167
Like in subject. I can download whole HTML of a page but I need to download external CSS and JS files too (so I can modify/check them). Do I need to use some scrappers? When page is loaded in a browser it automatically load all css and js - I need something similar. Lets suppose I have access to server - apache or node - do I need to download all css/js files one by one? Any ideas how to get the code of all external css/js files?
Upvotes: 0
Views: 157
Reputation: 136
Scrapers like cherio and jsdom are not enought, you can try phantom.js but it's heavy. Easiest way is to just to request (http or request) each css/js file.
Upvotes: 1
Reputation: 836
The same way you download the HTML of a page (using Ctrl + S
). Instead of saving it as Web Page - HTML only
change that option to Web Page - All files
.
Upvotes: 0