Skip to content

Commit

Permalink
MOD:去掉warning,变成raw字符串
Browse files Browse the repository at this point in the history
  • Loading branch information
ShilongLee committed Jun 16, 2024
1 parent 499493e commit 8fb88cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/douyin/logic/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def get_webid(headers: dict):
if response.status_code != 200 or response.text == '':
logger.error(f'failed get webid, url: {url}, header: {headers}')
return None
pattern = '\\\\"user_unique_id\\\\":\\\\"(\d+)\\\\"'
pattern = r'\\"user_unique_id\\":\\"(\d+)\\"'
match = re.search(pattern, response.text)
if match:
return match.group(1)
Expand Down

0 comments on commit 8fb88cf

Please sign in to comment.