From 229f3256dd638373b499d47077c4543d197f504e Mon Sep 17 00:00:00 2001
From: 41612123 <876398710@qq.com>
Date: Thu, 25 Oct 2018 09:53:10 +0800
Subject: [PATCH 01/15] feat: add mysql operation,delete access operation
---
src/main.py | 3 --
src/sqlhelper.py | 82 ++++++++++++++++++++----------------------------
2 files changed, 34 insertions(+), 51 deletions(-)
diff --git a/src/main.py b/src/main.py
index 2eb492b..24552d3 100644
--- a/src/main.py
+++ b/src/main.py
@@ -13,7 +13,6 @@
import os
from traceback import format_exc
import send
-from sqlhelper import CreateDatabase
def Init():
'''首次使用时,程序初始化'''
@@ -22,8 +21,6 @@ def Init():
Mkfile('Log/' + 'Exception_log.log')
# 新建数据库
database_name='database'
- if CreateDatabase(database_name)==True:
- Log_Write('新建文件', database_name + '\n')
File_Path = os.getcwd() + '\\Data\\user.md'
if not os.path.exists(File_Path): # 不存在user.md文件
diff --git a/src/sqlhelper.py b/src/sqlhelper.py
index 25a318b..b31af92 100644
--- a/src/sqlhelper.py
+++ b/src/sqlhelper.py
@@ -2,30 +2,32 @@
Created on Oct 19, 2018
@author: QiZhao
'''
-import pypyodbc
+import pymysql
import os
+import re
-
-def ExistTable(data_base, table_name):
+def ExistTable(target_ip , user_name, pwd, db_name, table_name):
'''
判断数据库中是否存在某张表,返回True或Flase
Args:
- data_base: 数据库文件的文件名
+ target_ip: 连接目标的ip
+ user_name: 数据库用户名
+ pwd: 数据库用户的密码
+ db_name: 数据库名称
table_name: 表名
Returns:
返回True或Flase
'''
-
- path = os.getcwd() + "\\" + data_base + ".mdb"
try:
- connection = pypyodbc.win_connect_mdb(path)
+ connection = pymysql.connect(host = target_ip,user = user_name,passwd = pwd,db = db_name )
cursor = connection.cursor()
- res = cursor.tables()
- tables = []
- for i in res:
- tables.append(i[2])
- if table_name in tables:
+ sql = 'show tables;'
+ cursor.execute(sql)
+ tables = [cursor.fetchall()]
+ table_list = re.findall('(\'.*?\')',str(tables))
+ table_list = [re.sub("'",'',each) for each in table_list]
+ if table_name in table_list:
return True
else:
return False
@@ -35,20 +37,21 @@ def ExistTable(data_base, table_name):
raise e
-def Execute(data_base, sql):
+def Execute(target_ip , user_name, pwd, db_name, sql):
'''
执行一条SQL语句,返回SQL语句执行后影响的行数
Args:
- data_base: 数据库文件的文件名
+ target_ip: 连接目标的ip
+ user_name: 数据库用户名
+ pwd: 数据库用户的密码
+ db_name: 数据库名称
sql: SQL语句
Returns:
res: SQL语句执行后影响的行数
'''
-
- path = os.getcwd() + "\\" + data_base + ".mdb"
try:
- connection = pypyodbc.win_connect_mdb(path)
+ connection = pymysql.connect(host = target_ip,user = user_name,passwd = pwd,db = db_name )
cursor = connection.cursor()
res = cursor.execute(sql)
connection.commit()
@@ -60,41 +63,22 @@ def Execute(data_base, sql):
raise e
-def CreateDatabase(data_base):
- '''
- 判断当前路径是否存在数据库文件
- 如果不存在,则尝试创建数据库文件,
- 返回创建的结果
-
- Args:
- data_base: 数据库文件的文件名
- Returns:
- 返回True或Flase
- '''
- path = os.getcwd() + "\\" + data_base + ".mdb"
- try:
- if not os.path.exists(path):
- connection = pypyodbc.win_create_mdb(path)
- connection.close()
- return True
- return False
- except Exception as e:
- raise e
-
-
-def Fetchall(data_base, sql):
+def Fetchall(target_ip , user_name, pwd, db_name, sql):
'''
执行一条SQL语句,返回查询结果的所有行
+
Args:
- data_base: 数据库文件的文件名
+ target_ip: 连接目标的ip
+ user_name: 数据库用户名
+ pwd: 数据库用户的密码
+ db_name: 数据库名称
sql: SQL语句
Returns:
res: 一个list,包含查询的结果,
元素为元组,代表一行信息
'''
- path = os.getcwd() + "\\" + data_base + ".mdb"
try:
- connection = pypyodbc.win_connect_mdb(path)
+ connection = pymysql.connect(host = target_ip,user = user_name,passwd = pwd,db = db_name )
cursor = connection.cursor()
cursor.execute(sql)
res = cursor.fetchall()
@@ -106,23 +90,25 @@ def Fetchall(data_base, sql):
raise e
-def FetchRow(data_base, sql, column):
+def FetchRow(target_ip , user_name, pwd, db_name, sql, column):
'''
执行一条sql语句,并从查询结果中筛选指定的某一列的所有内容
Args:
- data_base: 数据库文件的文件名
+ target_ip: 连接目标的ip
+ user_name: 数据库用户名
+ pwd: 数据库用户的密码
+ db_name: 数据库名称
sql: SQL语句
column: 第几列,从0开始
Returns:
res: 一个list,包含指定列的所有结果
'''
- path = os.getcwd() + "\\" + data_base + ".mdb"
try:
- connection = pypyodbc.win_connect_mdb(path)
+ connection = pymysql.connect(host = target_ip,user = user_name,passwd = pwd,db = db_name )
cursor = connection.cursor()
cursor.execute(sql)
- row_count = cursor._NumOfCols()
+ row_count = cursor.rowcount
if column >= row_count:
raise IndexError
res = cursor.fetchall()
From 766788361fcb1475ecf7644148cc9ab9a0597784 Mon Sep 17 00:00:00 2001
From: 41612123 <876398710@qq.com>
Date: Fri, 26 Oct 2018 18:02:12 +0800
Subject: [PATCH 02/15] refacter: sqlhelper --> class
---
src/sqlhelper.py | 209 +++++++++++++++++++++++------------------------
1 file changed, 104 insertions(+), 105 deletions(-)
diff --git a/src/sqlhelper.py b/src/sqlhelper.py
index b31af92..4a63291 100644
--- a/src/sqlhelper.py
+++ b/src/sqlhelper.py
@@ -1,123 +1,122 @@
-'''
-Created on Oct 19, 2018
-@author: QiZhao
-'''
import pymysql
-import os
import re
-def ExistTable(target_ip , user_name, pwd, db_name, table_name):
+class SqlHelper():
'''
- 判断数据库中是否存在某张表,返回True或Flase
+ 数据库帮助类,实现数据库的一些操作
Args:
target_ip: 连接目标的ip
user_name: 数据库用户名
pwd: 数据库用户的密码
- db_name: 数据库名称
- table_name: 表名
- Returns:
- 返回True或Flase
- '''
- try:
- connection = pymysql.connect(host = target_ip,user = user_name,passwd = pwd,db = db_name )
- cursor = connection.cursor()
- sql = 'show tables;'
- cursor.execute(sql)
- tables = [cursor.fetchall()]
- table_list = re.findall('(\'.*?\')',str(tables))
- table_list = [re.sub("'",'',each) for each in table_list]
- if table_name in table_list:
- return True
- else:
- return False
- except Exception as e:
- connection.rollback()
- connection.close()
- raise e
-
-def Execute(target_ip , user_name, pwd, db_name, sql):
'''
- 执行一条SQL语句,返回SQL语句执行后影响的行数
+ def __init__(self , target_ip , user_name , pwd):
+ self.target_ip = target_ip
+ self.user_name = user_name
+ self.pwd = pwd
- Args:
- target_ip: 连接目标的ip
- user_name: 数据库用户名
- pwd: 数据库用户的密码
- db_name: 数据库名称
- sql: SQL语句
- Returns:
- res: SQL语句执行后影响的行数
- '''
- try:
- connection = pymysql.connect(host = target_ip,user = user_name,passwd = pwd,db = db_name )
- cursor = connection.cursor()
- res = cursor.execute(sql)
- connection.commit()
- connection.close()
- return res
- except Exception as e:
- connection.rollback()
- connection.close()
- raise e
+ def ExistTable(self, db_name, table_name):
+ '''
+ 判断数据库中是否存在某张表,返回True或Flase
+
+ Args:
+ db_name: 数据库名称
+ table_name: 表名
+ Returns:
+ 返回True或Flase
+ '''
+ try:
+ connection = pymysql.connect(host = self.target_ip, user = self.user_name, passwd = self.pwd, db = db_name )
+ cursor = connection.cursor()
+ sql = 'show tables;'
+ cursor.execute(sql)
+ tables = [cursor.fetchall()]
+ table_list = re.findall('(\'.*?\')',str(tables))
+ table_list = [re.sub("'",'',each) for each in table_list]
+ if table_name in table_list:
+ return True
+ else:
+ return False
+ except Exception as e:
+ connection.rollback()
+ connection.close()
+ raise e
-def Fetchall(target_ip , user_name, pwd, db_name, sql):
- '''
- 执行一条SQL语句,返回查询结果的所有行
+
+ def Execute(self, db_name, sql):
+ '''
+ 执行一条SQL语句,返回SQL语句执行后影响的行数
- Args:
- target_ip: 连接目标的ip
- user_name: 数据库用户名
- pwd: 数据库用户的密码
- db_name: 数据库名称
- sql: SQL语句
- Returns:
- res: 一个list,包含查询的结果,
- 元素为元组,代表一行信息
- '''
- try:
- connection = pymysql.connect(host = target_ip,user = user_name,passwd = pwd,db = db_name )
- cursor = connection.cursor()
- cursor.execute(sql)
- res = cursor.fetchall()
- connection.close()
- return res
- except Exception as e:
- connection.rollback()
- connection.close()
- raise e
+ Args:
+ db_name: 数据库名称
+ sql: SQL语句
+ Returns:
+ res: SQL语句执行后影响的行数
+ '''
+ try:
+ connection = pymysql.connect(host = self.target_ip,user = self.user_name,passwd = self.pwd,db = db_name )
+ cursor = connection.cursor()
+ res = cursor.execute(sql)
+ connection.commit()
+ connection.close()
+ return res
+ except Exception as e:
+ connection.rollback()
+ connection.close()
+ raise e
-def FetchRow(target_ip , user_name, pwd, db_name, sql, column):
- '''
- 执行一条sql语句,并从查询结果中筛选指定的某一列的所有内容
+ def Fetchall(self , db_name, sql):
+ '''
+ 执行一条SQL语句,返回查询结果的所有行
+
+ Args:
+ db_name: 数据库名称
+ sql: SQL语句
+ Returns:
+ res: 一个list,包含查询的结果,元素为元组,代表一行信息
+ '''
+ try:
+ connection = pymysql.connect(host = self.target_ip,user = self.user_name,passwd = self.pwd,db = db_name )
+ cursor = connection.cursor()
+ cursor.execute(sql)
+ res = cursor.fetchall()
+ connection.close()
+ return res
+ except Exception as e:
+ connection.rollback()
+ connection.close()
+ raise e
- Args:
- target_ip: 连接目标的ip
- user_name: 数据库用户名
- pwd: 数据库用户的密码
- db_name: 数据库名称
- sql: SQL语句
- column: 第几列,从0开始
- Returns:
- res: 一个list,包含指定列的所有结果
- '''
- try:
- connection = pymysql.connect(host = target_ip,user = user_name,passwd = pwd,db = db_name )
- cursor = connection.cursor()
- cursor.execute(sql)
- row_count = cursor.rowcount
- if column >= row_count:
- raise IndexError
- res = cursor.fetchall()
- ret = []
- for col in res:
- ret.append(col[column])
- connection.close()
- return ret
- except Exception as e:
- connection.rollback()
- connection.close()
- raise e
+
+ def FetchRow(self , db_name, sql, column):
+ '''
+ 执行一条sql语句,并从查询结果中筛选指定的某一列的所有内容
+
+ Args:
+ db_name: 数据库名称
+ sql: SQL语句
+ column: 第几列,从0开始
+ Returns:
+ res: 一个list,包含指定列的所有结果
+ '''
+ try:
+ connection = pymysql.connect(host = self.target_ip,user = self.user_name,passwd = self.pwd,db = db_name )
+ cursor = connection.cursor()
+ cursor.execute(sql)
+ row_count = cursor.rowcount
+ print(row_count)
+ if column >= row_count:
+ raise IndexError
+ res = cursor.fetchall()
+ ret = []
+ for col in res:
+ ret.append(col[column])
+ connection.close()
+ return ret
+ except Exception as e:
+ connection.rollback()
+ connection.close()
+ raise e
From be200d59f7eaba7d1f1dc56adcb549610fa84805 Mon Sep 17 00:00:00 2001
From: QiZhao <956361916@qq.com>
Date: Sat, 27 Oct 2018 16:03:21 +0800
Subject: [PATCH 03/15] fix: fix FetCol method of sqlhelper
---
src/sqlhelper.py | 51 ++++++++++++++++++++++++------------------------
1 file changed, 26 insertions(+), 25 deletions(-)
diff --git a/src/sqlhelper.py b/src/sqlhelper.py
index 4a63291..b00562e 100644
--- a/src/sqlhelper.py
+++ b/src/sqlhelper.py
@@ -1,26 +1,24 @@
import pymysql
import re
+
class SqlHelper():
'''
数据库帮助类,实现数据库的一些操作
-
Args:
target_ip: 连接目标的ip
user_name: 数据库用户名
pwd: 数据库用户的密码
-
'''
- def __init__(self , target_ip , user_name , pwd):
+
+ def __init__(self, target_ip, user_name, pwd):
self.target_ip = target_ip
self.user_name = user_name
self.pwd = pwd
-
def ExistTable(self, db_name, table_name):
'''
判断数据库中是否存在某张表,返回True或Flase
-
Args:
db_name: 数据库名称
table_name: 表名
@@ -28,13 +26,14 @@ def ExistTable(self, db_name, table_name):
返回True或Flase
'''
try:
- connection = pymysql.connect(host = self.target_ip, user = self.user_name, passwd = self.pwd, db = db_name )
+ connection = pymysql.connect(
+ host=self.target_ip, user=self.user_name, passwd=self.pwd, db=db_name)
cursor = connection.cursor()
sql = 'show tables;'
cursor.execute(sql)
tables = [cursor.fetchall()]
- table_list = re.findall('(\'.*?\')',str(tables))
- table_list = [re.sub("'",'',each) for each in table_list]
+ table_list = re.findall('(\'.*?\')', str(tables))
+ table_list = [re.sub("'", '', each) for each in table_list]
if table_name in table_list:
return True
else:
@@ -44,11 +43,9 @@ def ExistTable(self, db_name, table_name):
connection.close()
raise e
-
def Execute(self, db_name, sql):
'''
执行一条SQL语句,返回SQL语句执行后影响的行数
-
Args:
db_name: 数据库名称
sql: SQL语句
@@ -56,7 +53,8 @@ def Execute(self, db_name, sql):
res: SQL语句执行后影响的行数
'''
try:
- connection = pymysql.connect(host = self.target_ip,user = self.user_name,passwd = self.pwd,db = db_name )
+ connection = pymysql.connect(
+ host=self.target_ip, user=self.user_name, passwd=self.pwd, db=db_name)
cursor = connection.cursor()
res = cursor.execute(sql)
connection.commit()
@@ -67,11 +65,9 @@ def Execute(self, db_name, sql):
connection.close()
raise e
-
- def Fetchall(self , db_name, sql):
+ def FetchAll(self, db_name, sql):
'''
执行一条SQL语句,返回查询结果的所有行
-
Args:
db_name: 数据库名称
sql: SQL语句
@@ -79,7 +75,8 @@ def Fetchall(self , db_name, sql):
res: 一个list,包含查询的结果,元素为元组,代表一行信息
'''
try:
- connection = pymysql.connect(host = self.target_ip,user = self.user_name,passwd = self.pwd,db = db_name )
+ connection = pymysql.connect(
+ host=self.target_ip, user=self.user_name, passwd=self.pwd, db=db_name)
cursor = connection.cursor()
cursor.execute(sql)
res = cursor.fetchall()
@@ -90,28 +87,32 @@ def Fetchall(self , db_name, sql):
connection.close()
raise e
-
- def FetchRow(self , db_name, sql, column):
+ def FetchCol(self, db_name, table_name, sql, column):
'''
执行一条sql语句,并从查询结果中筛选指定的某一列的所有内容
-
Args:
db_name: 数据库名称
+ table_name: 表名
sql: SQL语句
- column: 第几列,从0开始
+ column: 第几列,从1开始
Returns:
res: 一个list,包含指定列的所有结果
'''
try:
- connection = pymysql.connect(host = self.target_ip,user = self.user_name,passwd = self.pwd,db = db_name )
+ connection = pymysql.connect(
+ host=self.target_ip, user=self.user_name, passwd=self.pwd, db=db_name)
cursor = connection.cursor()
+ temp_sql = "select count(*) from information_schema.columns where table_schema='" + \
+ db_name + "' and table_name='" + table_name+"'"
+ cursor.execute(temp_sql)
+ tup=cursor.fetchone()
+ col_count=int(tup[0])
+ if column > col_count or column < 1:
+ raise IndexError
cursor.execute(sql)
- row_count = cursor.rowcount
- print(row_count)
- if column >= row_count:
- raise IndexError
res = cursor.fetchall()
ret = []
+ column-=1
for col in res:
ret.append(col[column])
connection.close()
@@ -119,4 +120,4 @@ def FetchRow(self , db_name, sql, column):
except Exception as e:
connection.rollback()
connection.close()
- raise e
+ raise e
\ No newline at end of file
From 234b9ad7fd5aebbd0d9e1528fbd076a04d57f2cd Mon Sep 17 00:00:00 2001
From: QiZhao <956361916@qq.com>
Date: Sat, 27 Oct 2018 15:17:20 +0800
Subject: [PATCH 04/15] feat: add two database operation method of sqlhelper
---
src/sqlhelper.py | 51 +++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 50 insertions(+), 1 deletion(-)
diff --git a/src/sqlhelper.py b/src/sqlhelper.py
index b00562e..e41cfed 100644
--- a/src/sqlhelper.py
+++ b/src/sqlhelper.py
@@ -120,4 +120,53 @@ def FetchCol(self, db_name, table_name, sql, column):
except Exception as e:
connection.rollback()
connection.close()
- raise e
\ No newline at end of file
+ raise e
+
+ def CreateDatabase(self,db_name):
+ '''
+ 创建一个数据库.如果已存在该数据库,则删除该数据库后再创建
+
+ Args:
+ db_name: 数据库名称
+ Returns:
+ res: 返回True或Flase
+ '''
+ try:
+ connection = pymysql.connect(
+ host=self.target_ip, user=self.user_name, passwd=self.pwd)
+ cursor = connection.cursor()
+ sql='DROP DATABASE '+db_name
+ cursor.execute(sql)
+ sql='CREATE DATABASE if not exists '+db_name
+ cursor.execute(sql)
+ connection.commit()
+ connection.close()
+ except Exception as e:
+ connection.rollback()
+ connection.close()
+ raise e
+
+ def ExistDatabase(self,db_name):
+ '''
+ 判断是否存在某个数据库,返回True或Flase
+
+ Args:
+ db_name: 数据库名称
+ Returns: 返回True或Flase
+ '''
+ try:
+ connection = pymysql.connect(
+ host=self.target_ip, user=self.user_name, passwd=self.pwd)
+ cursor = connection.cursor()
+ cursor.execute('show databases')
+ databases = cursor.fetchall()
+ database_list=re.findall('(\'.*?\')', str(databases))
+ database_list = [re.sub("'", '', each) for each in database_list]
+ if db_name in database_list:
+ return True
+ else:
+ return False
+ except Exception as e:
+ connection.rollback()
+ connection.close()
+ raise e
From bc96debabe9e34b1234b59eed68cb8582edd7f85 Mon Sep 17 00:00:00 2001
From: QiZhao <956361916@qq.com>
Date: Sat, 27 Oct 2018 15:21:48 +0800
Subject: [PATCH 05/15] feat: storge data using mysql
---
src/main.py | 2 --
src/spider.py | 17 +++++++++++------
2 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/src/main.py b/src/main.py
index 24552d3..d1a45f7 100644
--- a/src/main.py
+++ b/src/main.py
@@ -19,8 +19,6 @@ def Init():
Mkdir('Log')
Mkdir('Data')
Mkfile('Log/' + 'Exception_log.log')
- # 新建数据库
- database_name='database'
File_Path = os.getcwd() + '\\Data\\user.md'
if not os.path.exists(File_Path): # 不存在user.md文件
diff --git a/src/spider.py b/src/spider.py
index 901698b..3acb955 100644
--- a/src/spider.py
+++ b/src/spider.py
@@ -1,4 +1,5 @@
# encoding='utf-8'
+import configs
'''
Created on Mar 7, 2018
@@ -54,19 +55,23 @@ def Data_processing(subject_EN, data, url_main):
{'title':'关于xxx的通知','date':'2017-03-10','link':'http://xxxx.com‘}]
'''
+ helper = sqlhelper.SqlHelper(
+ configs.TARGET_IP, configs.SQL_USERNAME, configs.SQL_PASSWORD)
+ if helper.ExistDatabase(configs.DATABASE_NAME)==False:
+ helper.CreateDatabase(configs.DATABASE_NAME)
# 处理为长网址
for item_dict in data:
item_dict['link'] = url_main + item_dict['link']
table_name = subject_EN
- if sqlhelper.ExistTable('database', table_name) == False:
+ if helper.ExistTable(configs.DATABASE_NAME, table_name) == False:
sql = 'CREATE TABLE' + ' ' + table_name + \
- '(link Text PRIMARY KEY,title Text,datee Text)'
- sqlhelper.Execute('database', sql)
+ '(id int PRIMARY KEY AUTO_INCREMENT,link Text,title Text,date Text)'
+ helper.Execute(configs.DATABASE_NAME, sql)
# 收集所有的link信息
sql = 'select * from' + ' ' + table_name
- all_link = sqlhelper.FetchRow('database', sql, 0)
+ all_link = helper.FetchCol(configs.DATABASE_NAME, table_name,sql, 2)
# 生成新数据
status = 0 # 是否有新通知的标志
@@ -84,10 +89,10 @@ def Data_processing(subject_EN, data, url_main):
# 将新抓取到的通知信息写入数据文件
for item in new_data:
- sql = "insert into" + " " + table_name + "(link,title,datee) values ('%s','%s','%s')" % (
+ sql = "insert into" + " " + table_name + "(link,title,date) values ('%s','%s','%s')" % (
item['link'], item['title'], item['date'])
# print(sql)
- sqlhelper.Execute('database', sql)
+ helper.Execute(configs.DATABASE_NAME, sql)
return status, new_data
From f88bd33051de3a97b60f231cc2610aec8254f894 Mon Sep 17 00:00:00 2001
From: QiZhao <956361916@qq.com>
Date: Sat, 27 Oct 2018 17:29:10 +0800
Subject: [PATCH 06/15] fix: add mysql configs
---
src/configs.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/configs.py b/src/configs.py
index 9a55528..a8fff4d 100644
--- a/src/configs.py
+++ b/src/configs.py
@@ -1,12 +1,10 @@
# encoding='utf-8'
'''
Created on Sep 19, 2018
-
@author: QiZhao
@license: GNU GPLv3
@version: 0.2.0
'''
-
# show config
SCHOOL_NAME = ''
VERSION = ''
@@ -53,3 +51,8 @@
APPID = ' '
SECRET = ' '
+# mysql config
+TARGET_IP=''
+SQL_USERNAME=''
+SQL_PASSWORD=''
+DATABASE_NAME=''
From 0c0cfba82eed60bb1603f86016383c9e7e09f503 Mon Sep 17 00:00:00 2001
From: QiZhao <956361916@qq.com>
Date: Sat, 27 Oct 2018 17:54:18 +0800
Subject: [PATCH 07/15] docs: update author information,moudle description
document
---
Pydoc/configs.html | 17 ++++++--
Pydoc/main.html | 8 +++-
Pydoc/send.html | 25 +++++++----
Pydoc/spider.html | 13 +++---
Pydoc/sqlhelper.html | 99 ++++++++++++++++++++++++++++++++------------
Pydoc/tool.html | 12 +++---
src/configs.py | 7 +++-
src/main.py | 10 +++--
src/send.py | 10 +++--
src/spider.py | 8 ++--
src/sqlhelper.py | 9 ++++
src/tool.py | 7 +++-
12 files changed, 158 insertions(+), 67 deletions(-)
diff --git a/Pydoc/configs.html b/Pydoc/configs.html
index e32242e..829375b 100644
--- a/Pydoc/configs.html
+++ b/Pydoc/configs.html
@@ -9,11 +9,13 @@
configs
Created on Sep 19, 2018
-
-@author: QiZhao
+
@author: QiZhao
+@contact: zhaoqi99@outlook.com
+@since: 2018-09-19
@license: GNU GPLv3
-@version: 0.2.0
ACCOUNT_ID = '' +APPID = ' ' AUTHOR_EMAIL = '' AUTHOR_NAME = '' AUTH_TOKEN = '' +DATABASE_NAME = '' EMAIL_PORT = 0 EMAIL_SERVER = '' FROM_ADDR = '' +GRANT_TYPE = 'client_credential' LOG_ENABLED = True PASSWORD = '' SCHOOL_NAME = '' +SECRET = ' ' SPIDER_CONFIG = [{'coding': '', 'rule': '', 'subject_CN': '', 'subject_EN': '', 'url': '', 'url_main': ''}, {'coding': '', 'rule': '', 'subject_CN': '', 'subject_EN': '', 'url': '', 'url_main': ''}] +SQL_PASSWORD = '' +SQL_USERNAME = '' +TARGET_IP = '' TWILIO_NUMBER = '' VERSION = '' |