mirror of
https://github.com/adulau/DomainClassifier.git
synced 2024-12-04 15:57:13 +00:00
chg: [doc] updated
This commit is contained in:
parent
f933e531cb
commit
433c33898b
1 changed files with 17 additions and 17 deletions
34
README.md
34
README.md
|
@ -34,32 +34,32 @@ tp://www.cert.be/ www.public.lu www.allo.lu quuxtest www.eurodns.com something-b
|
||||||
8 201.1.1.1")
|
8 201.1.1.1")
|
||||||
|
|
||||||
# extracting potentially valid domains from rawtext
|
# extracting potentially valid domains from rawtext
|
||||||
print c.potentialdomain()
|
print(c.potentialdomain())
|
||||||
|
|
||||||
# reduce set of potentially valid domains to existing domains
|
# reduce set of potentially valid domains to existing domains
|
||||||
# (based on SOA,A,AAAA,CNAME,MX records)
|
# (based on SOA,A,AAAA,CNAME,MX records)
|
||||||
print c.validdomain(extended=True)
|
print(c.validdomain(extended=True))
|
||||||
|
|
||||||
# reduce set of valid domains with DNS records associated to a
|
# reduce set of valid domains with DNS records associated to a
|
||||||
# specified country
|
# specified country
|
||||||
print "US:"
|
print("US:")
|
||||||
print c.localizedomain(cc='US')
|
print(c.localizedomain(cc='US'))
|
||||||
print "LU:"
|
print("LU:")
|
||||||
print c.localizedomain(cc='LU')
|
print(c.localizedomain(cc='LU'))
|
||||||
print "BE:"
|
print("BE:")
|
||||||
print c.localizedomain(cc='BE')
|
print(c.localizedomain(cc='BE'))
|
||||||
print "Ranking:"
|
print("Ranking:")
|
||||||
print c.rankdomain()
|
print(c.rankdomain())
|
||||||
|
|
||||||
# extract valid IPv4 addresses (using the potential list of valid domains)
|
# extract valid IPv4 addresses (using the potential list of valid domains)
|
||||||
print "List of ip addresses:"
|
print("List of ip addresses:")
|
||||||
print c.ipaddress(extended=True)
|
print(c.ipaddress(extended=True))
|
||||||
|
|
||||||
# some more filtering
|
# some more filtering
|
||||||
print "Include dot.lu:"
|
print("Include dot.lu:")
|
||||||
print c.include(expression=r'\.lu$')
|
print(c.include(expression=r'\.lu$'))
|
||||||
print "Exclude dot.lu:"
|
print("Exclude dot.lu:")
|
||||||
print c.exclude(expression=r'\.lu$')
|
print(c.exclude(expression=r'\.lu$'))
|
||||||
```
|
```
|
||||||
|
|
||||||
### Sample output
|
### Sample output
|
||||||
|
@ -100,7 +100,7 @@ Exclude dot.lu:
|
||||||
### License
|
### License
|
||||||
|
|
||||||
~~~~
|
~~~~
|
||||||
Copyright (C) 2012-2021 Alexandre Dulaunoy - a(at)foo.be
|
Copyright (C) 2012-2023 Alexandre Dulaunoy - a(at)foo.be
|
||||||
Copyright (C) 2021 Aurelien Thirion
|
Copyright (C) 2021 Aurelien Thirion
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
|
Loading…
Reference in a new issue