![](https://img-blog.csdnimg.cn/20190927151101105.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Python
python
Marx_W
这个作者很懒,什么都没留下…
展开
-
Python爬虫——豆瓣电影Top250
#爬取 豆瓣电影Top250#250个电影 ,分为10个页显示,1页有25个电影import urllib.requestfrom bs4 import BeautifulSoupurl = "http://movie.douban.com/top250"headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/原创 2017-10-18 21:36:52 · 992 阅读 · 0 评论 -
Python爬虫——小说爬取
爬取小说并存入到txt文件中 小说网站 https://www.readnovel.com/ url特点 : 每本小说对应一个编号,所以每本小说对应的网址为 https://www.readnovel.com/chapter/#####/#####(小说编号)/以爬取 小说阅读网 的 杀破唐 为例 我们需要爬取的内容是其小说部分,所以以获取第一章内容为例: 1. 打开第一章的网页链原创 2017-11-18 21:30:32 · 10014 阅读 · 3 评论