Avatar
Please consider registering
guest
sp_LogInOut Log Insp_Registration Register
Register | Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSSsp_topic_old
wget-command for downloading more than one page
Avatar
Rosika
Member
Members
February 24, 2017 - 9:56 am
Member Since: November 27, 2014
Forum Posts: 68
sp_UserOfflineSmall Offline

Hi altogether,

does anybody know the exact command I have to use to download part of a website that consists of more than one page (with wget). Example:

I want to download a certain page which exists within a forum. There´s an article dealing with "stderr" within this forum.

The address is : "https://forum.ubuntuusers.de/topic/stderr-umleitungen/" AND "https://forum.ubuntuusers.de/topic/stderr-umleitungen/2/" as it consists of two pages.

What I want to do is download both pages with one command, but not the entire forum. How do I go about typing the correct command?

Tnx a lot. Rosika https://davescomputertips.com/wp-content/sp-resources/forum-smileys/sf-embarassed.gif

P.S.: System: Linux/Lubuntu 16.04.2 LTS, 64bit

---------------------------------------------------------------------------------------------------------------
Edit:

Hi everyone.

in the meantime the problem could be solved. If anyone is interested:
The correct commands would be:

wget -Ek https://example.com/foo/bar/{,2}

for the download of two pages.

wget -Ek https://example.com/foo/bar/{3,4,5,6}
wget -Ek https://example.com/foo/bar/{3..6}

Either of the above commands for the download of several pages.

Reference: http://askubuntu.com/questions/886891/wget-command-for-downloading-more-than-one-page

Greetings.
Rosika Smile

Avatar
David Hartsock
Admin
February 26, 2017 - 9:52 am
Member Since: August 7, 2011
Forum Posts: 1117
sp_UserOfflineSmall Offline

Thanks for providing the solution, Rosika!

Avatar
dandl
Lexa, AR
Moderator
Members

Moderators
February 27, 2017 - 8:22 am
Member Since: April 28, 2013
Forum Posts: 740
sp_UserOfflineSmall Offline

Thanks Rosika, will try that command!!!!

Forum Timezone: America/Indiana/Indianapolis
Most Users Ever Online: 2303
Currently Online: MeheakKunar
Guest(s) 122
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Chad Johnson: 867
Mindblower: 681
carbonterry2: 356
Flying Dutchman: 278
grr: 211
Member Stats:
Guest Posters: 11
Members: 3231
Moderators: 7
Admins: 3
Forum Stats:
Groups: 8
Forums: 20
Topics: 1956
Posts: 13572
Newest Members:
Toastmaster, smartwindows, instaproapk, mousetesteronline, keshamatt
Moderators: Carol Bratt: 67, dandl: 740, Jason Shuffield: 1, Jim Canfield: 8, Terry Hollett: 0, Stuart Berg: 0, John Durso: 0
Administrators: Jim Hillier: 2709, Richard Pedersen: 212, David Hartsock: 1117
Scroll to Top

WHY NOT SUBSCRIBE TO OUR NEWSLETTER?

Get great content like this delivered to your inbox!

It's free, convenient, and delivered right to your inbox! We do not spam and we will not share your address. Period!