From 16be1c3c1760294eb0ca5c5b4183fe7e0e67ddec Mon Sep 17 00:00:00 2001 From: ngfchl Date: Fri, 24 Feb 2023 13:07:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=8C=AA=E7=8C=AA=E7=BD=91?= =?UTF-8?q?=E6=B3=A8=E5=86=8C=E6=97=B6=E9=97=B4=E4=BF=A1=E6=81=AF=E8=8E=B7?= =?UTF-8?q?=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pt_site/UtilityTool.py | 8 ++++++++ pt_site_site.json | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/pt_site/UtilityTool.py b/pt_site/UtilityTool.py index 25baec3..b033271 100644 --- a/pt_site/UtilityTool.py +++ b/pt_site/UtilityTool.py @@ -2076,6 +2076,14 @@ class PtSpider: elif 'hd-torrents.org' in site.url: time_join = datetime.strptime(''.join(details_html.xpath(site.time_join_rule)), '%d/%m/%Y %H:%M:%S') my_site.time_join = time_join + elif site.url in [ + 'https://piggo.me/', + ]: + time_str = ''.join(details_html.xpath(site.time_join_rule)) + time_str = time_str.split('(')[0] + print(time_str) + time_join = datetime.strptime(time_str.strip(), '%Y-%m-%d %H:%M:%S') + my_site.time_join = time_join elif site.url in [ 'https://exoticaz.to/', 'https://cinemaz.to/', diff --git a/pt_site_site.json b/pt_site_site.json index 4586937..95e8f63 100644 --- a/pt_site_site.json +++ b/pt_site_site.json @@ -95,7 +95,7 @@ { "id": 2, "created_at": "2022-07-17 10:24:21.376000", - "updated_at": "2023-01-30 15:24:44.535451", + "updated_at": "2023-02-24 13:06:36.921136", "name": "猪猪网", "url": "https://piggo.me/", "logo": "https://piggo.me/favicon.ico", @@ -142,7 +142,7 @@ "completers_rule": ".//a[contains(@href,\"viewsnatches.php?id=\")]//text()", "remark": "", "invitation_rule": "//a[contains(@href,\"invite.php?id=\")]/following-sibling::text()[1]", - "time_join_rule": "//td[contains(text(),\"加入\")]/following-sibling::td[1]//span/@title", + "time_join_rule": "//td[contains(text(),\"加入\")]/following-sibling::td[1]/text()", "latest_active_rule": "//td[contains(text(),\"最近动向\")]/following-sibling::td[1]//span/@title", "uploaded_rule": "//font[@class=\"color_uploaded\"]/following-sibling::text()[1]", "downloaded_rule": "//font[@class=\"color_downloaded\"]/following-sibling::text()[1]",