nielitropar commited on
Commit
681d154
·
verified ·
1 Parent(s): 84e6b91

Create result.html

Browse files
Files changed (1) hide show
  1. 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: &lt;{{ tag }}&gt;</h3>
15
+ <ul>
16
+ {% for element in elements %}
17
+ <li>{{ element }}</li>
18
+ {% else %}
19
+ <li>No content found for tag &lt;{{ tag }}&gt;.</li>
20
+ {% endfor %}
21
+ </ul>
22
+ {% endif %}
23
+ <br>
24
+ <a href="/">Go Back</a>
25
+ </body>
26
+ </html>