mirror of
https://github.com/ngfchl/ptools
synced 2023-07-10 13:41:22 +08:00
修复0下载流量时飞天和ipt拉取数据错误的bug
This commit is contained in:
@@ -1746,7 +1746,8 @@ class PtSpider:
|
||||
try:
|
||||
ratio = ''.join(
|
||||
details_html.xpath(site.ratio_rule)
|
||||
).replace(',', '').replace('无限', 'inf').replace('∞', 'inf').replace('---', 'inf').strip(
|
||||
).replace(',', '').replace('无限', 'inf').replace('∞', 'inf').replace(
|
||||
'null', 'inf').replace('---', 'inf').replace('-', 'inf').strip(
|
||||
']:').strip(':').strip()
|
||||
# 分享率告警通知
|
||||
logger.info('ratio:{}'.format(ratio))
|
||||
|
||||
Reference in New Issue
Block a user