Getting urlopen to time out?
Hi, I'm new to the community and am trying to learn a little Python and to write some simple scripts.
I'm using urllib.urlopen to fetch the contents of a Web page, but right now the function is waiting indefinitely for the page. How can I get the function (or another one like it) to timeout?
I'm using urllib.urlopen to fetch the contents of a Web page, but right now the function is waiting indefinitely for the page. How can I get the function (or another one like it) to timeout?
