Update async_webcrawler.py (#337)

add @asynccontextmanager
This commit is contained in:
lvzhengri
2024-12-10 20:56:52 +08:00
committed by GitHub
parent ded554d334
commit 759164831d

View File

@@ -132,6 +132,11 @@ class AsyncWebCrawler:
# if self.verbose:
# print(f"{Fore.GREEN}{self.tag_format('READY')} {self.log_icons['READY']} AsyncWebCrawler initialized{Style.RESET_ALL}")
@asynccontextmanager
async def nullcontext(self):
"""异步空上下文管理器"""
yield
async def arun(
self,
url: str,