From 1862e3ead89a30188997de8e2d46d18d620c44ed Mon Sep 17 00:00:00 2001 From: ngfchl Date: Wed, 21 Dec 2022 11:01:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96parse=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pt_site/UtilityTool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pt_site/UtilityTool.py b/pt_site/UtilityTool.py index 9df8f7e..b7a0ea4 100644 --- a/pt_site/UtilityTool.py +++ b/pt_site/UtilityTool.py @@ -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