Skip to content

Commit

Permalink
Shorten get seckill url retry time
Browse files Browse the repository at this point in the history
  • Loading branch information
tychxn committed Feb 25, 2019
1 parent b7e402f commit f973270
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jd_assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -789,8 +789,8 @@ def _get_seckill_url(self, sku_id):
print(get_current_time(), "抢购链接获取成功")
break
else:
print(get_current_time(), "抢购链接获取失败,{0}不是抢购商品或抢购页面暂未刷新,3秒后重试".format(sku_id))
time.sleep(3)
print(get_current_time(), "抢购链接获取失败,{0}不是抢购商品或抢购页面暂未刷新,1秒后重试".format(sku_id))
time.sleep(1)

# https://divide.jd.com/user_routing?skuId=8654289&sn=c3f4ececd8461f0e4d7267e96a91e0e0&from=pc
router_url = 'https:' + js.get('url')
Expand Down

0 comments on commit f973270

Please sign in to comment.