proxys / templates /index.html
AdarshJi's picture
Upload 4 files
51b6bdd verified
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Working Proxies</title>
<!-- Bootstrap CSS CDN for quick styling -->
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-ENjdO4Dr2bkBIFxQpeoXy1WPIe5F5jNRk6PQ1dFmZ8aGihV27n3GmZyW/aJmXK5y"
crossorigin="anonymous">
<!-- Auto-refresh every 60 seconds -->
<meta http-equiv="refresh" content="60">
</head>
<body class="bg-light">
<div class="container py-4">
<h1 class="mb-4">Working HTTP Proxies</h1>
{% if proxies %}
<div class="table-responsive">
<table class="table table-striped table-hover">
<thead class="table-dark">
<tr>
<th scope="col">#</th>
<th scope="col">Proxy Address</th>
<th scope="col">Response Time (s)</th>
</tr>
</thead>
<tbody>
{% for proxy, elapsed in proxies %}
<tr>
<th scope="row">{{ loop.index }}</th>
<td>{{ proxy }}</td>
<td>{{ "%.3f"|format(elapsed) }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% else %}
<div class="alert alert-warning">
No working proxies found yet. Please check back in a moment.
</div>
{% endif %}
<footer class="mt-5 text-muted">
Last updated: {{ last_updated }}
</footer>
</div>
<!-- Optional: Bootstrap JS bundle -->
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"
integrity="sha384-qQSIp+Y4nYjo+Q+EYqgEuhI6Y8JJpx1MhpN+azmM1qupXp6hwUBazrRwv3P5hI9g"
crossorigin="anonymous"></script>
</body>
</html>