Refactor version management and remove deprecated gitignore.dev file

This commit is contained in:
UncleCode
2024-11-04 16:51:59 +08:00
parent be8f4fc59a
commit e6c914d2fa
5 changed files with 8 additions and 194 deletions

View File

@@ -16,7 +16,7 @@ from .utils import (
InvalidCSSSelectorError,
format_html
)
from ._version import __version__ as crawl4ai_version
class AsyncWebCrawler:
def __init__(
@@ -46,6 +46,8 @@ class AsyncWebCrawler:
await self.crawler_strategy.__aexit__(exc_type, exc_val, exc_tb)
async def awarmup(self):
# Print a message for crawl4ai and its version
print(f"[LOG] 🚀 Crawl4AI {crawl4ai_version}")
if self.verbose:
print("[LOG] 🌤️ Warming up the AsyncWebCrawler")
# await async_db_manager.ainit_db()