自动化下载片源

自动化采集视频 种子 和 磁力连接 下载脚本

  1. 主页面 https://u3c3.com/

  2. 综合 https://u3c3.com/?p=1

  3. 国产图片 https://u3c3.com/?type=U3C3&p=1

  4. 视频 https://u3c3.com/?type=Video&p=1

  5. 照片 https://u3c3.com/?type=Photo&p=1

  6. 黄书 https://u3c3.com/?type=Book&p=1

  7. 游戏 https://u3c3.com/?type=Game&p=1

  8. 软件 https://u3c3.com/?type=Software&p=1

  9. 其它 https://u3c3.com/?type=Other&p=1

  10. 上传 https://u3c3.com/upload

#!/bin/bash
#主页面      https://u3c3.com/  #综合        https://u3c3.com/?p=1	#国产图片    https://u3c3.com/?type=U3C3&p=1	#视频        https://u3c3.com/?type=Video&p=1	#照片        https://u3c3.com/?type=Photo&p=1	#黄书        https://u3c3.com/?type=Book&p=1	#游戏        https://u3c3.com/?type=Game&p=1	#软件        https://u3c3.com/?type=Software&p=1	#其它        https://u3c3.com/?type=Other&p=1	#上传        https://u3c3.com/upload
for type in U3C3 Video Photo Book Game Software Other 
do 
	if [[ "$type" = "Video" ]] ; then 
		for p in {1..5664} 
		do 
			for id in `lynx -dump "https://u3c3.com/?type=$type&p=$p" | grep "view" | awk '{print $2}' | awk -F'=' '{print $2}'`
			do
				curl -s "https://u3c3.com/view?id=$id" > tmp.html
				echo "https://u3c3.com/torrent/$id.torrent `cat tmp.html | grep '<title>' | sed "s/<title>//" | sed "s/<\/title>//"`" 
			done
		done 
	fi
#	if [[ "$type" = "U3C3"  ]] ; then for p in {1..14}   ; do echo "https://u3c3.com/?type=$type&p=$p" ; done ; fi
#	if [[ "$type" = "Video" ]] ; then for p in {1..5664} ; do echo "https://u3c3.com/?type=$type&p=$p" ; done ; fi
#	if [[ "$type" = "Photo" ]] ; then for p in {1..202}  ; do echo "https://u3c3.com/?type=$type&p=$p" ; done ; fi
#	if [[ "$type" = "Book"  ]] ; then for p in {1..347}  ; do echo "https://u3c3.com/?type=$type&p=$p" ; done ; fi
#	if [[ "$type" = "Game"  ]] ; then for p in {1..113}  ; do echo "https://u3c3.com/?type=$type&p=$p" ; done ; fi
#	if [[ "$type" = "Other" ]] ; then for p in {1..17}   ; do echo "https://u3c3.com/?type=$type&p=$p" ; done ; fi
done

Last updated