find-domains-0.0.6
توضیحات
Library to search domain names in text data
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | find-domains-0.0.6 |
| نام | find-domains |
| نسخه کتابخانه | 0.0.6 |
| نگهدارنده | ['Gregory Petukhov'] |
| ایمیل نگهدارنده | ['lorien@lorien.name'] |
| نویسنده | Gregory Petukhov |
| ایمیل نویسنده | lorien@lorien.name |
| آدرس صفحه اصلی | https://github.com/lorien/find_domains |
| آدرس اینترنتی | https://pypi.org/project/find-domains/ |
| مجوز | MIT |
## find_domains Documentation
This library is for searching domain names in raw text data. First it searches domain-like strings
using simple regexp. Then it uses list of top level domain names to remove names which could be a
domain name i.e. last segment is not top level domain name. TLD list is provided by
[tldextract](https://github.com/john-kurkowski/tldextract) library, technicall that means that
when you will use `find_domains` in first time it will download top level domains list (this is
tldextract behaviour).
## Installation
`pip install -U find_domains`
## Usage
```
from find_domains import find_domains
data = """
foo bar google.com foo.bar.com domain.info
превед-медвед.рф
"""
for domain in find_domains(data):
print(domain)
```
نحوه نصب
نصب پکیج whl find-domains-0.0.6:
pip install find-domains-0.0.6.whl
نصب پکیج tar.gz find-domains-0.0.6:
pip install find-domains-0.0.6.tar.gz