added RFC3490 feature documentation

master
Christian Koepp 10 years ago
parent a86d44dfdc
commit 4eee3b2d14

@ -22,20 +22,44 @@
margin-bottom: 32px;
}
.example
.example , .section
{
padding: 5px 6px;
font-weight: bold;
margin-top: 11px;
}
.example
{
font-size: 15px;
background-color: #E6E6E6;
margin-top: 11px;
}
.section
{
background-color: #E8E8E8;
}
.section > .title
{
font-size: 16px;
}
.example > .children
.example > .children, .section > .children
{
padding-top: 11px;
padding-left: 10px;
}
.section > .children
{
font-size: 95%;
}
.section > .children > div.text:first-child, .section > .children > dl:first-child
{
margin-top: 0px;
}
.example > .children > h7
{

@ -22,20 +22,44 @@
margin-bottom: 32px;
}
.example
.example , .section
{
padding: 5px 6px;
font-weight: bold;
margin-top: 11px;
}
.example
{
font-size: 15px;
background-color: #E6E6E6;
margin-top: 11px;
}
.section
{
background-color: #E8E8E8;
}
.section > .title
{
font-size: 16px;
}
.example > .children
.example > .children, .section > .children
{
padding-top: 11px;
padding-left: 10px;
}
.section > .children
{
font-size: 95%;
}
.section > .children > div.text:first-child, .section > .children > dl:first-child
{
margin-top: 0px;
}
.example > .children > h7
{

@ -22,20 +22,44 @@
margin-bottom: 32px;
}
.example
.example , .section
{
padding: 5px 6px;
font-weight: bold;
margin-top: 11px;
}
.example
{
font-size: 15px;
background-color: #E6E6E6;
margin-top: 11px;
}
.section
{
background-color: #E8E8E8;
}
.section > .title
{
font-size: 16px;
}
.example > .children
.example > .children, .section > .children
{
padding-top: 11px;
padding-left: 10px;
}
.section > .children
{
font-size: 95%;
}
.section > .children > div.text:first-child, .section > .children > dl:first-child
{
margin-top: 0px;
}
.example > .children > h7
{
@ -156,6 +180,6 @@
</style>
</head>
<body>
<div class="children"><h1>Installing pythonwhois</h1><div class="text"><a href="index.html"><< back to index</a></div><div class="text">To install pythonwhois, you need to have <span class="fixed">pip</span> installed. It's available on most distributions in a package named <span class="fixed">python-pip</span>.</div><div class="text">The pythonwhois package includes the <span class="fixed">pwhois</span> tool.</div><h2>Installing it from scratch</h2><h7>Code:</h7><pre class="code">pip install pythonwhois</pre><h2>Updating from a previous version</h2><div class="text">Make sure to read the <a href="upgrade.html">upgrade notes</a> before updating to a new major pythonwhois version!</div><h7>Code:</h7><pre class="code">pip install --upgrade pythonwhois</pre></div>
<div class="children"><h1>Installing pythonwhois</h1><div class="text"><a href="index.html"><< back to index</a></div><div class="text">To install pythonwhois, you need to have <span class="fixed">pip</span> installed. It's available on most distributions in a package named <span class="fixed">python-pip</span>.</div><div class="text">The pythonwhois package includes the <span class="fixed">pwhois</span> tool.</div><h2>Installing it from scratch</h2><h7>Code:</h7><pre class="code">pip install pythonwhois</pre><div class="text">If you are using Python 2.6 and get an ImportError about <span class="fixed">OrderedDict</span>, also do the following:</div><h7>Code:</h7><pre class="code">pip install ordereddict</pre><h2>Updating from a previous version</h2><div class="text">Make sure to read the <a href="upgrade.html">upgrade notes</a> before updating to a new major pythonwhois version!</div><h7>Code:</h7><pre class="code">pip install --upgrade pythonwhois</pre></div>
</body>
</html>

@ -22,20 +22,44 @@
margin-bottom: 32px;
}
.example
.example , .section
{
padding: 5px 6px;
font-weight: bold;
margin-top: 11px;
}
.example
{
font-size: 15px;
background-color: #E6E6E6;
margin-top: 11px;
}
.section
{
background-color: #E8E8E8;
}
.section > .title
{
font-size: 16px;
}
.example > .children
.example > .children, .section > .children
{
padding-top: 11px;
padding-left: 10px;
}
.section > .children
{
font-size: 95%;
}
.section > .children > div.text:first-child, .section > .children > dl:first-child
{
margin-top: 0px;
}
.example > .children > h7
{

@ -22,20 +22,44 @@
margin-bottom: 32px;
}
.example
.example , .section
{
padding: 5px 6px;
font-weight: bold;
margin-top: 11px;
}
.example
{
font-size: 15px;
background-color: #E6E6E6;
margin-top: 11px;
}
.section
{
background-color: #E8E8E8;
}
.section > .title
{
font-size: 16px;
}
.example > .children
.example > .children, .section > .children
{
padding-top: 11px;
padding-left: 10px;
}
.section > .children
{
font-size: 95%;
}
.section > .children > div.text:first-child, .section > .children > dl:first-child
{
margin-top: 0px;
}
.example > .children > h7
{

File diff suppressed because one or more lines are too long

@ -160,7 +160,7 @@ To start using pythonwhois, use `import pythonwhois`.
## When you need more control...
^ pythonwhois.net.get_whois_raw(**domain**[, **server=""**])
^ pythonwhois.net.get_whois_raw(**domain**[, **server=""**, **rfc3490=True**])
Retrieves the raw WHOIS data for the specified domain, and returns it as a list of responses (one element for each WHOIS server queried). This method will keep following redirects, until it ends up at the right server (and all responses it picks up in the meantime, will be included). Raises `pythonwhois.shared.WhoisException` if no root server for the TLD could be found.
@ -170,6 +170,10 @@ To start using pythonwhois, use `import pythonwhois`.
server::
**Optional.** The WHOIS server to query. When not specified, it will default to the appropriate WHOIS server for the TLD.
rfc3490::
**Optional.** If set to `True` a given domain will be encoded through the **toASCII** method as documented in RFC3490 before its submission to the whois service. If the domain isn't given in unicode, the method will handle the decoding by itself.
^ pythonwhois.net.get_root_server(**domain**)
Looks up the appropriate root server for a TLD, and returns it as a string. Raises `pythonwhois.shared.WhoisException` if no root server for the TLD could be found.

Loading…
Cancel
Save