Skip to content

Commit e620f26

Browse files
authored
Merge pull request #251 from s0ing/master
修复数据提取冲突问题
2 parents f56b369 + bd50b99 commit e620f26

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)