使用随机/特殊 UA (#526)

*  添加依赖 fake-useragent

*  使用随机/特殊 UA
This commit is contained in:
呵呵です
2024-12-19 05:24:48 +08:00
committed by GitHub
parent cfcda6f597
commit f56f993c69
4 changed files with 38 additions and 10 deletions

11
uv.lock generated
View File

@@ -756,6 +756,15 @@ wheels = [
{ url = "https://files.pythonhosted.org/packages/b7/cd/ff116c050330c4b8c8ebc657f40501460c3e38905fb15993ef21f7d24208/expiringdictx-1.1.0-py3-none-any.whl", hash = "sha256:f5d38ae23b46a8f97da27ce0dd74e669430d43b2efe98232a4a81f10b43cde25", size = 7596 },
]
[[package]]
name = "fake-useragent"
version = "2.0.3"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/d6/a4/f8d204c20e7879c2c1fd1719095673f447a3111282bfe09c0a74a5ed5000/fake_useragent-2.0.3.tar.gz", hash = "sha256:af86a26ef8229efece8fed529b4aeb5b73747d889b60f01cd477b6f301df46e6", size = 194741 }
wheels = [
{ url = "https://files.pythonhosted.org/packages/11/4f/a639b1dbdc557241e702eefb931ba24ba235c84f8fffdca3e272f096c6af/fake_useragent-2.0.3-py3-none-any.whl", hash = "sha256:8bae50abb72c309a5b3ae2f01a0b82426613fd5c4e2a04dca9332399ec44daa1", size = 201110 },
]
[[package]]
name = "fastapi"
version = "0.115.3"
@@ -1825,6 +1834,7 @@ dependencies = [
{ name = "aiofiles" },
{ name = "arclet-alconna" },
{ name = "async-lru" },
{ name = "fake-useragent" },
{ name = "httpx" },
{ name = "jinja2" },
{ name = "lxml" },
@@ -1887,6 +1897,7 @@ requires-dist = [
{ name = "aiofiles", specifier = ">=24.1.0" },
{ name = "arclet-alconna", specifier = "<2" },
{ name = "async-lru", specifier = ">=2.0.4" },
{ name = "fake-useragent", specifier = ">=2.0.3" },
{ name = "httpx", specifier = ">=0.27.2" },
{ name = "jinja2", specifier = ">=3.1.4" },
{ name = "lxml", specifier = ">=5.3.0" },