-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
38 lines (28 loc) · 878 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/local/bin/python
# -*- coding: UTF-8 -*-
#config.py:配置文件
class Config(object):
"""settings like url and so on."""
def __init__(self):
pass
#the url we will reach
url = 'http://www.pogdesign.co.uk'
transURL = 'http://fanyi.youdao.com/openapi.do?keyfrom=TVCalendarCN&key=<akeyfromyoudao>type=data&doctype=json&version=1.1&q='
urlAllShows = 'http://www.pogdesign.co.uk/cat/all-shows/'
#the database host we looking for
dataBaseHost = "localhost"
#the database username
dataBaseUser = "username"
#the password of the username metioned above
dataBasePwd = "password"
#default table
dataBasedb = "TvCalandar"
#the host of resource database
dataBaseHostRes = 'localhost'
#the resource database username
dataBaseUserRes = 'username'
#the password
dataBasePwdRes = 'password'
#the database
dataBasedbRes = 'resource'
#author: zhuyifan