Skip to content

Commit e83c29c

Browse files
author
huguansheng
committed
修复bug
1 parent 41822d7 commit e83c29c

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

test.py

+20-2
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,23 @@
2121
from gggne.section import download_and_extract
2222
from gggne.details_list import download_and_extract
2323

24-
r = download_and_extract('https://news.sina.com.cn/', False, encoding='utf-8')
25-
print(json.dumps(r, ensure_ascii=False))
24+
# r = download_and_extract('https://news.sina.com.cn/', False, encoding='utf-8')
25+
# print(json.dumps(r, ensure_ascii=False))
26+
27+
# from gggne.details import download_and_extract
28+
# print(json.dumps(
29+
# download_and_extract(
30+
# 'http://www.bj.chinanews.com.cn/news/2023/0612/90910.html',
31+
# encoding='gb2312'),
32+
# ensure_ascii=False))
33+
34+
# print(json.dumps(
35+
# download_and_extract(
36+
# 'https://www.bj.chinanews.com.cn/',
37+
# encoding='gb2312'), ensure_ascii=False))
38+
39+
from gggne.section import download_and_extract
40+
print(json.dumps(
41+
download_and_extract(
42+
'https://www.bj.chinanews.com.cn/',
43+
encoding='gb2312'), ensure_ascii=False))

0 commit comments

Comments
 (0)