修复猪猪网注册时间信息获取

This commit is contained in:
ngfchl
2023-02-24 13:07:45 +08:00
parent 8c1fe9b3eb
commit 16be1c3c17
2 changed files with 10 additions and 2 deletions

View File

@@ -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/',

View File

@@ -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]",