blob: 213785b47690c4c1a101b9b42b28826a140a28ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/bash
# A little script I made that gathers the linux torrents from distrowatch and puts them in downloads
pwd
sleep 1
# Get rid of all the crap that will prevent wget from reading the file properly
mkdir TEMP
curl https://distrowatch.com/news/torrents.xml | egrep -o "https?://[^ ]+" | cut -d '<' -f 1 > /tmp/torrent_urls
# Download the torrents and move it to the watch directory
cd TEMP
wget -R *.torrent.1 -i torrent_urls
mv -i *.torrent $HOME/downloads
ls -l $HOME/downloads/
cd ..
rm -rfv /tmp/torrent_urls
exit 0
|