Omnibus commited on
Commit
8e9b61d
1 Parent(s): 1fbac94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -15,7 +15,7 @@ def search_fn(query):
15
  out = (re.split(":(?=http)",link["href"].replace("/url?q=","").split("&sa",1)[0]))
16
  out = out[0]
17
 
18
- frame_l=f'<iframe src="{out}" frameborder="0" width="100%" height="2000"></iframe>'
19
 
20
  file.writelines(frame_l)
21
 
@@ -36,10 +36,17 @@ def first():
36
  def test(inp):
37
  with open("myfile.txt", "r") as file1:
38
  html_out = file1.read()
 
 
 
 
39
  out = f'''<!DOCTYPE html>
40
  <html lang="en">
41
  <head>
42
  </head>
 
 
 
43
  <body>
44
  {html_out}
45
  </body>
 
15
  out = (re.split(":(?=http)",link["href"].replace("/url?q=","").split("&sa",1)[0]))
16
  out = out[0]
17
 
18
+ frame_l=f'<div class="frame_class"><iframe src="{out}" frameborder="0" width="100%" height="2000"></iframe></div>'
19
 
20
  file.writelines(frame_l)
21
 
 
36
  def test(inp):
37
  with open("myfile.txt", "r") as file1:
38
  html_out = file1.read()
39
+ style = '''
40
+ frame_class{
41
+ width:30%,
42
+ }'''
43
  out = f'''<!DOCTYPE html>
44
  <html lang="en">
45
  <head>
46
  </head>
47
+ <style>
48
+ {style}
49
+ </style>
50
  <body>
51
  {html_out}
52
  </body>