Skip to content

Commit

Permalink
README Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Austin Taylor committed Jul 9, 2017
1 parent c5252ca commit 25aa324
Showing 1 changed file with 29 additions and 9 deletions.
38 changes: 29 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Domain Features
Alexa
-----
```python
from flare.utils.alexa import Alexa
from flare.tools.alexa import Alexa
alexa = Alexa(limit=1000000)

print alexa.domain_in_alexa('google.com') # Returns True
Expand All @@ -84,9 +84,9 @@ flare.tools.iputils
Data Science Features
---------------------
```python
from flare.utils.alexa import dga_classification
from flare.data_science.features import dga_classifier

dga_c = dga_classification()
dga_c = dga_classifier()

print dga_c.predict('facebook')
Legit
Expand All @@ -97,17 +97,37 @@ dga


```python
from flare.utils.alexa import data_features
ds_f = data_features()

print ds_f.entropy('akd93ka8a91a')
from flare.data_science.features import entropy
from flare.data_science.features import ip_matcher
from flare.data_science.features import domain_extract
from flare.data_science.features import levenshtein
from flare.data_science.features import domain_tld_extract

# Entropy example
print entropy('akd93ka8a91a')
2.58496250072

ds_f.ip_matcher('8.8.8.8')
# IP Matcher Example
print ip_matcher('8.8.8.8')
True

ds_f.ip_matcher('39.993.9.1')
print ip_matcher('39.993.9.1')
False

# Domain Extract Example
domain_extract('longsubdomain.huntoperator.com')
'huntoperator'

# Domain TLD Extract
domain_tld_extract('longsubdomain.huntoperator.com')
'huntoperator.com'

# Levenshtein example
a = ['google.com']
b = ['googl3.com']
print levenshtein(a, b)
'Difference of:' 1

```

and many more features for data extraction...

0 comments on commit 25aa324

Please sign in to comment.