Python抓取新浪新闻数据

作者: 9ba4bd5525b9 | 来源:发表于2019-07-20 16:24 被阅读3次

爬取前的准备:

BeautifulSoup的导入:pip install BeautifulSoup4

requests的导入:pip install requests

下载jupyter notebook:pip install jupyter notebook

下载python,配置环境(可使用anocanda,里面提供了很多python模块)

完整代码

存储的excel文档如下:

相关文章

网友评论

    本文标题:Python抓取新浪新闻数据

    本文链接:https://www.haomeiwen.com/subject/lrjulctx.html