Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -14,14 +14,15 @@ def search_fn(query):
|
|
14 |
out = (re.split(":(?=http)",link["href"].replace("/url?q=","").split("&sa",1)[0]))
|
15 |
out = out[0]
|
16 |
|
17 |
-
frame_l=
|
|
|
18 |
with open("MyFile.txt", "w") as file:
|
19 |
file.writelines(frame_l)
|
20 |
|
21 |
print (out)
|
22 |
|
23 |
|
24 |
-
return (myfile.txt)
|
25 |
|
26 |
|
27 |
def first():
|
|
|
14 |
out = (re.split(":(?=http)",link["href"].replace("/url?q=","").split("&sa",1)[0]))
|
15 |
out = out[0]
|
16 |
|
17 |
+
frame_l=f'<iframe src="{out}" frameborder="0" width="100%" height="2000"></iframe>'
|
18 |
+
|
19 |
with open("MyFile.txt", "w") as file:
|
20 |
file.writelines(frame_l)
|
21 |
|
22 |
print (out)
|
23 |
|
24 |
|
25 |
+
return ("myfile.txt")
|
26 |
|
27 |
|
28 |
def first():
|