mirror of
https://github.com/thecyberlearn/chat-backend.git
synced 2026-08-18 07:52: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>
19 lines
684 B
Python
19 lines
684 B
Python
from django.urls import path
|
|
from . import views
|
|
|
|
urlpatterns = [
|
|
# Business management
|
|
path('', views.business_list, name='business_list'),
|
|
path('create/', views.create_business, name='create_business'),
|
|
path('<int:business_id>/', views.business_detail, name='business_detail'),
|
|
|
|
# Crawling
|
|
path('<int:business_id>/crawl/', views.crawl_website, name='crawl_website'),
|
|
path('<int:business_id>/crawl-method/', views.crawl_with_method, name='crawl_with_method'),
|
|
|
|
# Data export
|
|
path('<int:business_id>/export/', views.export_data, name='export_data'),
|
|
|
|
# Content viewing
|
|
path('page/<int:page_id>/', views.page_content, name='page_content'),
|
|
] |