LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-03-2008, 09:16 AM   #1
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627

Rep: Reputation: 31
How to download directory from web


Hi,
I tried to download directories from the web via wget, but i got just index.html
for example I tried
wget -r http://zekr.cvs.sourceforge.net/zekr/Zekr/src

which scontains several files and directories.

I tried recursive = on in /etc/wgetrc, I got a lot of index.html like
index.html?sortby=author index.html?sortby=date ??????

Something else than wget ??

thanks for help
bela
 
Old 09-03-2008, 10:34 AM   #2
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
Try
Code:
wget -r http://zekr.cvs.sourceforge.net/zekr/Zekr/src/*
No guarantees though...

[edit]wildcards (*) are not supported in HTTP, so it's not gonna work. Like I said: no guarantees...[/edit]

Last edited by Dutch Master; 09-03-2008 at 10:39 AM.
 
Old 09-03-2008, 10:45 AM   #3
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
That is not the way.

Your approach should be like

'you want all pdfs in a webpage up to 3 levels deep'

'you want everything in a webpage up to n levels deep'

# man wget
 
Old 09-03-2008, 11:30 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Dutch Master : works fine for this
wget -r ftp://ftp.heanet.ie/mirrors/ftp.slac...e-12.1/extra/*
and placing everything nice in
/home/knudfl/ftp.heanet.ie/mirrors/ftp.slackware.com\
/pub/slackware/slackware-12.1/extra/"folders"/"files"

Can also make a "select" with e.g.
wget -r ftp://ftp.heanet.ie/mirrors/ftp.slac...-12.1/extra/b*

Regards

Last edited by knudfl; 09-03-2008 at 11:40 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Directory for opera download? ezor SUSE / openSUSE 2 07-05-2008 04:42 PM
Web Dir: Can someone look at everything in a directory on my web server? RHLinuxGUY Linux - Security 4 04-13-2007 05:09 PM
CVS download directory...... chunlee Linux - Newbie 2 10-05-2004 02:40 AM
Best directory to download and install from psyklops Linux - General 3 08-23-2003 01:01 AM
Jerky mouse when web browsers download web page stodge Linux - Software 1 07-08-2003 10:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration