Omnibus commited on
Commit
c9e509f
1 Parent(s): 2e1cde2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -18,14 +18,15 @@ def link_find(url):
18
  for p in soup.find_all("a"):
19
  out.append({"LINK TITLE":p.get('title'),"URL":p.get('href'),"STRING":p.string,"TREE":[]})
20
  else:
21
- return "None"
22
  return out
23
 
24
 
25
  def sitemap(url):
26
  if url != "" and url != None:
27
  link1=link_find(url)
28
- for ea in link1:
 
29
  out_list=link_find(ea['URL'])
30
  ea['TREE']=ea["TREE"].append(out)
31
  return out_list
 
18
  for p in soup.find_all("a"):
19
  out.append({"LINK TITLE":p.get('title'),"URL":p.get('href'),"STRING":p.string,"TREE":[]})
20
  else:
21
+ return ["None"]
22
  return out
23
 
24
 
25
  def sitemap(url):
26
  if url != "" and url != None:
27
  link1=link_find(url)
28
+ for i,ea in enumerate(link1):
29
+ print(ea)
30
  out_list=link_find(ea['URL'])
31
  ea['TREE']=ea["TREE"].append(out)
32
  return out_list