Skip to main content

Library to search domain names in text data

Project description

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 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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

find_domains-0.0.5.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file find_domains-0.0.5.tar.gz.

File metadata

  • Download URL: find_domains-0.0.5.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.3

File hashes

Hashes for find_domains-0.0.5.tar.gz
Algorithm Hash digest
SHA256 7afd8dfa7fee16603190d1ab38efca2314c5037d50523f65ed2764b4d435fcca
MD5 08d71906bb31d5ccc4dae16a5f4cb3de
BLAKE2b-256 c69de8eab0d477c6a2e813ef37b9d5d62cffc4b27d8197fa70d102241a77b1d0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page