擅长:python、mysql、java
<p>你要找的东西叫做RSS提要,大多数新闻网站都有RSS提要,这样你就可以很容易地解析新故事。你知道吗</p>
<p>对于CNN,您可以在这里查看:<a href="http://www.cnn.com/services/rss/" rel="nofollow noreferrer">http://www.cnn.com/services/rss/</a>,然后选择您想要的RSS提要。你知道吗</p>
<p>假设你想在这里找到最热门的故事,你可以从我最初发布的链接库中获取这个<a href="http://rss.cnn.com/rss/cnn_topstories.rss" rel="nofollow noreferrer">http://rss.cnn.com/rss/cnn_topstories.rss</a>,然后从页面请求数据并解析你想要的内容,很可能是使用python beautifulsoup库,可以在这里找到第4版教程:<a href="https://www.pythonforbeginners.com/beautifulsoup/beautifulsoup-4-python" rel="nofollow noreferrer">https://www.pythonforbeginners.com/beautifulsoup/beautifulsoup-4-python</a></p>