mirror of
https://github.com/ngfchl/ptools
synced 2023-07-10 13:41:22 +08:00
清除获取的分享率中的异常字符
This commit is contained in:
@@ -1766,7 +1766,7 @@ class PtSpider:
|
||||
details_html.xpath(site.ratio_rule)
|
||||
).lower().replace(',', '').replace('无限', 'inf').replace('∞', 'inf'). \
|
||||
replace('inf.', 'inf').replace(
|
||||
'null', 'inf').replace('---', 'inf').replace('-', 'inf').strip(
|
||||
'null', 'inf').replace('---', 'inf').replace('-', 'inf').replace('\xa0', '').strip(
|
||||
']:').strip(':').strip()
|
||||
if not ratio:
|
||||
ratio = ''.join(
|
||||
|
||||
Reference in New Issue
Block a user