Skip to content

Commit 12827ab

Browse files
committed
replace requests with httpx, bump version to 1.5.2, add Python 3.14 support
1 parent 880e76b commit 12827ab

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

dnsrecon/cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
import dns.reversename
4141
import dns.zone
4242
import netaddr
43-
import requests
43+
import httpx
4444
from dns.dnssec import algorithm_to_text
4545
from loguru import logger
4646

@@ -50,7 +50,7 @@
5050
from dnsrecon.lib.whois import *
5151
from dnsrecon.lib.yandexenum import *
5252

53-
__version__ = '1.5.1'
53+
__version__ = '1.5.2'
5454
__author__ = 'Carlos Perez, Carlos_Perez@darkoperator.com'
5555
__name__ = 'cli'
5656

@@ -250,8 +250,8 @@ def brute_tlds(res, domain, verbose=False, thread_num=None):
250250

251251
total_tlds = []
252252
try:
253-
tlds_list = requests.get(
254-
'https://raw.githubusercontent.com/publicsuffix/list/master/public_suffix_list.dat', timeout=30
253+
tlds_list = httpx.get(
254+
'https://raw.githubusercontent.com/publicsuffix/list/master/public_suffix_list.dat', timeout=30.0
255255
).text
256256
except Exception as e:
257257
tlds_list = ''

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ classifiers = [
99
"Programming Language :: Python :: 3",
1010
"Programming Language :: Python :: 3.12",
1111
"Programming Language :: Python :: 3.13",
12+
"Programming Language :: Python :: 3.14",
1213
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
1314
"Operating System :: OS Independent",
1415
]
@@ -17,7 +18,6 @@ dependencies = [
1718
"dnspython>=2.8.0",
1819
"netaddr",
1920
"lxml",
20-
"requests",
2121
"httpx==0.28.1",
2222
"loguru",
2323
"fastapi==0.123.9",

0 commit comments

Comments
 (0)