📄 netdata.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>12. Internet Data Handling </title>
<META NAME="description" CONTENT="12. Internet Data Handling ">
<META NAME="keywords" CONTENT="lib">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="STYLESHEET" href="lib.css" tppabs="http://www.python.org/doc/current/lib/lib.css">
<LINK REL="next" href="markup.html" tppabs="http://www.python.org/doc/current/lib/markup.html">
<LINK REL="previous" href="internet.html" tppabs="http://www.python.org/doc/current/lib/internet.html">
<LINK REL="up" HREF="lib.html" tppabs="http://www.python.org/doc/current/lib/lib.html">
<LINK REL="next" href="module-formatter.html" tppabs="http://www.python.org/doc/current/lib/module-formatter.html">
</head>
<body>
<DIV CLASS="navigation"><table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A href="asyncore-example.html" tppabs="http://www.python.org/doc/current/lib/asyncore-example.html"><img src="previous.gif" tppabs="http://www.python.org/doc/current/icons/previous.gif" border="0" height="32"
alt="Previous Page" width="32"></A></td>
<td><A HREF="lib.html" tppabs="http://www.python.org/doc/current/lib/lib.html"><img src="up.gif" tppabs="http://www.python.org/doc/current/icons/up.gif" border="0" height="32"
alt="Up One Level" width="32"></A></td>
<td><A href="module-formatter.html" tppabs="http://www.python.org/doc/current/lib/module-formatter.html"><img src="next.gif" tppabs="http://www.python.org/doc/current/icons/next.gif" border="0" height="32"
alt="Next Page" width="32"></A></td>
<td align="center" width="100%">Python Library Reference</td>
<td><A href="contents.html" tppabs="http://www.python.org/doc/current/lib/contents.html"><img src="contents.gif" tppabs="http://www.python.org/doc/current/icons/contents.gif" border="0" height="32"
alt="Contents" width="32"></A></td>
<td><a href="modindex.html" tppabs="http://www.python.org/doc/current/lib/modindex.html" title="Module Index"><img src="modules.gif" tppabs="http://www.python.org/doc/current/icons/modules.gif" border="0" height="32"
alt="Module Index" width="32"></a></td>
<td><A href="genindex.html" tppabs="http://www.python.org/doc/current/lib/genindex.html"><img src="index.gif" tppabs="http://www.python.org/doc/current/icons/index.gif" border="0" height="32"
alt="Index" width="32"></A></td>
</tr></table>
<b class="navlabel">Previous:</b> <a class="sectref" href="asyncore-example.html" tppabs="http://www.python.org/doc/current/lib/asyncore-example.html">11.18.1 Example basic HTTP</A>
<b class="navlabel">Up:</b> <a class="sectref" HREF="lib.html" tppabs="http://www.python.org/doc/current/lib/lib.html">Python Library Reference</A>
<b class="navlabel">Next:</b> <a class="sectref" href="module-formatter.html" tppabs="http://www.python.org/doc/current/lib/module-formatter.html">12.1 formatter </A>
<br><hr></DIV>
<!--End of Navigation Panel-->
<H1>
<BR>
12. Internet Data Handling
</H1>
<P>
This chapter describes modules which support handling data formats
commonly used on the internet. Some, like SGML and XML, may be useful
for other applications as well.
<P>
<table class='synopsistable'>
<tr><td><b><tt class='module'><a href="module-formatter.html" tppabs="http://www.python.org/doc/current/lib/module-formatter.html">formatter</a></tt></b></td>
<td class='synopsis'>Generic output formatter and device interface.</td></tr>
<tr><td><b><tt class='module'><a href="module-rfc822.html" tppabs="http://www.python.org/doc/current/lib/module-rfc822.html">rfc822</a></tt></b></td>
<td class='synopsis'>Parse <a class="rfc" name="rfcref-47389"
href="javascript:if(confirm('http://www.ietf.org/rfc/rfc0822.txt \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address. \n\nDo you want to open it from the server?'))window.location='http://www.ietf.org/rfc/rfc0822.txt'" tppabs="http://www.ietf.org/rfc/rfc0822.txt">RFC 822 <img src="offsite.gif" tppabs="http://www.python.org/doc/current/icons/offsite.gif"
border='0' class='offsitelink' height='15' width='17' alt='[off-site link]'
></a> style mail headers.</td></tr>
<tr><td><b><tt class='module'><a href="module-mimetools.html" tppabs="http://www.python.org/doc/current/lib/module-mimetools.html">mimetools</a></tt></b></td>
<td class='synopsis'>Tools for parsing MIME-style message bodies.</td></tr>
<tr><td><b><tt class='module'><a href="module-MimeWriter.html" tppabs="http://www.python.org/doc/current/lib/module-MimeWriter.html">MimeWriter</a></tt></b></td>
<td class='synopsis'>Generic MIME file writer.</td></tr>
<tr><td><b><tt class='module'><a href="module-multifile.html" tppabs="http://www.python.org/doc/current/lib/module-multifile.html">multifile</a></tt></b></td>
<td class='synopsis'>Support for reading files which contain distinct
parts, such as some MIME data.</td></tr>
<tr><td><b><tt class='module'><a href="module-binhex.html" tppabs="http://www.python.org/doc/current/lib/module-binhex.html">binhex</a></tt></b></td>
<td class='synopsis'>Encode and decode files in binhex4 format.</td></tr>
<tr><td><b><tt class='module'><a href="module-uu.html" tppabs="http://www.python.org/doc/current/lib/module-uu.html">uu</a></tt></b></td>
<td class='synopsis'>Encode and decode files in uuencode format.</td></tr>
<tr><td><b><tt class='module'><a href="module-binascii.html" tppabs="http://www.python.org/doc/current/lib/module-binascii.html">binascii</a></tt></b></td>
<td class='synopsis'>Tools for converting between binary and various
ASCII<#29091#><#29091#>-encoded binary representations.</td></tr>
<tr><td><b><tt class='module'><a href="module-xdrlib.html" tppabs="http://www.python.org/doc/current/lib/module-xdrlib.html">xdrlib</a></tt></b></td>
<td class='synopsis'>Encoders and decoders for the External Data
Representation (XDR).</td></tr>
<tr><td><b><tt class='module'><a href="module-mailcap.html" tppabs="http://www.python.org/doc/current/lib/module-mailcap.html">mailcap</a></tt></b></td>
<td class='synopsis'>Mailcap file handling.</td></tr>
<tr><td><b><tt class='module'><a href="module-mimetypes.html" tppabs="http://www.python.org/doc/current/lib/module-mimetypes.html">mimetypes</a></tt></b></td>
<td class='synopsis'>Mapping of filename extensions to MIME types.</td></tr>
<tr><td><b><tt class='module'><a href="module-base64.html" tppabs="http://www.python.org/doc/current/lib/module-base64.html">base64</a></tt></b></td>
<td class='synopsis'>Encode and decode files using the MIME base64 data.</td></tr>
<tr><td><b><tt class='module'><a href="module-quopri.html" tppabs="http://www.python.org/doc/current/lib/module-quopri.html">quopri</a></tt></b></td>
<td class='synopsis'>Encode and decode files using the MIME
quoted-printable encoding.</td></tr>
<tr><td><b><tt class='module'><a href="module-mailbox.html" tppabs="http://www.python.org/doc/current/lib/module-mailbox.html">mailbox</a></tt></b></td>
<td class='synopsis'>Read various mailbox formats.</td></tr>
<tr><td><b><tt class='module'><a href="module-mhlib.html" tppabs="http://www.python.org/doc/current/lib/module-mhlib.html">mhlib</a></tt></b></td>
<td class='synopsis'>Manipulate MH mailboxes from Python.</td></tr>
<tr><td><b><tt class='module'><a href="module-mimify.html" tppabs="http://www.python.org/doc/current/lib/module-mimify.html">mimify</a></tt></b></td>
<td class='synopsis'>Mimification and unmimification of mail messages.</td></tr>
<tr><td><b><tt class='module'><a href="module-netrc.html" tppabs="http://www.python.org/doc/current/lib/module-netrc.html">netrc</a></tt></b></td>
<td class='synopsis'>Loading of <span class="file">.netrc</span> files.</td></tr>
<tr><td><b><tt class='module'><a href="module-robotparser.html" tppabs="http://www.python.org/doc/current/lib/module-robotparser.html">robotparser</a></tt></b></td>
<td class='synopsis'>Accepts as input a list of lines or URL that refers to a
robots.txt file, parses the file, then builds a
set of rules from that list and answers questions
about fetchability of other URLs.</td></tr>
</table>
<BR>
<DIV CLASS="navigation"><p><hr><table align="center" width="100%" cellpadding="0" cellspacing="2">
<tr>
<td><A href="asyncore-example.html" tppabs="http://www.python.org/doc/current/lib/asyncore-example.html"><img src="previous.gif" tppabs="http://www.python.org/doc/current/icons/previous.gif" border="0" height="32"
alt="Previous Page" width="32"></A></td>
<td><A HREF="lib.html" tppabs="http://www.python.org/doc/current/lib/lib.html"><img src="up.gif" tppabs="http://www.python.org/doc/current/icons/up.gif" border="0" height="32"
alt="Up One Level" width="32"></A></td>
<td><A href="module-formatter.html" tppabs="http://www.python.org/doc/current/lib/module-formatter.html"><img src="next.gif" tppabs="http://www.python.org/doc/current/icons/next.gif" border="0" height="32"
alt="Next Page" width="32"></A></td>
<td align="center" width="100%">Python Library Reference</td>
<td><A href="contents.html" tppabs="http://www.python.org/doc/current/lib/contents.html"><img src="contents.gif" tppabs="http://www.python.org/doc/current/icons/contents.gif" border="0" height="32"
alt="Contents" width="32"></A></td>
<td><a href="modindex.html" tppabs="http://www.python.org/doc/current/lib/modindex.html" title="Module Index"><img src="modules.gif" tppabs="http://www.python.org/doc/current/icons/modules.gif" border="0" height="32"
alt="Module Index" width="32"></a></td>
<td><A href="genindex.html" tppabs="http://www.python.org/doc/current/lib/genindex.html"><img src="index.gif" tppabs="http://www.python.org/doc/current/icons/index.gif" border="0" height="32"
alt="Index" width="32"></A></td>
</tr></table>
<b class="navlabel">Previous:</b> <a class="sectref" href="asyncore-example.html" tppabs="http://www.python.org/doc/current/lib/asyncore-example.html">11.18.1 Example basic HTTP</A>
<b class="navlabel">Up:</b> <a class="sectref" HREF="lib.html" tppabs="http://www.python.org/doc/current/lib/lib.html">Python Library Reference</A>
<b class="navlabel">Next:</b> <a class="sectref" href="module-formatter.html" tppabs="http://www.python.org/doc/current/lib/module-formatter.html">12.1 formatter </A>
</DIV>
<!--End of Navigation Panel-->
<ADDRESS>
<hr>See <i><a href="about.html" tppabs="http://www.python.org/doc/current/lib/about.html">About this document...</a></i> for information on suggesting changes.
</ADDRESS>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -