![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
爬虫
少喝烫水
嘘!
展开
-
Beautiful Soup库的入门
摘自mooc的Python网络爬虫与信息读取 Beautiful Soup库的入门 Beautiful soup库的基本元素 Beautiful soup库是解析,遍历,维护“标签树”的功能库 Beautiful Soup库的引用 Beautiful Soup库,也叫beautifulsoup4 或 bs4 约定引用方式如下,即主要是用BeautifulSoup类: from bs4 impo...原创 2020-03-19 18:33:39 · 141 阅读 · 0 评论 -
简单图片爬取
import requests import os url = "https://wx4.sinaimg.cn/mw690/005Ed7hGgy1gcra7kbkuej30eg0eg41r.jpg" root = "D://pics//" path = root + url.split('/')[-1] try: if not os.path.exists(root): o...原创 2020-03-13 17:17:40 · 164 阅读 · 0 评论