url转码增加忽略!

This commit is contained in:
g1879 2021-02-04 11:30:28 +08:00
parent 0b7d55ff53
commit 1cab918598
2 changed files with 4 additions and 4 deletions

View File

@ -139,7 +139,7 @@ class DriverPage(object):
:param interval: 重试间隔
:return: 目标url是否可用
"""
to_url = quote(url, safe='/:&?=%;#@')
to_url = quote(url, safe='/:&?=%;#@+!')
retry = int(retry) if retry is not None else int(self.retry_times)
interval = int(interval) if interval is not None else int(self.retry_interval)

View File

@ -235,7 +235,7 @@ class SessionPage(object):
:param kwargs: 连接参数
:return: url是否可用
"""
to_url = quote(url, safe='/:&?=%;#@+')
to_url = quote(url, safe='/:&?=%;#@+!')
retry = int(retry) if retry is not None else int(self.retry_times)
interval = int(interval) if interval is not None else int(self.retry_interval)
@ -278,7 +278,7 @@ class SessionPage(object):
:param kwargs: 连接参数
:return: url是否可用
"""
to_url = quote(url, safe='/:&?=%;#@')
to_url = quote(url, safe='/:&?=%;#@+!')
retry = int(retry) if retry is not None else int(self.retry_times)
interval = int(interval) if interval is not None else int(self.retry_interval)
@ -499,7 +499,7 @@ class SessionPage(object):
if mode not in ('get', 'post'):
raise ValueError("Argument mode can only be 'get' or 'post'.")
url = quote(url, safe='/:&?=%;#@+')
url = quote(url, safe='/:&?=%;#@+!')
# 设置referer和host值
kwargs_set = set(x.lower() for x in kwargs)