- Python Web Scraping Cookbook
- Michael Heydt
- 77字
- 2021-06-30 18:44:12
Parsing a URL with urllib to get the filename
When downloading content from a URL, we often want to save it in a file. Often it is good enough to save the file in a file with a name found in the URL. But the URL consists of a number of fragments, so how can we find the actual filename from the URL, especially where there are often many parameters after the file name?
推薦閱讀
- OpenLayers Cookbook
- 物聯(lián)網(wǎng)概論(第2版)
- 面向物聯(lián)網(wǎng)的嵌入式系統(tǒng)開發(fā):基于CC2530和STM32微處理器
- 物聯(lián)網(wǎng)安全技術(shù)
- 企業(yè)網(wǎng)絡(luò)安全管理
- Getting Started with Grunt:The JavaScript Task Runner
- 夢(mèng)工廠之材質(zhì)N次方:Maya材質(zhì)手冊(cè)
- jQuery Mobile Web Development Essentials
- 異構(gòu)蜂窩網(wǎng)絡(luò)關(guān)鍵理論與技術(shù)
- 云工廠:開啟中國制造云時(shí)代
- 移動(dòng)互聯(lián)網(wǎng)環(huán)境下的核心網(wǎng)剖析及演進(jìn)
- 學(xué)術(shù)虛擬社區(qū)用戶社會(huì)化交互行為研究
- 智能家庭網(wǎng)絡(luò):技術(shù)、標(biāo)準(zhǔn)與應(yīng)用實(shí)踐
- 計(jì)算機(jī)網(wǎng)絡(luò)(項(xiàng)目教學(xué)版)
- TypeScript 3.0 Quick Start Guide