Spaces:
Sleeping
Sleeping
Download static/index.html from Ramasani/WebScrapper-AI: direct link, hf CLI and curl.
- Browser
- Download file 3.44 kB
-
https://huggingface.co/spaces/Ramasani/WebScrapper-AI/resolve/main/static/index.html
- Command line
-
hf download hf://spaces/Ramasani/WebScrapper-AI/static/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Ramasani/WebScrapper-AI/resolve/main/static/index.html
3.44 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Web Scraper</title> | |
| <link rel="stylesheet" href="/static/style.css"> | |
| </head> | |
| <body> | |
| <header> | |
| <h1>Web Scraper</h1> | |
| <p>ML-based content classification</p> | |
| </header> | |
| <nav class="tabs"> | |
| <button class="tab-btn active" data-tab="scrape">Scrape</button> | |
| <button class="tab-btn" data-tab="jobs">Jobs</button> | |
| <button class="tab-btn" data-tab="pages">Pages</button> | |
| <button class="tab-btn" data-tab="stats">Stats</button> | |
| <button class="tab-btn" data-tab="model">Model</button> | |
| </nav> | |
| <main> | |
| <section id="scrape" class="tab-content active"> | |
| <h2>Submit Scraping Job</h2> | |
| <form id="scrape-form"> | |
| <label for="urls">URLs (one per line):</label> | |
| <textarea id="urls" rows="5" placeholder="https://example.com https://news.ycombinator.com"></textarea> | |
| <button type="submit">Start Scraping</button> | |
| </form> | |
| <div id="scrape-result" class="result"></div> | |
| </section> | |
| <section id="jobs" class="tab-content"> | |
| <h2>Job Status</h2> | |
| <div class="form-row"> | |
| <input type="text" id="job-id-input" placeholder="Enter Job ID"> | |
| <button id="check-job-btn">Check Status</button> | |
| </div> | |
| <div id="job-result" class="result"></div> | |
| </section> | |
| <section id="pages" class="tab-content"> | |
| <h2>Scraped Pages</h2> | |
| <div class="filters"> | |
| <select id="status-filter"> | |
| <option value="">All Pages</option> | |
| <option value="success">Successful</option> | |
| <option value="error">Errors</option> | |
| </select> | |
| <button id="refresh-pages-btn">Refresh</button> | |
| </div> | |
| <table id="pages-table"> | |
| <thead> | |
| <tr> | |
| <th>ID</th> | |
| <th>URL</th> | |
| <th>Title</th> | |
| <th>Category</th> | |
| <th>Status</th> | |
| </tr> | |
| </thead> | |
| <tbody></tbody> | |
| </table> | |
| <div id="page-detail" class="modal hidden"></div> | |
| </section> | |
| <section id="stats" class="tab-content"> | |
| <h2>Statistics</h2> | |
| <div id="stats-content" class="stats-grid"></div> | |
| </section> | |
| <section id="model" class="tab-content"> | |
| <h2>ML Model</h2> | |
| <div class="model-actions"> | |
| <button id="retrain-btn">Retrain Model</button> | |
| <button id="vacuum-btn">Vacuum Database</button> | |
| </div> | |
| <div id="model-result" class="result"></div> | |
| <h3>Predict Content</h3> | |
| <form id="predict-form"> | |
| <textarea id="html-content" rows="5" placeholder="<html>...</html>"></textarea> | |
| <input type="text" id="predict-title" placeholder="Title (optional)"> | |
| <button type="submit">Classify</button> | |
| </form> | |
| <div id="predict-result" class="result"></div> | |
| </section> | |
| </main> | |
| <script src="/static/app.js"></script> | |
| </body> | |
| </html> |