I am working on downloading a file from html page.
for example
html = 'www.abcd.com'
I parse the HTML page and find the links in that page.
Now I have the links from html page. But, the links are in following format :
i/ma/$File/ABCD.xls
but because of $File, I am not able to download the file.
what is the way to download such files with such internal links?
Thanks
您可以使用urlparse.urljoin()
从主机名和相对路径创建完整的URL。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.