1导入请求, re234defgetdetail(URL ) :56response=requests.get ) URL )7html=response.content.decode ) gbk ‘ )8 #电影资讯页面详情07519a(.* )/f ), HML ) 10 movie _ title=movie _ title _ name.group (1) 11 #电影磁力magnet 12 movie _ magnet _ URL=re.search (/a href htthth print(movie_magnet.group(1) ) 14 movie _ magnet=movie _ magnet _ URL.group1) 15 #种子16 moup html (16 ) 289; 中使用的21 movie _ title _ list.append (movie _ title ) 22 23 # )指向此列表中两个下载的链接24movie_down_URL=[] 25 movie _ down _ URL.appennl 26 movie _ down _ URL.append (movie _ torrent ) 27movie_down_URL_all=[] 28 movie _ down _ URL _ all.appe NNT 23031 movie _ dict=dict (zip (movie _ title _ list, movie_down_url_all ) ) 33 ) 346535 ) 36 178 ) 336039 lurl=’ http://www.dytt8. net/html/gndy/dyzz/list _ 23 _ % s.html ‘ % I 4041 response=requests.geests 2443 html=response.text 4445 movie _ u URL _ list=re.find alall html (4647 for movie _ iteminmovie _ URL _ list :48 movie _ URL=’ http://www.dytt8. net ‘ movie _ item 49 get detail ) ml