Omnibus commited on
Commit
6d131e5
1 Parent(s): 8cc62d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -35,6 +35,7 @@ def find_all(url):
35
  if url != "" and url != None:
36
  out = []
37
  source = requests.get(url)
 
38
  if source.status_code ==200:
39
  print('trying')
40
  soup = bs4.BeautifulSoup(source.content,'lxml')
@@ -63,15 +64,12 @@ def find_all(url):
63
  rawp=out
64
  return True, rawp
65
  else:
 
66
  return False, "Enter Valid URL"
67
  except Exception as e:
68
  print (e)
69
  return False, f'Error: {e}'
70
 
71
- #else:
72
- # history = "observation: The search query I used did not return a valid response"
73
-
74
- #return "MAIN", None, history, task
75
 
76
  def read_txt(txt_path):
77
  text=""
 
35
  if url != "" and url != None:
36
  out = []
37
  source = requests.get(url)
38
+ print(source.status_code)
39
  if source.status_code ==200:
40
  print('trying')
41
  soup = bs4.BeautifulSoup(source.content,'lxml')
 
64
  rawp=out
65
  return True, rawp
66
  else:
67
+ print('passing')
68
  return False, "Enter Valid URL"
69
  except Exception as e:
70
  print (e)
71
  return False, f'Error: {e}'
72
 
 
 
 
 
73
 
74
  def read_txt(txt_path):
75
  text=""