File size: 2,240 Bytes
0f22445
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Scraped Results</title>
  <style>
    @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');
    body {
      font-family: 'Poppins', sans-serif;
      background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
      color: #fff;
      min-height: 100vh;
      margin: 0;
      text-align: center;
      padding: 40px 0;
    }
    h1 {
      margin-bottom: 15px;
      font-size: 30px;
    }
    h2 {
      font-size: 18px;
      margin-bottom: 25px;
      color: #ffecb3;
    }
    .results {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      width: 85%;
      margin: auto;
    }
    .item {
      background: rgba(255,255,255,0.15);
      backdrop-filter: blur(10px);
      border-radius: 12px;
      padding: 12px 20px;
      text-align: left;
      width: 80%;
      transition: transform 0.3s, box-shadow 0.3s;
    }
    .item:hover {
      transform: scale(1.03);
      box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
    .buttons {
      margin-top: 30px;
    }
    a, button {
      text-decoration: none;
      border: none;
      color: #fff;
      background: linear-gradient(90deg, #00c6ff, #0072ff);
      padding: 10px 25px;
      border-radius: 25px;
      margin: 10px;
      font-size: 16px;
      cursor: pointer;
      transition: transform 0.2s, background 0.3s;
    }
    a:hover, button:hover {
      transform: scale(1.05);
      background: linear-gradient(90deg, #0072ff, #00c6ff);
    }
  </style>
</head>
<body>
  <h1>πŸ“° Scraped Data from {{ url }}</h1>
  <h2>Selected Tag: &lt;{{ tag.upper() }}&gt;</h2>
  <div class="results">
    {% if titles %}
      {% for title in titles %}
        <div class="item">{{ title }}</div>
      {% endfor %}
    {% else %}
      <p>No data found or error occurred.</p>
    {% endif %}
  </div>
  <div class="buttons">
    <a href="/">β¬… Home</a>
    <form method="POST" action="/" style="display:inline;">
      <input type="hidden" name="url" value="{{ url }}">
      <input type="hidden" name="tag" value="{{ tag }}">
      <button type="submit">πŸ”„ Re-scrape</button>
    </form>
  </div>
</body>
</html>