示例#1
0
 def t_test_login(self):
     cookies_list = self.get_cookies()
     conf = self._get_config()
     self.get_yuyue_info()
     for cookies in cookies_list:
         jd_seckill = JdSeckill(conf.sku, conf.sku_num, conf.buy_time,
                                cookies, self.widget)
         jd_seckill.get_username()
示例#2
0
 def get_yuyue_info(self):
     cookies_list = self.get_cookies()
     conf = self._get_config()
     if len(cookies_list) > 0:
         jd_seckill = JdSeckill(conf.sku, conf.sku_num, conf.buy_time,
                                cookies_list[0], self.widget)
         jd_seckill.get_yuyue_info()
     else:
         QMessageBox.about(self, '提示', '请添加账户')
示例#3
0
 def start(self):
     cookies_list = self.get_cookies()
     if len(cookies_list) == 0:
         QMessageBox.about(self, '提示', '请添加账户')
         return
     self.pushButton_4.setEnabled(False)
     self.pushButton_5.setEnabled(True)
     conf = self._get_config()
     self.queue.queue.clear()
     self.test_login()
     for cookies in cookies_list:
         thread = JdSeckill(conf.sku, conf.sku_num, conf.buy_time, cookies,
                            self.widget)
         self.queue.put(thread)
         # thread.start()
     else:
         self.add_log('所有线程已经准备完毕,开始倒计时')
示例#4
0
from jd_spider_requests import JdSeckill

if __name__ == '__main__':
    a = """

       oooo oooooooooo.            .oooooo..o                     oooo         o8o  oooo  oooo  
       `888 `888'   `Y8b          d8P'    `Y8                     `888         `"'  `888  `888  
        888  888      888         Y88bo.       .ooooo.   .ooooo.   888  oooo  oooo   888   888  
        888  888      888          `"Y8888o.  d88' `88b d88' `"Y8  888 .8P'   `888   888   888  
        888  888      888 8888888      `"Y88b 888ooo888 888        888888.     888   888   888  
        888  888     d88'         oo     .d8P 888    .o 888   .o8  888 `88b.   888   888   888  
    .o. 88P o888bood8P'           8""88888P'  `Y8bod8P' `Y8bod8P' o888o o888o o888o o888o o888o 
    `Y888P                                                                                                                                                  
                                               
功能列表:                                                                                
 1.预约商品
 2.秒杀抢购商品
    """
    print(a)

    jd_seckill = JdSeckill()
    jd_seckill.seckill_by_proc_pool()
示例#5
0
def job():
    dt = datetime.now().strftime("%Y-%m-%d") + " 09:59:59.500"
    jdSeckill = JdSeckill(buy_time=dt)
    jdSeckill.seckill_by_proc_pool()
示例#6
0
文件: main.py 项目: zexionghong/test
from jd_spider_requests import JdSeckill

if __name__ == '__main__':
    a = """

       oooo oooooooooo.            .oooooo..o                     oooo         o8o  oooo  oooo  
       `888 `888'   `Y8b          d8P'    `Y8                     `888         `"'  `888  `888  
        888  888      888         Y88bo.       .ooooo.   .ooooo.   888  oooo  oooo   888   888  
        888  888      888          `"Y8888o.  d88' `88b d88' `"Y8  888 .8P'   `888   888   888  
        888  888      888 8888888      `"Y88b 888ooo888 888        888888.     888   888   888  
        888  888     d88'         oo     .d8P 888    .o 888   .o8  888 `88b.   888   888   888  
    .o. 88P o888bood8P'           8""88888P'  `Y8bod8P' `Y8bod8P' o888o o888o o888o o888o o888o 
    `Y888P                                                                                                                                                  
                                               
功能列表:                                                                                
 1.预约商品cv
 2.秒杀抢购商品
    """
    print(a)

    jd_seckill = JdSeckill()
    jd_seckill.seckill_num = 2
    choice_function = input('请选择:')
    if choice_function == '1':
        jd_seckill.reserve()
    elif choice_function == '2':
        jd_seckill.seckill_by_proc_pool(9)
    else:
        print('没有此功能')
        sys.exit(1)
示例#7
0
def login_checker():
    jd_seckill = JdSeckill()
    jd_seckill.loginChecker()
