rabin 7 years ago
parent
commit
9828b6be47
2 changed files with 3 additions and 2 deletions
  1. 1 1
      cron.py
  2. 2 1
      service/ssgdfs.py

+ 1 - 1
cron.py

@@ -9,7 +9,7 @@ from demeter.core import *
 from multiprocessing import Process
 from gevent import monkey; monkey.patch_socket()
 import gevent
-timeSleep = 30
+timeSleep = 10
 
 def run(site, product):
 	site['product'] = product

+ 2 - 1
service/ssgdfs.py

@@ -42,7 +42,7 @@ class Ssgdfs(object):
 			state = self.check(config['link'])
 			if state == True:
 				try:
-					print 'go'
+					print('get' + config['link'])
 					product.status(config['id'], 3)
 					# 下单
 					self.order(config['link'])
@@ -65,6 +65,7 @@ class Ssgdfs(object):
 		#r = requests.get(product)
 		self.get(product)
 		data = self.driver.page_source
+		#print(data)
 		# 可以购买
 		string = 'btn_direct_buy.gif'
 		#data = r.text