Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -12,8 +12,8 @@ def link_find(url):
|
|
12 |
rawp=(f'RAW TEXT RETURNED: {soup.text}')
|
13 |
cnt=0
|
14 |
cnt+=len(rawp)
|
15 |
-
out.append(rawp)
|
16 |
-
out.append("HTML fragments: ")
|
17 |
q=("a","p","span","content","article")
|
18 |
for p in soup.find_all("a"):
|
19 |
out.append({"LINK TITLE":p.get('title'),"URL":p.get('href'),"STRING":p.string,"TREE":[]})
|
@@ -25,7 +25,7 @@ def link_find(url):
|
|
25 |
def sitemap(url):
|
26 |
if url != "" and url != None:
|
27 |
link1=link_find(url)
|
28 |
-
for
|
29 |
print(ea)
|
30 |
out_list=link_find(ea['URL'])
|
31 |
ea['TREE']=ea["TREE"].append(out)
|
|
|
12 |
rawp=(f'RAW TEXT RETURNED: {soup.text}')
|
13 |
cnt=0
|
14 |
cnt+=len(rawp)
|
15 |
+
#out.append(rawp)
|
16 |
+
#out.append("HTML fragments: ")
|
17 |
q=("a","p","span","content","article")
|
18 |
for p in soup.find_all("a"):
|
19 |
out.append({"LINK TITLE":p.get('title'),"URL":p.get('href'),"STRING":p.string,"TREE":[]})
|
|
|
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)
|