自动化按照 AV 分类下载种子 脚本
Last updated
Last updated
#!/bin/bash
for n in {1..21}; do for i in `curl -s "https://www.jieav.com/special/av-$n.html" | grep '<li class="title">' | sed "s/<li class=\"title\">//" | sed "s/<\/li>//"`; do echo $i ; done;done > av.txt
for key in `cat av.txt`;do
#echo "高桥圣子" | tr -d '\n' | xxd -plain | sed 's/\(..\)/%\1/g'
#echo "高桥圣子" | tr -d '\n' | od -An -tx1 | tr ' ' %
#mkdir $key ; cd $key ; curl -s "https://u3c3.com/?search=$key" | grep 'href="/view?id=' | awk -F'=' '{print $3}' | awk -F'"' '{print "https://u3c3.com/torrent/"$1".torrent"}' | xargs -n 1 --max-procs 100 wget -q ; cd ..
mkdir $key ; cd $key ; curl -s "https://u3c3.com/?search=`echo "$key" | tr -d '\n' | od -An -tx1 | tr ' ' %`" | grep 'href="/view?id=' | awk -F'=' '{print $3}' | awk -F'"' '{print "https://u3c3.com/torrent/"$1".torrent"}' | xargs -n 1 --max-procs 100 wget -q ; cd ..
done