You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.6 KiB
64 lines
1.6 KiB
<!DOCTYPE html>
|
|
<html lang="nl">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Scrape Resultaat</title>
|
|
<style>
|
|
body { font-family: Arial, sans-serif; padding: 40px; max-width: 900px; margin: auto; }
|
|
h1 { margin-bottom: 10px; }
|
|
.error { padding: 15px; background: #ffdddd; border-left: 5px solid #ff4444; margin-bottom: 20px; }
|
|
.box { padding: 15px; background: #f7f7f7; border: 1px solid #ddd; margin-bottom: 20px; border-radius: 6px; }
|
|
a { color: #007bff; text-decoration: none; }
|
|
a:hover { text-decoration: underline; }
|
|
pre { background: #222; color: #eee; padding: 10px; border-radius: 6px; overflow-x: auto; }
|
|
small { color: #555; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<a href="/">← Terug</a>
|
|
|
|
{% if error %}
|
|
<div class="error">
|
|
<strong>Fout:</strong><br>{{ error }}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<h1>Scrape resultaat</h1>
|
|
|
|
{% if result %}
|
|
<div class="box">
|
|
<strong>Titel:</strong> {{ result.title }}<br>
|
|
<strong>Auteur:</strong> {{ result.author }}<br>
|
|
</div>
|
|
|
|
{% if result.description %}
|
|
<div class="box">
|
|
<strong>Beschrijving:</strong><br>
|
|
<p>{{ result.description }}</p>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="box">
|
|
<strong>Aantal chapters:</strong> {{ result.chapters|length }}
|
|
</div>
|
|
|
|
{% if result.chapters %}
|
|
<div class="box">
|
|
<strong>Chapters:</strong><br><br>
|
|
<ul>
|
|
{% for ch in result.chapters %}
|
|
<li>
|
|
<a href="{{ ch.url }}" target="_blank">
|
|
Chapter {{ ch.number }} — {{ ch.title }}
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
</body>
|
|
</html>
|