urllib是一个用来处理URL包含多个模块的包:
-
urllib.requestfor opening and reading URLs -
urllib.errorcontaining the exceptions raised byurllib.request -
urllib.parsefor parsing URLs -
urllib.robotparserfor parsingrobots.txtfiles
urllib是一个用来处理URL包含多个模块的包:
urllib.request for opening and reading URLsurllib.error containing the exceptions raised by urllib.request
urllib.parse for parsing URLsurllib.robotparser for parsing robots.txt files