From bbc2a03d969f9af3979fb0096738c321536c49bf Mon Sep 17 00:00:00 2001 From: qist <87984115@qq.com> Date: Mon, 11 May 2026 19:44:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=89=AF=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- py/闪雷.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/py/闪雷.py b/py/闪雷.py index 15930995..e01ed78a 100644 --- a/py/闪雷.py +++ b/py/闪雷.py @@ -53,7 +53,8 @@ class Spider(Spider): pic = self.host + '/' + pic.replace('../', '') elif pic and not pic.startswith('http'): pic = self.host + '/' + pic.lstrip('/') - + remarks = dl('dt span').eq(1).text() or '' + href = h4_dd('a').attr('href') if href: # 从href中提取ClassId @@ -63,7 +64,7 @@ class Spider(Spider): 'vod_id': vid, 'vod_name': title, 'vod_pic': pic, - 'vod_remarks': '' + 'vod_remarks': remarks }) result['list'] = videos[:10] # 只取前10个 @@ -97,7 +98,8 @@ class Spider(Spider): pic = self.host + '/' + pic.replace('../', '') elif pic and not pic.startswith('http'): pic = self.host + '/' + pic.lstrip('/') - + remarks = dl('dt span').eq(1).text() or '' + href = h4_dd('a').attr('href') if href: # 从href中提取ClassId @@ -107,7 +109,7 @@ class Spider(Spider): 'vod_id': vid, 'vod_name': title, 'vod_pic': pic, - 'vod_remarks': '' + 'vod_remarks': remarks }) result['list'] = videos @@ -209,7 +211,8 @@ class Spider(Spider): pic = self.host + '/' + pic.replace('../', '') elif pic and not pic.startswith('http'): pic = self.host + '/' + pic.lstrip('/') - + remarks = dl('dt span').eq(1).text() or '' + href = h4_dd('a').attr('href') if href: # 从href中提取ClassId @@ -219,7 +222,7 @@ class Spider(Spider): 'vod_id': vid, 'vod_name': title, 'vod_pic': pic, - 'vod_remarks': '' + 'vod_remarks': remarks }) return {'list': videos, 'page': pg}