<commit_before># Pydnsbl

Async [dnsbl](https://en.wikipedia.org/wiki/DNSBL) lists checker based
on asyncio/aiodns. Checks if ip is listed in anti-spam dns blacklists.
Multiple dns blacklists supported. Use aiodns for async dns requests.
Usually ip check run for 50+ lists takes less than one second. Also allow to check domains.

## Installation

`pip intall pydnsbl`

## Requirements

- python >= 3.5
- aiodns

## Usage
### Check ip
```
>>> import pydnsbl
>>> ip_checker = pydnsbl.DNSBLIpChecker()
>>> ip_checker.check('8.8.8.8')
<DNSBLResult: 8.8.8.8  (0/52)>
>>> ip_checker.check('172.16.17.32')
<DNSBLResult: 172.16.17.32 [BLACKLISTED] (6/52)>
```
### Check domain
```
>>> import pydnsbl
>>> domain_checker = pydnsbl.DNSBLDomainChecker()
>>> domain_checker.check('google.com')
<DNSBLResult: google.com  (0/4)>
>>> domain_checker.check('belonging708-info.xyz')
<DNSBLResult: belonging708-info.xyz [BLACKLISTED] (2/4)>
```
<commit_msg>Missing 's' in install<commit_after># Pydnsbl

Async [dnsbl](https://en.wikipedia.org/wiki/DNSBL) lists checker based
on asyncio/aiodns. Checks if ip is listed in anti-spam dns blacklists.
Multiple dns blacklists supported. Use aiodns for async dns requests.
Usually ip check run for 50+ lists takes less than one second. Also allow to check domains.

## Installation

`pip install pydnsbl`

## Requirements

- python >= 3.5
- aiodns

## Usage
### Check ip
```
>>> import pydnsbl
>>> ip_checker = pydnsbl.DNSBLIpChecker()
>>> ip_checker.check('8.8.8.8')
<DNSBLResult: 8.8.8.8  (0/52)>
>>> ip_checker.check('172.16.17.32')
<DNSBLResult: 172.16.17.32 [BLACKLISTED] (6/52)>
```
### Check domain
```
>>> import pydnsbl
>>> domain_checker = pydnsbl.DNSBLDomainChecker()
>>> domain_checker.check('google.com')
<DNSBLResult: google.com  (0/4)>
>>> domain_checker.check('belonging708-info.xyz')
<DNSBLResult: belonging708-info.xyz [BLACKLISTED] (2/4)>
```

{'fraction_non_alphanumeric': 0.1633085896076352, 'fraction_numerical': 0.04878048780487805, 'mean_word_length': 4.8602484472049685, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 61, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 8, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2385015', 'n_tokens_mistral': 785, 'n_tokens_neox': 724, 'n_words': 171}