Update app.py
Browse files
app.py
CHANGED
|
@@ -157,7 +157,7 @@ from bs4 import BeautifulSoup
|
|
| 157 |
|
| 158 |
|
| 159 |
def fetch_body_text(url: str, timeout: int = 6) -> str:
|
| 160 |
-
|
| 161 |
try:
|
| 162 |
headers = {"User-Agent": "Mozilla/5.0 (compatible; GoogleSearchBot/1.0)"}
|
| 163 |
resp = requests.get(url, headers=headers, timeout=timeout)
|
|
|
|
| 157 |
|
| 158 |
|
| 159 |
def fetch_body_text(url: str, timeout: int = 6) -> str:
|
| 160 |
+
|
| 161 |
try:
|
| 162 |
headers = {"User-Agent": "Mozilla/5.0 (compatible; GoogleSearchBot/1.0)"}
|
| 163 |
resp = requests.get(url, headers=headers, timeout=timeout)
|