urllib — URL handling modules

urllib is a package that collects several modules for working with URLs:
  •urllib.request     for opening and reading URLs
  •urllib.error       containing the exceptions raised by urllib.request
  •urllib.parse       for parsing URLs
  •urllib.robotparser for parsing robots.txt files

猜你喜欢

转载自www.cnblogs.com/larken/p/10586141.html