|
|
|
@ -148,7 +148,7 @@ Internet Access |
|
|
|
|
|
|
|
There are a number of modules for accessing the internet and processing internet |
|
|
|
protocols. Two of the simplest are :mod:`urllib.request` for retrieving data |
|
|
|
from urls and :mod:`smtplib` for sending mail:: |
|
|
|
from URLs and :mod:`smtplib` for sending mail:: |
|
|
|
|
|
|
|
>>> from urllib.request import urlopen |
|
|
|
>>> for line in urlopen('http://tycho.usno.navy.mil/cgi-bin/timer.pl'): |
|
|
|
|