webpage - How to download the entire page with wget when the url has parameters? -


i want download entire page objects, including images, js, css, etc. however, url may contain parameters, eg.

www.youtube.com/results?search_query=star+wars

i have tried options suggested in similar questions:

wget -p -k "www.youtube.com/results?search_query=star+wars" wget -p -k ‐‐post-data "search_query=star+wars" "https://www.youtube.com/results" 

but none of them works. can me that? many thanks!

find answer:

wget -e -h -k -k -p -e robots=off $url 

note: url must quoted ''.

ref: https://superuser.com/questions/55040/save-a-single-web-page-with-background-images-with-wget


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -