mirror of
https://github.com/ngfchl/ptools
synced 2023-07-10 13:41:22 +08:00
修复学校信息获取
This commit is contained in:
4
pt.json
4
pt.json
@@ -4823,7 +4823,7 @@
|
||||
"pk": 70,
|
||||
"fields": {
|
||||
"created_at": "2022-07-17T10:24:59.754",
|
||||
"updated_at": "2022-11-20T23:20:45.336",
|
||||
"updated_at": "2022-11-21T19:42:25.740",
|
||||
"url": "https://pt.btschool.club/",
|
||||
"name": "BT学校",
|
||||
"logo": "https://pt.btschool.club/favicon.ico",
|
||||
@@ -4891,7 +4891,7 @@
|
||||
"leech_rule": "//img[@class=\"arrowdown\"][1]/following-sibling::text()[1]",
|
||||
"seed_rule": "//img[@class=\"arrowup\"][1]/following-sibling::text()[1]",
|
||||
"record_count_rule": "/html/body/b/text()",
|
||||
"seed_vol_rule": "//tr/td[4]",
|
||||
"seed_vol_rule": "//tr/td[3]",
|
||||
"mailbox_rule": "//a[@href=\"messages.php\"]/font[contains(text(),\"条\")]/text()[1]",
|
||||
"notice_rule": "//a[@href=\"index.php\"]/font[contains(text(),\"条\")]/text()[1]",
|
||||
"hash_rule": "//tr[13]/td[2]/table/tbody/tr/td[1]/text()"
|
||||
|
||||
@@ -1719,6 +1719,7 @@ class PtSpider:
|
||||
url=site.url + site.page_mybonus,
|
||||
)
|
||||
# print(response.content.decode('utf8'))
|
||||
"""
|
||||
if 'btschool' in site.url:
|
||||
# logger.info(response.content.decode('utf8'))
|
||||
url = self.parse(response, '//form[@id="challenge-form"]/@action[1]')
|
||||
@@ -1736,6 +1737,7 @@ class PtSpider:
|
||||
data=data,
|
||||
delay=60
|
||||
)
|
||||
"""
|
||||
res = converter.convert(response.content)
|
||||
# logger.info('时魔响应:{}'.format(response.content))
|
||||
# logger.info('转为简体的时魔页面:', str(res))
|
||||
|
||||
@@ -4638,7 +4638,7 @@
|
||||
{
|
||||
"id": 70,
|
||||
"created_at": "2022-07-17 10:24:59.754000",
|
||||
"updated_at": "2022-11-20 23:20:45.336759",
|
||||
"updated_at": "2022-11-21 19:42:25.740455",
|
||||
"name": "BT学校",
|
||||
"url": "https://pt.btschool.club/",
|
||||
"logo": "https://pt.btschool.club/favicon.ico",
|
||||
@@ -4702,7 +4702,7 @@
|
||||
"leech_rule": "//img[@class=\"arrowdown\"][1]/following-sibling::text()[1]",
|
||||
"seed_rule": "//img[@class=\"arrowup\"][1]/following-sibling::text()[1]",
|
||||
"record_count_rule": "/html/body/b/text()",
|
||||
"seed_vol_rule": "//tr/td[4]",
|
||||
"seed_vol_rule": "//tr/td[3]",
|
||||
"mailbox_rule": "//a[@href=\"messages.php\"]/font[contains(text(),\"条\")]/text()[1]",
|
||||
"hash_rule": "//tr[13]/td[2]/table/tbody/tr/td[1]/text()",
|
||||
"notice_rule": "//a[@href=\"index.php\"]/font[contains(text(),\"条\")]/text()[1]",
|
||||
|
||||
Reference in New Issue
Block a user