Spaces:
Running
Running
Create result.html
Browse files- templates/result.html +26 -0
templates/result.html
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<html>
|
| 2 |
+
<head>
|
| 3 |
+
<link rel="icon" type="image/png"
|
| 4 |
+
href="https://cdn-uploads.huggingface.co/production/uploads/6575c3025da75f987f12c909/SSqvgCi8yNMKp3tlsBJpV.png" />
|
| 5 |
+
<title>Scraped Results</title>
|
| 6 |
+
</head>
|
| 7 |
+
<body>
|
| 8 |
+
<h1>Scraped Results</h1>
|
| 9 |
+
{% if error %}
|
| 10 |
+
<p style="color: red;">{{ error }}</p>
|
| 11 |
+
{% else %}
|
| 12 |
+
<h2>Title: {{ title }}</h2>
|
| 13 |
+
<h3>Content from: <a href="{{ url }}" target="_blank">{{ url }}</a></h3>
|
| 14 |
+
<h3>Scraped Elements for Tag: <{{ tag }}></h3>
|
| 15 |
+
<ul>
|
| 16 |
+
{% for element in elements %}
|
| 17 |
+
<li>{{ element }}</li>
|
| 18 |
+
{% else %}
|
| 19 |
+
<li>No content found for tag <{{ tag }}>.</li>
|
| 20 |
+
{% endfor %}
|
| 21 |
+
</ul>
|
| 22 |
+
{% endif %}
|
| 23 |
+
<br>
|
| 24 |
+
<a href="/">Go Back</a>
|
| 25 |
+
</body>
|
| 26 |
+
</html>
|