Commit ae1c3772 authored by reeves's avatar reeves 🛀🏻

Update py/sample_sina_new.py

parent cc23db60
......@@ -48,6 +48,7 @@ def crawl():
DicArray = analysisA(etree.HTML(htmlText))
news_links = []
# 遍历字典数组中的元素。筛选符合 sina 域名的http
for idx, item in enumerate(DicArray):
dicKey = list(item.keys())[0]
dicValue = item[dicKey]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment