Skip to content

Two shell scripts that give you a work around for Wget's lack of Multi Threading.

License

Notifications You must be signed in to change notification settings

dropitlikecross/Wget-Multithread

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Wget-Multithread

Two shell scripts that give you a work around for Wget's lack of Multi Threading.

How to multi thread with Wget [2 Methods]

Method 1

wget -r -np -N [url] &
wget -r -np -N [url] &
wget -r -np -N [url] &

Method 2

for i in {1..3}; do wget -rnp -c -N [url]&; done;  

This starts 3 jobs or threads, you edit to increase as you wish. You can use a list of urls by replacing [url]with -i url.txt

Modifier explanations:

  • The -N modifier is what allows for this to work as it starts a file transfer only if the requested file is newer than what is on the disk. This should prevent the processes from overwriting each other and skip onto the next file. Note: As this uses a time stamp to achieve this, there is some extra minimal overhead.
  • The -c modifier continues incomplete files and can be added or removed to your liking. I leave it on incase anything fails.
  • [url] becomes example.com removing the brackets.

#wgetmulti #multithreadwget #wgetmultithread #fastwget #multithread #multithreading #crosslockhart

About

Two shell scripts that give you a work around for Wget's lack of Multi Threading.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published