Omnibus commited on
Commit
6fd9dfb
·
verified ·
1 Parent(s): 416dbe0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -56,7 +56,7 @@ def run_script(url: str, height: int, width: int):
56
  page = driver.find_element(By.TAG_NAME, "html")
57
  print (dir(page))
58
  print (page.text)
59
- driver.execute_script("arguments[0].theme = 'gab-black';",page)
60
  #driver.execute_script("arguments[0].theme = 'gab-black';",page)
61
  main_head = driver.find_element(By.CLASS_NAME, "main-content-header")
62
  head_shot = main_head.screenshot(f'head-{uid}-tmp.png')
@@ -73,7 +73,7 @@ def run_script(url: str, height: int, width: int):
73
  messages[i+1].screenshot(f'{i+1}-{uid}-tmp.png')
74
 
75
 
76
- out_box.append(get_concat_v_cut(f'{i}-{uid}-tmp.png,'f'{i+1}-{uid}-tmp.png'))
77
  print(f'out_box:: {out_box}')
78
  #mes_box.clear()
79
 
 
56
  page = driver.find_element(By.TAG_NAME, "html")
57
  print (dir(page))
58
  print (page.text)
59
+ driver.execute_script("arguments[0].theme = '';",page)
60
  #driver.execute_script("arguments[0].theme = 'gab-black';",page)
61
  main_head = driver.find_element(By.CLASS_NAME, "main-content-header")
62
  head_shot = main_head.screenshot(f'head-{uid}-tmp.png')
 
73
  messages[i+1].screenshot(f'{i+1}-{uid}-tmp.png')
74
 
75
 
76
+ out_box.append(get_concat_v_cut(f'{i}-{uid}-tmp.png',f'{i+1}-{uid}-tmp.png'))
77
  print(f'out_box:: {out_box}')
78
  #mes_box.clear()
79