示例#8
0
if __name__ == '__main__':
    a = """

       oooo oooooooooo.            .oooooo..o                     oooo         o8o  oooo  oooo  
       `888 `888'   `Y8b          d8P'    `Y8                     `888         `"'  `888  `888  
        888  888      888         Y88bo.       .ooooo.   .ooooo.   888  oooo  oooo   888   888  
        888  888      888          `"Y8888o.  d88' `88b d88' `"Y8  888 .8P'   `888   888   888  
        888  888      888 8888888      `"Y88b 888ooo888 888        888888.     888   888   888  
        888  888     d88'         oo     .d8P 888    .o 888   .o8  888 `88b.   888   888   888  
    .o. 88P o888bood8P'           8""88888P'  `Y8bod8P' `Y8bod8P' o888o o888o o888o o888o o888o 
    `Y888P                                                                                                                                                  
                                               
功能列表:                                                                                
 1.预约商品
 2.秒杀抢购商品
    """
    print(a)

    jd_seckill = JdSeckill()
    choice_function = input('请选择:')
    if choice_function == '1':
        jd_seckill.reserve()
    elif choice_function == '2':
        jd_seckill.seckill_by_proc_pool()
    elif choice_function == '3':
        jd_seckill.clear_cart()
    else:
        pr1int('没有此功能')
        sys.exit(1)
示例#9
0
 def skill(self, cookies, conf, widget):
     jd_seckill = JdSeckill(conf.sku, conf.sku_num, conf.buy_time, cookies,
                            widget)
     jd_seckill.seckill_by_proc_pool(work_count=conf.thread_num)
示例#10
0
if __name__ == '__main__':
    a = """

       oooo oooooooooo.            .oooooo..o                     oooo         o8o  oooo  oooo  
       `888 `888'   `Y8b          d8P'    `Y8                     `888         `"'  `888  `888  
        888  888      888         Y88bo.       .ooooo.   .ooooo.   888  oooo  oooo   888   888  
        888  888      888          `"Y8888o.  d88' `88b d88' `"Y8  888 .8P'   `888   888   888  
        888  888      888 8888888      `"Y88b 888ooo888 888        888888.     888   888   888  
        888  888     d88'         oo     .d8P 888    .o 888   .o8  888 `88b.   888   888   888  
    .o. 88P o888bood8P'           8""88888P'  `Y8bod8P' `Y8bod8P' o888o o888o o888o o888o o888o 
    `Y888P                                                                                                                                                  
                                               
功能列表:                                                                                
 1.预约商品
 2.秒杀抢购商品
    """
    print(a)

    JdSeckill().submit_seckill_order()
    sys.exit(1)

    jd_seckill = JdSeckill()
    choice_function = input('请选择:')
    if choice_function == '1':
        jd_seckill.reserve()
    elif choice_function == '2':
        jd_seckill.seckill_by_proc_pool()
    else:
        print('没有此功能')
        sys.exit(1)
示例#11
0
文件: main.py 项目: Digman/jd_seckill
    try:
        a = """
功能列表:                                   
 +---+-----------------------+                                                                        
 | 1 | 预约商品              |
 +---+-----------------------+
 | 2 | 秒杀抢购商品          |
 +---+-----------------------+
 | 3 | 预约并抢购商品        |
 +---+-----------------------+
 | 4 | 推送测试              |
 +---+-----------------------+
        """
        print(a)
        choice_function = input('请选择[1-4]: ')
        jd_seckill = JdSeckill()
        if choice_function == '1':
            jd_seckill.reserve()
        elif choice_function == '2':
            jd_seckill.seckill_by_proc_pool()
        elif choice_function == '3':
            jd_seckill.reserve_seckill_until_success()
        elif choice_function == '4':
            jd_seckill.test_message()
        else:
            print('没有此功能')
            sys.exit(1)
    except KeyboardInterrupt:
        logger.warning('Keyboard Interrupt')
        sys.exit(0)
示例#12
0
import sys
from jd_spider_requests import JdSeckill

if __name__ == '__main__':
    a = """

       oooo oooooooooo.            .oooooo..o                     oooo         o8o  oooo  oooo  
       `888 `888'   `Y8b          d8P'    `Y8                     `888         `"'  `888  `888  
        888  888      888         Y88bo.       .ooooo.   .ooooo.   888  oooo  oooo   888   888  
        888  888      888          `"Y8888o.  d88' `88b d88' `"Y8  888 .8P'   `888   888   888  
        888  888      888 8888888      `"Y88b 888ooo888 888        888888.     888   888   888  
        888  888     d88'         oo     .d8P 888    .o 888   .o8  888 `88b.   888   888   888  
    .o. 88P o888bood8P'           8""88888P'  `Y8bod8P' `Y8bod8P' o888o o888o o888o o888o o888o 
    `Y888P                                                                                                                                                  
                                               
功能列表:                                                                                
 1.预约商品
 2.秒杀抢购商品
    """
    print(a)

    jd_seckill = JdSeckill()
    choice_function = input('请选择:')
    if choice_function == '1':
        jd_seckill.reserve()
    elif choice_function == '2':
        jd_seckill.seckill()
    else:
        print('没有此功能')
        sys.exit(1)
示例#13
0
def reserve():
    jd_seckill = JdSeckill()
    jd_seckill.reserve()
示例#14
0
文件: run.py 项目: Digman/jd_seckill
from jd_spider_requests import JdSeckill

if __name__ == '__main__':
    jd_seckill = JdSeckill()
    jd_seckill.reserve_seckill_until_success()