mgokg commited on
Commit
1c4dc7f
·
verified ·
1 Parent(s): bfff184

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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')