domain_parser-0.0.5
توضیحات
Proper domain parser using TLD info from publicsuffix.org
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | domain_parser-0.0.5 |
| نام | domain_parser |
| نسخه کتابخانه | 0.0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jeff Knupp |
| ایمیل نویسنده | jeff@jeffknupp.com |
| آدرس صفحه اصلی | http://github.com/jeffknupp/domain-parser/ |
| آدرس اینترنتی | https://pypi.org/project/domain_parser/ |
| مجوز | Apache Software License |
Python domain-parser
====================
Parse domains using the TLD list maintained by publicsuffix.org.
Domains are parsed into their TLD, SLD, and subdomains. TLDs like
'co.uk' are handled properly. The list of possible TLDs is generated
from publicsuffix.org. The first time the library is run, an HTTP
request is made and a ``.tld.pickle`` file is created. Subsequent runs
don't make an HTTP request. Rather, they load the pickle file. If you
want to refresh the list, simply delete the pickle file.
TODO
----
There are tests, but not enough. I'm hoping that if people find this
useful they'll contribute test cases to the projects.
New in version 0.0.4
====================
- Use ``pylru`` and TLD\_CACHE to speed up parsing in long-running
programs
نحوه نصب
نصب پکیج whl domain_parser-0.0.5:
pip install domain_parser-0.0.5.whl
نصب پکیج tar.gz domain_parser-0.0.5:
pip install domain_parser-0.0.5.tar.gz