--- a/README.rst Sun May 14 16:28:00 2017 +0300
+++ b/README.rst Thu Aug 24 15:52:15 2017 +0000
@@ -86,10 +86,30 @@
-Contact
-=======
+Problems?
+=========
+
+Pull requests are welcome!
+
+Thanks to the many who have sent patches for additional TLDs. If you want to add or fix a TLD it's quite straightforward.
+See example domains in `whois/parser.py <https://bitbucket.org/richardpenman/pywhois/src/tip/whois/parser.py?at=default&fileviewer=file-view-default>`_
+
+Basically each TLD has a similar format to the following:
+
+.. sourcecode:: python
-You can post ideas or patches here:
-https://bitbucket.org/richardpenman/pywhois/issues
+ class WhoisOrg(WhoisEntry):
+ """Whois parser for .org domains
+ """
+ regex = {
+ 'domain_name': 'Domain Name: *(.+)',
+ 'registrar': 'Registrar: *(.+)',
+ 'whois_server': 'Whois Server: *(.+)',
+ ...
+ }
-Thanks to the many who have sent patches for additional domains!
+ def __init__(self, domain, text):
+ if text.strip() == 'NOT FOUND':
+ raise PywhoisError(text)
+ else:
+ WhoisEntry.__init__(self, domain, text)
\ No newline at end of file