mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-12 12:25:19 +08:00
url转码增加忽略!
This commit is contained in:
parent
0b7d55ff53
commit
1cab918598
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user