#!/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 inU3C3VideoPhotoBookGameSoftwareOtherdoif [[ "$type"="Video" ]] ; thenfor p in {1..5664}dofor id in`lynx-dump "https://u3c3.com/?type=$type&p=$p" |grep "view" |awk '{print $2}' |awk-F'=' '{print $2}'`docurl-s"https://u3c3.com/view?id=$id">tmp.htmlecho"https://u3c3.com/torrent/$id.torrent `cattmp.html|grep '<title>' |sed "s/<title>//" |sed "s/<\/title>//"`"donedonefi# 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 ; fidone