Skip to main content

pass url to extract domain

Project description

# ExtractLevelDomain
通过URL抽取各层各级的域名(一级域名,二级域名....) . 这模块本来是用来分析日志及数据分析的.

# Install Document:

pypi install
pip install ExtractLevelDomain

source install
git clone
cd ExtractLevelDomain
python install

# Usage Document:

import ExtractLevelDomain
filter = ExtractLevelDomain.ExtractLevelDomain()

print filter.parse_url('')

#parse_url_level可以控制level级,可接收的参数两种参数 1 2 3 或"*"
print filter.parse_url_level('',level=2)


print filter.parse_url_level('',level=1)

print filter.level

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

ExtractLevelDomain-2.6.3.tar.gz (2.5 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page