toml中的节点不能重复
This commit is contained in:
parent
380e940ee3
commit
b0283b09fd
|
@ -2,30 +2,6 @@
|
|||
# level表示站点的等级或者大小程度,等级越高站点规模越大
|
||||
# type 表示站点的类型 9kg=18禁,
|
||||
# label 网站标签
|
||||
# ===========================【start】 已有 cookie 打开网站 【start】===========================
|
||||
['1PTBar/壹PT']
|
||||
url = "https://1ptba.com"
|
||||
cookie = "c_secure_uid=MTA0ODQx; c_secure_pass=c32037fc1a670e75d797df403e9e5a33; c_secure_ssl=eWVhaA%3D%3D; c_secure_tracker_ssl=eWVhaA%3D%3D; c_secure_login=bm9wZQ%3D%3D"
|
||||
level = 3
|
||||
label = "游戏、综艺、电子书、windows软件"
|
||||
|
||||
[pttime]
|
||||
url = "https://www.pttime.org"
|
||||
cookie = "c_lang_folder=chs; c_secure_uid=OTExNDU%3D; c_secure_pass=b4567a9950c3906657ed8baeb5a39b2d; c_secure_ssl=eWVhaA%3D%3D; c_secure_tracker_ssl=eWVhaA%3D%3D; c_secure_login=bm9wZQ%3D%3D; cf_clearance=RtffM86J.2AMKNqMKcF5WTGWOK11V7gklzY2rDRNu24-1701826018-0-1-d71c894c.1d67b4d8.801dd6ac-0.2.1701826018"
|
||||
level = 2
|
||||
label = "9kg"
|
||||
|
||||
[icc2022]
|
||||
url = "https://www.icc2022.com"
|
||||
cookie = "c_secure_uid=MTk0OTI%3D; c_secure_pass=d7f655d5b8e90739f23620b9d24241e1; c_secure_ssl=eWVhaA%3D%3D; c_secure_tracker_ssl=eWVhaA%3D%3D; c_secure_login=bm9wZQ%3D%3D; PHPSESSID=em8dtq7r0t77tt1e0aq4m0of1o"
|
||||
level = 3
|
||||
label = "动漫、综艺、电视剧"
|
||||
|
||||
[hdmayi]
|
||||
url = "https://hdmayi.com"
|
||||
cookie = "Hm_lvt_6d8ca12c6bcfbd37eefefe2acf29b40d=1701424866; c_secure_uid=MjcyODg%3D; c_secure_pass=4e745ac26cb64631db97c605af6eef25; c_secure_ssl=eWVhaA%3D%3D; c_secure_tracker_ssl=eWVhaA%3D%3D; c_secure_login=bm9wZQ%3D%3D; Hm_lpvt_6d8ca12c6bcfbd37eefefe2acf29b40d=1701832678"
|
||||
level = 4
|
||||
# ===========================【end】 已有 cookie 打开网站 【end】===========================
|
||||
|
||||
# ===========================【start】 nastools 合作站点 【start】===========================
|
||||
['鲨鱼PT']
|
||||
|
@ -80,7 +56,7 @@ level = 3
|
|||
|
||||
['1PTBar/壹PT']
|
||||
url = "https://1ptba.com"
|
||||
cookie = ""
|
||||
cookie = "c_secure_uid=MTA0ODQx; c_secure_pass=c32037fc1a670e75d797df403e9e5a33; c_secure_ssl=eWVhaA%3D%3D; c_secure_tracker_ssl=eWVhaA%3D%3D; c_secure_login=bm9wZQ%3D%3D"
|
||||
level = 3
|
||||
label = "游戏、综艺、电子书、windows软件"
|
||||
|
||||
|
@ -89,7 +65,7 @@ label = "游戏、综艺、电子书、windows软件"
|
|||
# ===========================【start】 9kg 站点 【start】===========================
|
||||
[pttime]
|
||||
url = "https://www.pttime.org"
|
||||
cookie = ""
|
||||
cookie = "c_lang_folder=chs; c_secure_uid=OTExNDU%3D; c_secure_pass=b4567a9950c3906657ed8baeb5a39b2d; c_secure_ssl=eWVhaA%3D%3D; c_secure_tracker_ssl=eWVhaA%3D%3D; c_secure_login=bm9wZQ%3D%3D; cf_clearance=RtffM86J.2AMKNqMKcF5WTGWOK11V7gklzY2rDRNu24-1701826018-0-1-d71c894c.1d67b4d8.801dd6ac-0.2.1701826018"
|
||||
level = 2
|
||||
label = "9kg"
|
||||
|
||||
|
@ -174,13 +150,13 @@ label = "小说、电子书、有声读物"
|
|||
|
||||
[icc2022]
|
||||
url = "https://www.icc2022.com"
|
||||
cookie = ""
|
||||
cookie = "c_secure_uid=MTk0OTI%3D; c_secure_pass=d7f655d5b8e90739f23620b9d24241e1; c_secure_ssl=eWVhaA%3D%3D; c_secure_tracker_ssl=eWVhaA%3D%3D; c_secure_login=bm9wZQ%3D%3D; PHPSESSID=em8dtq7r0t77tt1e0aq4m0of1o"
|
||||
level = 3
|
||||
label = "动漫、综艺、电视剧"
|
||||
|
||||
[hdmayi]
|
||||
url = "https://hdmayi.com"
|
||||
cookie = ""
|
||||
cookie = "Hm_lvt_6d8ca12c6bcfbd37eefefe2acf29b40d=1701424866; c_secure_uid=MjcyODg%3D; c_secure_pass=4e745ac26cb64631db97c605af6eef25; c_secure_ssl=eWVhaA%3D%3D; c_secure_tracker_ssl=eWVhaA%3D%3D; c_secure_login=bm9wZQ%3D%3D; Hm_lpvt_6d8ca12c6bcfbd37eefefe2acf29b40d=1701832678"
|
||||
level = 4
|
||||
|
||||
|
||||
|
|
|
@ -126,11 +126,10 @@ class PtOperation:
|
|||
print(f"Processing section: {section_name} --- {section_data.get('url')}")
|
||||
url, cookie = section_data.get('url'), section_data.get('cookie')
|
||||
if len(cookie.strip()) > 0:
|
||||
# 签到
|
||||
# cookie不为空时候,可以签到
|
||||
self.attendances(section_name, url, cookie)
|
||||
else:
|
||||
# 检测是否可以注册
|
||||
self.signup(section_name, url)
|
||||
# 检测是否可以注册
|
||||
self.signup(section_name, url)
|
||||
except FileNotFoundError:
|
||||
print(f"Error: The file '{self.toml_file}' was not found.")
|
||||
except toml.TomlDecodeError as e:
|
||||
|
|
Loading…
Reference in New Issue