Browse Source

add import

pull/4/merge
Germey 8 years ago
parent
commit
65603d7033
  1. 1
      cookiespool/api.py
  2. 6
      cookiespool/config.py
  3. 3
      cookiespool/scheduler.py

1
cookiespool/api.py

@ -1,6 +1,7 @@
from flask import Flask, g
from cookiespool.config import *
from cookiespool.db import *
__all__ = ['app']

6
cookiespool/config.py

@ -13,7 +13,7 @@ REDIS_NAME = '*'
# 云打码相关配置到yundama.com申请注册
YUNDAMA_USERNAME = 'Germey'
YUNDAMA_PASSWORD = ''
YUNDAMA_PASSWORD = '940629cqc'
YUNDAMA_APP_ID = '3372'
YUNDAMA_APP_KEY = '1b586a30bfda5c7fa71c881075ba49d0'
@ -23,7 +23,7 @@ YUNDAMA_API_URL = 'http://api.yundama.com/api.php'
YUNDAMA_MAX_RETRY = 20
# 产生器默认使用的浏览器
DEFAULT_BROWSER = 'PhantomJS'
DEFAULT_BROWSER = 'Chrome'
# 产生器类,如扩展其他站点,请在此配置
GENERATOR_MAP = {
@ -44,7 +44,7 @@ API_PORT = 5000
# 进程开关
# 产生器,模拟登录添加Cookies
GENERATOR_PROCESS = True
GENERATOR_PROCESS = False
# 验证器,循环检测数据库中Cookies是否可用,不可用删除
VALID_PROCESS = False
# API接口服务

3
cookiespool/scheduler.py

@ -3,7 +3,8 @@ from multiprocessing import Process
from cookiespool.api import app
from cookiespool.config import *
from cookiespool.generator import *
from cookiespool.tester import *
class Scheduler(object):
@staticmethod

Loading…
Cancel
Save