Skip to content

Commit bd50b99

Browse files
author
leeshuailing
committed
修复数据提取冲突问题
1 parent c886177 commit bd50b99

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

feapder/utils/tools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,8 @@ def fit_url(urls, identis):
508508

509509

510510
def get_param(url, key):
511-
match = re.search(f"{key}=([^&]+)", url)
511+
pattern = r"(?:[?&])" + re.escape(key) + r"=([^&]+)"
512+
match = re.search(pattern, url)
512513
if match:
513514
return match.group(1)
514515
return None

0 commit comments

Comments
 (0)