Skip to content

Commit

Permalink
Update default for domain_data
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycrosley committed Aug 8, 2017
1 parent b56fcc8 commit 780dfa8
Show file tree
Hide file tree
Showing 9 changed files with 12,703 additions and 1 deletion.
2 changes: 1 addition & 1 deletion domaintools/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def domain_profile(self, query, **kwargs):
"""Returns a profile for the specified domain name"""
return self._results('domain-profile', '/v1/{0}'.format(query))

def domain_search(self, query, exclude_query=[], max_length=25, min_length=1, has_hyphen=True, has_number=True,
def domain_search(self, query, exclude_query=[], max_length=25, min_length=2, has_hyphen=True, has_number=True,
active_only=False, deleted_only=False, anchor_left=False, anchor_right=False, page=1, **kwargs):
"""Each term in the query string must be at least three characters long.
Pass in a list or use spaces to separate multiple terms.
Expand Down
22 changes: 22 additions & 0 deletions tests/fixtures/vcr/test_async_context_manager.yaml

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions tests/fixtures/vcr/test_async_iteration.yaml

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions tests/fixtures/vcr/test_async_simple_await.yaml

Large diffs are not rendered by default.

273 changes: 273 additions & 0 deletions tests/fixtures/vcr/test_domain_search.yaml

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions tests/fixtures/vcr/test_exception_handling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,25 @@ interactions:
date: ['Mon, 17 Oct 2016 22:26:50 GMT']
vary: [Accept-Encoding]
status: {code: 403, message: Forbidden}
- request:
body: null
headers:
Accept: ['*/*']
Accept-Encoding: ['gzip, deflate']
Connection: [keep-alive]
User-Agent: [python-requests/2.11.1]
method: GET
uri: https://api.domaintools.com/v2/domain-search?active_only=false&anchor_left=false&anchor_right=false&deleted_only=false&has_hyphen=true&has_number=true&max_length=25&min_length=2&page=1&query=amazon
response:
body:
string: !!binary |
H4sIAAAAAAAAAyyNwQrDMAxDf8X4XJrBdsp37JhLcMxaaOJiOyuj9N+XwU6SHkI6kVVFMZ5IUhjj
43afsLJZfo2Ez4WBlAs3X/Nm8JEOw/NAUASaONTstEBukMnXNw8h6c1nvCZUNulKbL8D6/su6mN1
cd9jCikcxzEXqXltLrLZTFJT+PdSwOv6AgAA//8DADIMD8WgAAAA
headers:
content-encoding: [gzip]
content-type: [application/json;charset=utf-8]
date: ['Tue, 08 Aug 2017 18:35:01 GMT']
vary: [Accept-Encoding]
status: {code: 403, message: Forbidden}
version: 1
2,371 changes: 2,371 additions & 0 deletions tests/fixtures/vcr/test_formats.yaml

Large diffs are not rendered by default.

1,379 changes: 1,379 additions & 0 deletions tests/fixtures/vcr/test_no_https.yaml

Large diffs are not rendered by default.

8,592 changes: 8,592 additions & 0 deletions tests/fixtures/vcr/test_rate_limiting.yaml

Large diffs are not rendered by default.

0 comments on commit 780dfa8

Please sign in to comment.