remove tmp log for xinhuanet world

This commit is contained in:
Hiller Liao
2023-07-02 06:00:41 +08:00
parent 6809413fc7
commit fec81fea05

View File

@@ -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': '新华网 - 国际要闻',