【发布时间】:2021-10-01 01:21:16
【问题描述】:
原网址▶https://www.exeam.org/index.html
我想从原始 URL 中提取 exeam.org/ 或 exeam.org。
为此,我使用了我所知道的 Python 中最强大的解析器 urllib,
但不幸的是 urllib (url.scheme, url.netloc ...) 无法提供我想要的格式类型。
【问题讨论】:
-
'.'.join(urlparse('https://www.exeam.org/index.html').netloc.split('.')[1:])stackoverflow.com/questions/44113335/… -
not only the original URL of the Inquiry but also the majority是什么意思?很抱歉不明白。