Spaces:
Paused

mgokg commited on
Commit
625e6fb
·
verified ·
1 Parent(s): d34e940

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- """Fetch a URL and return the stripped body text via BeautifulSoup."""
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)