webscraping / templates /result.html
nielitropar's picture
Update templates/result.html
903aac4 verified
raw
history blame contribute delete
811 Bytes
<html>
<head>
<link rel="icon" type="image/png"
href="https://cdn-uploads.huggingface.co/production/uploads/6575c3025da75f987f12c909/SSqvgCi8yNMKp3tlsBJpV.png" />
<title>Scraped Results..</title>
</head>
<body>
<h1>Scraped Results</h1>
{% if error %}
<p style="color: red;">{{ error }}</p>
{% else %}
<h2>Title: {{ title }}</h2>
<h3>Content from: <a href="{{ url }}" target="_blank">{{ url }}</a></h3>
<h3>Scraped Elements for Tag: &lt;{{ tag }}&gt;</h3>
<ul>
{% for element in elements %}
<li>{{ element }}</li>
{% else %}
<li>No content found for tag &lt;{{ tag }}&gt;.</li>
{% endfor %}
</ul>
{% endif %}
<br>
<a href="/">Go Back</a>
</body>
</html>