fix: should not check paper url

gov.cn change url frequently
This commit is contained in:
NateScarlet 2023-10-25 11:10:37 +08:00
parent 00f45649fa
commit 74303b42dd
No known key found for this signature in database
GPG Key ID: FB24AAE55529F29F

View File

@ -138,11 +138,6 @@ def get_paper(url: str) -> str:
str: Extracted paper text.
"""
assert re.match(
r"https?://www.gov.cn/zhengce/(zhengceku|content)/\d{4}-\d{2}/\d{2}/content_\d+.htm",
url,
), "site changed, need human verify: %s" % (url,)
response = requests.get(url)
_raise_for_status_200(response)
response.encoding = "utf-8"