Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -551,8 +551,9 @@ def create_image(url):
|
|
551 |
#out.append("HTML fragments: ")
|
552 |
#q=("a","p","span","content","article")
|
553 |
out=[]
|
554 |
-
for
|
555 |
-
|
|
|
556 |
print(out)
|
557 |
#out.append(p.string)
|
558 |
with open("tmp.svg","w") as svg:
|
|
|
551 |
#out.append("HTML fragments: ")
|
552 |
#q=("a","p","span","content","article")
|
553 |
out=[]
|
554 |
+
for b in soup.find_all("div"):
|
555 |
+
for p in b.find_all("pre, {'class': 'mermaid'}"):
|
556 |
+
out.append(p.find('svg'))
|
557 |
print(out)
|
558 |
#out.append(p.string)
|
559 |
with open("tmp.svg","w") as svg:
|