Spaces:
Sleeping
Sleeping
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>π Web Content Extractor</title> | |
| <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <h1>π Web Content Extractor</h1> | |
| <div class="form-section"> | |
| <input type="text" id="url" placeholder="Enter website URL (e.g. https://example.com)"> | |
| <input type="text" id="tag" placeholder="Enter HTML tag (e.g. h1, p, a, all)"> | |
| <button onclick="extractContent()">Extract</button> | |
| </div> | |
| <div id="result-box"> | |
| <h2>Results:</h2> | |
| <div id="output"></div> | |
| <div id="analysis-box" class="hidden"> | |
| <h3>π§ Text Analysis</h3> | |
| <p><b>Language:</b> <span id="lang"></span></p> | |
| <p><b>Total Words:</b> <span id="wordCount"></span></p> | |
| <p><b>Sentences:</b> <span id="sentCount"></span></p> | |
| <p><b>Unique Words:</b> <span id="uniqueCount"></span></p> | |
| <h4>Top Words:</h4> | |
| <ul id="topWords"></ul> | |
| </div> | |
| </div> | |
| </div> | |
| <script src="/static/script.js"></script> | |
| </body> | |
| </html> | |