tx3bas commited on
Commit
27be115
·
verified ·
1 Parent(s): 882263a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -1
app.py CHANGED
@@ -6,7 +6,33 @@ import json
6
  def wayback(website):
7
  if not website:
8
  return '<p>😭 Error: introduce una url correcta</p>'
9
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  # Intentar primero con la Wayback CDX Server API
11
  end_date = datetime.now()
12
  start_date = end_date - timedelta(days=1095)
 
6
  def wayback(website):
7
  if not website:
8
  return '<p>😭 Error: introduce una url correcta</p>'
9
+ # Estilos CSS para la tabla
10
+ style = """
11
+ <style>
12
+ table {
13
+ width: 100%;
14
+ border-collapse: collapse;
15
+ }
16
+ th, td {
17
+ border: 1px solid #dddddd;
18
+ text-align: left;
19
+ padding: 8px;
20
+ }
21
+ th {
22
+ background-color: #f2f2f2;
23
+ }
24
+ tr:nth-child(even) {
25
+ background-color: #f9f9f9;
26
+ }
27
+ a {
28
+ color: #0645ad;
29
+ text-decoration: none;
30
+ }
31
+ a:hover {
32
+ text-decoration: underline;
33
+ }
34
+ </style>
35
+ """
36
  # Intentar primero con la Wayback CDX Server API
37
  end_date = datetime.now()
38
  start_date = end_date - timedelta(days=1095)