Spaces:
Running
Running
Update app.py
Browse filesFixed bug, copy pasta, left response reference in code when replaced by a different object.
app.py
CHANGED
@@ -53,7 +53,7 @@ def webpage_contents_soup_paragraphs(response_content:bytes)->list:
|
|
53 |
Args:
|
54 |
response_content: response.content value returned by webpage_contents_get tool.
|
55 |
'''
|
56 |
-
soup = BeautifulSoup(
|
57 |
list_ret
|
58 |
for paragraph in soup.find_all("p"):
|
59 |
ret_t = paragraph.text
|
@@ -67,7 +67,7 @@ def webpage_contents_soup_links(response_content:bytes)->list:
|
|
67 |
Args:
|
68 |
response_content: response.content value returned by webpage_contents_get tool.
|
69 |
'''
|
70 |
-
soup = BeautifulSoup(
|
71 |
list_ret
|
72 |
for link in soup.find_all("a"):
|
73 |
ret_t = link.get("href")
|
|
|
53 |
Args:
|
54 |
response_content: response.content value returned by webpage_contents_get tool.
|
55 |
'''
|
56 |
+
soup = BeautifulSoup(response_content, "html.parser")
|
57 |
list_ret
|
58 |
for paragraph in soup.find_all("p"):
|
59 |
ret_t = paragraph.text
|
|
|
67 |
Args:
|
68 |
response_content: response.content value returned by webpage_contents_get tool.
|
69 |
'''
|
70 |
+
soup = BeautifulSoup(response_content, "html.parser")
|
71 |
list_ret
|
72 |
for link in soup.find_all("a"):
|
73 |
ret_t = link.get("href")
|