mirror of
https://github.com/thecyberlearn/chat-backend.git
synced 2026-08-18 14:32:53 +00:00
Features: - Django REST API backend - Multi-strategy web scraping system (Beautiful Soup, Playwright, Firecrawl) - Anti-detection features (proxy rotation, user-agent rotation) - Data export functionality (JSON, CSV, TXT) - Business and CrawledPage models - Enhanced crawling service with fallback mechanisms 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
16 lines
422 B
Python
16 lines
422 B
Python
import os
|
|
import platform
|
|
|
|
NO_EXTENSIONS = bool(os.environ.get("MULTIDICT_NO_EXTENSIONS"))
|
|
|
|
PYPY = platform.python_implementation() == "PyPy"
|
|
|
|
USE_EXTENSIONS = not NO_EXTENSIONS and not PYPY
|
|
|
|
if USE_EXTENSIONS:
|
|
try:
|
|
from . import _multidict # type: ignore[attr-defined] # noqa: F401
|
|
except ImportError: # pragma: no cover
|
|
# FIXME: Refactor for coverage. See #837.
|
|
USE_EXTENSIONS = False
|