From fec81fea0560494ece72caf1258d9db2a1c6fe6b Mon Sep 17 00:00:00 2001 From: Hiller Liao Date: Sun, 2 Jul 2023 06:00:41 +0800 Subject: [PATCH] remove tmp log for xinhuanet world --- rsshub/spiders/xinhuanet/world.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/rsshub/spiders/xinhuanet/world.py b/rsshub/spiders/xinhuanet/world.py index 4b89e05..ffe2946 100644 --- a/rsshub/spiders/xinhuanet/world.py +++ b/rsshub/spiders/xinhuanet/world.py @@ -7,8 +7,6 @@ domain = 'http://www.news.cn/world/index.html' def ctx(): url = f'{domain}' tree = fetch(url, headers=DEFAULT_HEADERS) - with open('/home/icedragon/tmp.html', 'w') as log: - log.write(tree.getall()[0]) posts = tree.xpath('//div[@id=\'recommendDepth\']//a') return { 'title': '新华网 - 国际要闻',