2010-08-02 20 views

cevap

1

Bu komut başarıyla kullandım: Daha sonra ilk tüm sayfaları indirmek sayfalar ve indirme fiili bağlantıları bulmalı

sourceforge-file-downloader.sh msys 

:

https://github.com/SpiritQuaddicted/sourceforge-file-download

kullanımınız koşturmasında son dosyalar. Proje açıklamasından

:

Bir sourceforge projenin tüm dosyaları indirmek için izin verir. Geçerli dizine proje gibi adlandırılmış bir dizine yüklenir. İlk argüman olarak projenin adını geçirin, örneğin ./sourceforge-file-download.sh inkscape Sadece repo hiç yeterince kısa olduğundan ben buradan göndeririz kaldırılırsa durumunda http://sourceforge.net/projects/inkscape/files/

tümünü indirmeyi:

#!/bin/sh 

project=$1 
echo "Downloading $project's files" 

# download all the pages on which direct download links are 
# be nice, sleep a second 
wget -w 1 -np -m -A download http://sourceforge.net/projects/$project/files/ 

# extract those links 
grep -Rh direct-download sourceforge.net/ | grep -Eo '".*" ' | sed 's/"//g' > urllist 

# remove temporary files, unless you want to keep them for some reason 
rm -r sourceforge.net/ 

# download each of the extracted URLs, put into $projectname/ 
while read url; do wget --content-disposition -x -nH --cut-dirs=1 "${url}"; done < urllist 

rm urllist 
İlgili konular