From d9080621fa7464aa3442880d845606498c82e17b Mon Sep 17 00:00:00 2001 From: "guorong.zheng" <360996299@qq.com> Date: Wed, 7 Feb 2024 09:58:33 +0800 Subject: [PATCH] chore:list order --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index d26ec5c46d..76650bdaed 100644 --- a/main.py +++ b/main.py @@ -115,7 +115,7 @@ def visitPage(self,channelItems): allRangeElement=allRangeElement[:5] for elem in allRangeElement: urls.append(elem.text) - allUrls=list(set(channelObj[name] + urls if name in self.useOldList else urls)) + allUrls=list(dict.fromkeys(channelObj[name] + urls if name in self.useOldList else urls)) # urls=self.compareSpeed(allUrls) channelUrls[name]=allUrls self.outputTxt(cate,channelUrls)