Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,10 @@ def find_it(url,q=None,num=None):
|
|
40 |
print (e)
|
41 |
#out.append(p)
|
42 |
out.append([{q:p.string,"additional":z,"parent":p.parent.name,"previous":[b for b in p.previous],"first-child":[b.name for b in p.children],"content":p}])
|
43 |
-
|
|
|
|
|
|
|
44 |
#out.append(p.parent.name)
|
45 |
print(dir(p))
|
46 |
print(p.parent.name)
|
|
|
40 |
print (e)
|
41 |
#out.append(p)
|
42 |
out.append([{q:p.string,"additional":z,"parent":p.parent.name,"previous":[b for b in p.previous],"first-child":[b.name for b in p.children],"content":p}])
|
43 |
+
if p.string !=None:
|
44 |
+
out_l.append(p.string)
|
45 |
+
else:
|
46 |
+
out_l.append(z)
|
47 |
#out.append(p.parent.name)
|
48 |
print(dir(p))
|
49 |
print(p.parent.name)
|