Omnibus commited on
Commit
c30642b
1 Parent(s): 75dab34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -20,14 +20,16 @@ def link_find(url):
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
  print(ea)
30
- out_list=link_find(ea['URL'])
 
 
31
  ea['TREE']=ea["TREE"].append(out)
32
  return out_list
33
  with gr.Blocks() as app:
 
20
  else:
21
  return ["None"]
22
  return out
23
+ #https://huggingface.co/spaces/Omnibus/crawl
24
 
25
  def sitemap(url):
26
  if url != "" and url != None:
27
  link1=link_find(url)
28
  for ea in link1:
29
  print(ea)
30
+ if url.endswith("/"):
31
+ url=url.strip("/")
32
+ out_list=link_find(f"{url}{ea['URL']}")
33
  ea['TREE']=ea["TREE"].append(out)
34
  return out_list
35
  with gr.Blocks() as app: