-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.py
51 lines (49 loc) · 1.36 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
COOKIE = "Cookie"
COLLECTION_URL = 'question_url'
BATCH_SIZE = 100
PLAIN_TEXT = 'plain_text'
LATEX = 'latex'
IMAGE = 'img'
MATH_ML = 'mathml'
COLLECTION_IMAGE = "image"
RESOLVED = "resolved"
login_url = 'http://www.51jiaoxi.com/login'
DB = 'math_questions'
ACCOUNT = "account"
COOKIES = "cookies"
SRC = 'src'
UUID = 'uuid'
FETCHED = "analysis_fetched"
ID = 'id'
QUESTION_DETAILS = "question_details"
MATHML_TO_IMAGE = 'MathMLToImage'
QUESTION_BATCH_SIZE = 100
QUESTION_URL = 'question_url'
PHONE = 'phone'
HEADERS = {
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) " +
"AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36",
}
login_url = r'http://www.51jiaoxi.com/login'
SINGLE_CHOICE = '单选题'
FILL_BLANKS = '填空题'
COMPUTATION = '计算题'
SYNTHESIS = '综合题'
ID = "id"
OPTIONS = "options"
TITLE = "title"
SUBTITLE = "subtitle"
LOCAL_IMG_DIR = "./LocalImages/"
# ------------------------------------OCR parameters-------------------------------------------
#tencent
Tencent_API_KEY = "your_api_key"
Tencent_SECRET_KEY = "your_secret_key"
#baidu
Baidu_APP_ID = "20481895"
Baidu_API_KEY = "jcqLdnhT3Ob4jflDqboKoG1z"
Baidu_SECRET_KEY = "KAAcqOuXbtDPVgdH0NPXtGj6LZdPiO5i"
#OCR batch_size
OCR_BATCH_SIZE = 300
# question_type
SINGLE_CHOICE = "单选题"