User Tools

Site Tools


linux-download

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux-download [2022/10/12 09:05] – created glebelglinux-download [2022/10/12 09:12] (current) glebelg
Line 1: Line 1:
-Download  +====Download ====  
-wget -t0 -c http://...+  wget -c http://...
  
-How to download a list of URLs using more than one process (say wgetat the time? +-t0 : nombre de tentatives (0 = infini
-First, create a file with URLs – one URL per line. Let’s call the file url.txt. Then we need to create N wget processes, each downloading one URL at the time. Thanks to xargs it is trivial:+-c reprend téléchargement interrompu
  
-cat url.txt | xargs -n 1 -P 10 wget+====How to download a list of URLs using more than one process (say wget) at the time?==== 
 + 
 +First, create a file with URLs – one URL per line. Let’s call the file url.txt.  
 + 
 +Then we need to create N wget processes, each downloading one URL at the time. Thanks to xargs it is trivial: 
 + 
 +  cat url.txt | xargs -n 1 -P 10 wget
  
 -n 1 will make xargs run command (wget) with only one argument at the time -n 1 will make xargs run command (wget) with only one argument at the time
 -P 10 will create 10 parallel processes -P 10 will create 10 parallel processes
  
-python yt-dlp -x --split-chapters https://www.youtube.com/watch?v=+====Download from youtube==== 
 + 
 +  python yt-dlp -x --split-chapters https://...
  
-youtube-dl -ciw --playlist-items 60-515 --extract-audio --audio-format mp3 --restrict-filenames https://www.youtube.com/playlist?list=XXXXXXXXXXXXX+  youtube-dl -ciw --playlist-items 60-515 --extract-audio --audio-format mp3 --restrict-filenames https://..
 +   
 +==== Others ====
  
  
  
  
linux-download.1665565522.txt.gz · Last modified: 2022/10/12 09:05 by glebelg