# 自动化下载片源

![https://u3c3.com/?p=23](/files/Mg0baI4FgbaAdSlN4ukH)

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

1. 主页面     <https://u3c3.com/> &#x20;
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>

```bash
#!/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

```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://xn--6o0a585a.gitbook.io/devops/se-zhan-zi-dong-hua/zi-dong-hua-xia-zai-pian-yuan.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
