johann22 commited on
Commit
742ed7e
1 Parent(s): f190cfd

Update i_search.py

Browse files
Files changed (1) hide show
  1. 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('href')])
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')])