Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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.

Files for ExtractLevelDomain, version 2.6.3
Filename, size File type Python version Upload date Hashes
Filename, size ExtractLevelDomain-2.6.3.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

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