Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ def get_search_body_text(destination: str) -> str:
|
|
| 41 |
# Make the HTTP GET request
|
| 42 |
response = requests.get(url, params=params, headers=headers, timeout=10)
|
| 43 |
response.raise_for_status() # Raise an exception for bad status codes
|
| 44 |
-
return response
|
| 45 |
# Parse the HTML content
|
| 46 |
soup = BeautifulSoup(response.text, 'html.parser')
|
| 47 |
body = soup.find('body')
|
|
|
|
| 41 |
# Make the HTTP GET request
|
| 42 |
response = requests.get(url, params=params, headers=headers, timeout=10)
|
| 43 |
response.raise_for_status() # Raise an exception for bad status codes
|
| 44 |
+
return response.text
|
| 45 |
# Parse the HTML content
|
| 46 |
soup = BeautifulSoup(response.text, 'html.parser')
|
| 47 |
body = soup.find('body')
|