Spaces:
Running
Running
Update i_search.py
Browse files- i_search.py +1 -1
i_search.py
CHANGED
@@ -16,7 +16,7 @@ def i_search(url):
|
|
16 |
try:
|
17 |
response.raise_for_status()
|
18 |
soup = BeautifulSoup(response.content, 'html.parser')
|
19 |
-
out = 'URL Links:\n'.join([p.text for p in soup.find_all('
|
20 |
out = ' '.join([p.text for p in soup.find_all('p')])
|
21 |
if out == "" or out == None:
|
22 |
out = ' '.join([p.text for p in soup.find_all('article')])
|
|
|
16 |
try:
|
17 |
response.raise_for_status()
|
18 |
soup = BeautifulSoup(response.content, 'html.parser')
|
19 |
+
out = 'URL Links:\n'.join([p.text for p in soup.find_all('a')])
|
20 |
out = ' '.join([p.text for p in soup.find_all('p')])
|
21 |
if out == "" or out == None:
|
22 |
out = ' '.join([p.text for p in soup.find_all('article')])
|