Search for words, documents, images, videos, news, maps and text translation using the DuckDuckGo.com search engine. Downloading files and images to a local hard drive.
1) add core exceptions,
2) remove retries in _get_url(),
3) raise ApiException if resp.status_code==403,
4) raise RateLimitException if resp.status_code==202,
5) sleep(0.75) between API requests if proxies is None,
6) sort imports, lint and format .py files with Ruff,
7) pytest: sleep(1) between tests,
9) add "Accept-Encoding" to HEADERS,
1) add core exceptions, 2) remove retries in _get_url(), 3) raise ApiException if resp.status_code==403, 4) raise RateLimitException if resp.status_code==202, 5) sleep(0.75) between API requests if proxies is None, 6) sort imports, lint and format .py files with Ruff, 7) pytest: sleep(1) between tests, 9) add "Accept-Encoding" to HEADERS,