Update app.py
Browse files
app.py
CHANGED
|
@@ -131,7 +131,9 @@ def descargar_tabla_web(url, indice_tabla=0):
|
|
| 131 |
try:
|
| 132 |
# Añadir headers con un User-Agent
|
| 133 |
headers = {
|
| 134 |
-
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/
|
|
|
|
|
|
|
| 135 |
}
|
| 136 |
|
| 137 |
response = requests.get(url, headers=headers)
|
|
|
|
| 131 |
try:
|
| 132 |
# Añadir headers con un User-Agent
|
| 133 |
headers = {
|
| 134 |
+
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36',
|
| 135 |
+
'Accept-Language': 'es-ES,es;q=0.9',
|
| 136 |
+
'Referer': 'https://www.google.com/'
|
| 137 |
}
|
| 138 |
|
| 139 |
response = requests.get(url, headers=headers)
|