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>
37 lines
1.2 KiB
HTML
37 lines
1.2 KiB
HTML
{% extends 'scraping/base.html' %}
|
|
|
|
{% block title %}Add New Site - Chat Backend{% endblock %}
|
|
|
|
{% block content %}
|
|
<h2>Add New Site</h2>
|
|
|
|
<div class="card">
|
|
<form method="post">
|
|
{% csrf_token %}
|
|
|
|
<div class="form-group">
|
|
<label for="name">Site Name:</label>
|
|
<input type="text" id="name" name="name" required placeholder="e.g., My Company Website">
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="url">Website URL:</label>
|
|
<input type="url" id="url" name="url" required placeholder="https://example.com">
|
|
</div>
|
|
|
|
<div style="display: flex; gap: 10px;">
|
|
<button type="submit" class="btn btn-success">Create Site</button>
|
|
<a href="{% url 'site_list' %}" class="btn" style="background: #6c757d;">Cancel</a>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="card" style="background: #f8f9fa;">
|
|
<h3>How it works</h3>
|
|
<ol>
|
|
<li><strong>Add your website</strong> - Enter the name and URL</li>
|
|
<li><strong>Scrape content</strong> - We'll extract company info using Firecrawl AI</li>
|
|
<li><strong>Review results</strong> - View the extracted content and data</li>
|
|
</ol>
|
|
</div>
|
|
{% endblock %} |