What Is Python Module 'urllib'

Q

What Is Python module "urllib"?

✍: FYIcenter.com

A

"urllib" is a Python internal module that allows you to communicate with Internet resources that are represented by URLs. Two main Internet protocols are supported: HTTP and FTP.

The current version of "urllib" module is divided into 4 sub-modules:

  • 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

For more information, see urllib — URL handling modules.

 

Sending an HTTP Request with 'urllib.request'

'urllib' Module - Internet Communication

'urllib' Module - Internet Communication

⇑⇑ Python Tutorials

2018-09-24, 1623🔥, 0💬