openfree commited on
Commit
047cbf6
Β·
verified Β·
1 Parent(s): 7bcd767

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -58,8 +58,8 @@ def take_screenshot(url):
58
  except TimeoutException:
59
  print(f"νŽ˜μ΄μ§€ λ‘œλ”© νƒ€μž„μ•„μ›ƒ: {url}")
60
 
61
- # μΆ”κ°€ λŒ€κΈ° μ‹œκ°„ (1초)
62
- time.sleep(1)
63
 
64
  # JavaScript μ‹€ν–‰ μ™„λ£Œ λŒ€κΈ°
65
  driver.execute_script("return document.readyState") == "complete"
 
58
  except TimeoutException:
59
  print(f"νŽ˜μ΄μ§€ λ‘œλ”© νƒ€μž„μ•„μ›ƒ: {url}")
60
 
61
+ # μΆ”κ°€ λŒ€κΈ° μ‹œκ°„μ„ 2초둜 증가
62
+ time.sleep(2) # 1μ΄ˆμ—μ„œ 2초둜 λ³€κ²½
63
 
64
  # JavaScript μ‹€ν–‰ μ™„λ£Œ λŒ€κΈ°
65
  driver.execute_script("return document.readyState") == "complete"