Python 簡單的爬圖片,下載到本地,requests+beautifulsoup框架

先上圖: 源碼: from urllib import request from bs4 import BeautifulSoup import os # 新建文件夾 curPath = os.getcwd() temPath = 'tu2345' targetPath = curPath+os.path.sep+temPath if not os.path.exists(targetPath
相關文章
相關標籤/搜索