|
@@ -69,7 +69,7 @@ class Ssgdfs(object):
|
|
|
print 'kill'
|
|
|
break
|
|
|
else:
|
|
|
- gevent.sleep(30)
|
|
|
+ time.sleep(30)
|
|
|
|
|
|
def check(self, product):
|
|
|
#r = requests.get(product)
|
|
@@ -113,7 +113,7 @@ class Ssgdfs(object):
|
|
|
self.driver.find_element_by_id('login-password').send_keys(self.config['password'])
|
|
|
self.driver.find_element_by_xpath('//input[@alt="login"]').click()
|
|
|
self.driver.implicitly_wait(5)
|
|
|
- self.close()
|
|
|
+ #self.close()
|
|
|
|
|
|
def order(self, product):
|
|
|
#self.get('http://cn.ssgdfm.com/shop/common/cookieEnable?ce=null&returnUrl=%2Fshop%2Fproduct%2FproductDetail%3FprdtCode%3D05710004801')
|