“I like the night. Without the dark, we’d never see the stars.” ― Stephenie Meyer, Twilight
Python provides the well-regarded urllib2 module for opening URLs. Let us investigate some of the capabilities of this module, shall we? Note that most use cases are better served by using the higher level Requests module. However, you should know about the available options.