зеркало из
https://github.com/viginum-datalab/twscrape.git
synced 2025-10-29 13:06:13 +02:00
build fix
Этот коммит содержится в:
родитель
f40c13a3db
Коммит
7b62efb38a
@ -1,7 +1,10 @@
|
|||||||
[build-system]
|
[build-system]
|
||||||
requires = ["hatchling"]
|
requires = ["hatchling>=1.9.1"]
|
||||||
build-backend = "hatchling.build"
|
build-backend = "hatchling.build"
|
||||||
|
|
||||||
|
[tool.hatch.build.targets.wheel]
|
||||||
|
packages = ["twscrape"]
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "twscrape"
|
name = "twscrape"
|
||||||
version = "0.9.0"
|
version = "0.9.0"
|
||||||
|
|||||||
@ -181,7 +181,7 @@ class QueueClient:
|
|||||||
async def get(self, url: str, params: ReqParams = None):
|
async def get(self, url: str, params: ReqParams = None):
|
||||||
return await self.req("GET", url, params=params)
|
return await self.req("GET", url, params=params)
|
||||||
|
|
||||||
async def req(self, method: str, url: str, params: ReqParams = None):
|
async def req(self, method: str, url: str, params: ReqParams = None) -> httpx.Response | None:
|
||||||
retry_count = 0
|
retry_count = 0
|
||||||
while True:
|
while True:
|
||||||
ctx = await self._get_ctx()
|
ctx = await self._get_ctx()
|
||||||
|
|||||||
Загрузка…
x
Ссылка в новой задаче
Block a user