![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
爬虫
WageningenUR
一个在科研院所打杂的人
展开
-
Python爬虫-漫画柜漫画爬取
代码仅供学习from selenium import webdriverfrom lxml import etreeimport timeimport randomimport requestsimport osdef download_pic(urls,name): i = 1 os.mkdir(fr'C:\Users\msi\Desktop\爬取图片\{name}') #修改储存地址 for url in urls: headers = {'R原创 2021-11-27 04:21:29 · 1620 阅读 · 0 评论 -
Python爬取Google图片(2021.11.21编写)
傻瓜版代码,输入网址和图片数量就能用了。from selenium import webdriverimport timefrom lxml import etreeimport randomfrom urllib import requestimport osdef pic_url_get(num): for i in range(num): time.sleep(random.uniform(0,2)) content = driver.pag原创 2021-11-22 05:16:31 · 3191 阅读 · 2 评论