mirror of
https://github.com/ngfchl/ptools
synced 2023-07-10 13:41:22 +08:00
优化parse函数
This commit is contained in:
@@ -1161,7 +1161,7 @@ class PtSpider:
|
||||
|
||||
@staticmethod
|
||||
def parse(response, rules):
|
||||
return etree.HTML(response.content.decode('utf8')).xpath(rules)
|
||||
return etree.HTML(response.text.replace('0xff', '')).xpath(rules)
|
||||
|
||||
def send_torrent_info_request(self, my_site: MySite):
|
||||
site = my_site.site
|
||||
|
||||
Reference in New Issue
Block a user