Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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 hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page