Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,6 +41,7 @@ def run_script1(url: str, height: int, width: int, check_b,check_h):
|
|
| 41 |
uid=uuid.uuid4()
|
| 42 |
out=None
|
| 43 |
is_url=True
|
|
|
|
| 44 |
if is_url:
|
| 45 |
options = webdriver.ChromeOptions()
|
| 46 |
options.add_argument('--headless')
|
|
@@ -105,6 +106,8 @@ def run_script(url: str, height: int, width: int, check_b,check_h):
|
|
| 105 |
uid=uuid.uuid4()
|
| 106 |
out=None
|
| 107 |
is_url=True
|
|
|
|
|
|
|
| 108 |
if is_url:
|
| 109 |
options = webdriver.ChromeOptions()
|
| 110 |
options.add_argument('--headless')
|
|
@@ -113,8 +116,7 @@ def run_script(url: str, height: int, width: int, check_b,check_h):
|
|
| 113 |
mes='<center>operation success'
|
| 114 |
try:
|
| 115 |
driver = webdriver.Chrome(options=options)
|
| 116 |
-
driver.
|
| 117 |
-
#driver.get(driver.current_window_handle)
|
| 118 |
html=driver.page_source
|
| 119 |
print(html)
|
| 120 |
driver.implicitly_wait(30)
|
|
|
|
| 41 |
uid=uuid.uuid4()
|
| 42 |
out=None
|
| 43 |
is_url=True
|
| 44 |
+
url='https://omnibus-snap.hf.space/?chat=[(123,555),(2342,32344)]&__theme=dark'
|
| 45 |
if is_url:
|
| 46 |
options = webdriver.ChromeOptions()
|
| 47 |
options.add_argument('--headless')
|
|
|
|
| 106 |
uid=uuid.uuid4()
|
| 107 |
out=None
|
| 108 |
is_url=True
|
| 109 |
+
url='https://omnibus-snap.hf.space/?chat=[(123,555),(2342,32344)]&__theme=dark'
|
| 110 |
+
|
| 111 |
if is_url:
|
| 112 |
options = webdriver.ChromeOptions()
|
| 113 |
options.add_argument('--headless')
|
|
|
|
| 116 |
mes='<center>operation success'
|
| 117 |
try:
|
| 118 |
driver = webdriver.Chrome(options=options)
|
| 119 |
+
driver.get(url)
|
|
|
|
| 120 |
html=driver.page_source
|
| 121 |
print(html)
|
| 122 |
driver.implicitly_wait(30)
|