Python 爬蟲 ——爬取Web頁面圖片

從網頁頁面上批量下載jpg格式圖片,並按照數字遞增命名保存到指定的文件夾。 Web地址:http://p.weather.com.cn/2017/06/2720826.shtml#p=1 import urllib #請求Http import urllib.request import re #正則匹配的庫 #解析頁面 def load_page(url) : #打開網頁 re
相關文章
相關標籤/搜索