Skip to content

Commit

Permalink
add import
Browse files Browse the repository at this point in the history
  • Loading branch information
Germey committed May 1, 2017
1 parent 98f5fd6 commit 65603d7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions cookiespool/api.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from flask import Flask, g

from cookiespool.config import *
from cookiespool.db import *

__all__ = ['app']

Expand Down
6 changes: 3 additions & 3 deletions cookiespool/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

# 云打码相关配置到yundama.com申请注册
YUNDAMA_USERNAME = 'Germey'
YUNDAMA_PASSWORD = ''
YUNDAMA_PASSWORD = '940629cqc'
YUNDAMA_APP_ID = '3372'
YUNDAMA_APP_KEY = '1b586a30bfda5c7fa71c881075ba49d0'

Expand All @@ -23,7 +23,7 @@
YUNDAMA_MAX_RETRY = 20

# 产生器默认使用的浏览器
DEFAULT_BROWSER = 'PhantomJS'
DEFAULT_BROWSER = 'Chrome'

# 产生器类,如扩展其他站点,请在此配置
GENERATOR_MAP = {
Expand All @@ -44,7 +44,7 @@

# 进程开关
# 产生器,模拟登录添加Cookies
GENERATOR_PROCESS = True
GENERATOR_PROCESS = False
# 验证器,循环检测数据库中Cookies是否可用,不可用删除
VALID_PROCESS = False
# API接口服务
Expand Down
3 changes: 2 additions & 1 deletion cookiespool/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

from cookiespool.api import app
from cookiespool.config import *

from cookiespool.generator import *
from cookiespool.tester import *

class Scheduler(object):
@staticmethod
Expand Down

0 comments on commit 65603d7

Please sign in to comment.