⭐ 下载文件
DrissionPage 带一个简便易用的下载器,一行即可实现下载功能。
from DrissionPage import SessionPage
url = 'https://www.baidu.com/img/flexible/logo/pc/result.png'
save_path = r'C:\download'
page = SessionPage()
page.download(url, save_path)
DrissionPage 带一个简便易用的下载器,一行即可实现下载功能。
from DrissionPage import SessionPage
url = 'https://www.baidu.com/img/flexible/logo/pc/result.png'
save_path = r'C:\download'
page = SessionPage()
page.download(url, save_path)