|
@@ -16,7 +16,7 @@ import random
|
|
from click import Option
|
|
from click import Option
|
|
from selenium import webdriver
|
|
from selenium import webdriver
|
|
import time
|
|
import time
|
|
-
|
|
|
|
|
|
+import sys
|
|
|
|
|
|
|
|
|
|
app = Celery('tasks', backend ='redis://172.104.92.245', broker='redis://172.104.92.245')
|
|
app = Celery('tasks', backend ='redis://172.104.92.245', broker='redis://172.104.92.245')
|
|
@@ -155,8 +155,9 @@ def selenium_jared_click3():
|
|
webdriver.ActionChains(driver).move_to_element(elmt).click().perform()
|
|
webdriver.ActionChains(driver).move_to_element(elmt).click().perform()
|
|
print(domain)
|
|
print(domain)
|
|
print(href)
|
|
print(href)
|
|
- driver.quit()
|
|
|
|
app.control.broadcast('shutdown')
|
|
app.control.broadcast('shutdown')
|
|
|
|
+ driver.quit()
|
|
|
|
+ sys.exit()
|
|
return txt
|
|
return txt
|
|
break
|
|
break
|
|
return '{empty}'
|
|
return '{empty}'
|