forked from dzlzh/shiyanlou-courses
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.php
More file actions
80 lines (69 loc) · 1.76 KB
/
Copy pathconfig.example.php
File metadata and controls
80 lines (69 loc) · 1.76 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?PHP
/**
* +--------------------------------------------------------------
* | Copyright (c) 2016 DZLZH All rights reserved.
* +--------------------------------------------------------------
* | Author: DZLZH <dzlzh@null.net>
* +--------------------------------------------------------------
* | Filename: config.example.php
* +--------------------------------------------------------------
* | Last modified: 2016-11-15 20:58
* +--------------------------------------------------------------
* | Description:
* +--------------------------------------------------------------
*/
require_once 'function.php';
$basePath = 'courses' . DIRECTORY_SEPARATOR;
$userAgent = 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.87 Safari/537.36';
$url = array(
'root' => 'https://www.shiyanlou.com',
'login' => 'https://www.shiyanlou.com/login',
'courses' => 'https://www.shiyanlou.com/courses/?course_type=all',
);
$loginParam = array(
'login' => '',
'password' => '',
);
$coursesParam = array(
//标签
'tag' => 'php',
//类别
//free 免费
//limited 限免
//member 会员
'fee' => 'free',
//排序
//latest 最新
//hotest 最热
'order' => 'latest',
//页码
// 'page' => '1',
);
$tag = array(
'Python',
'C/C++',
'Linux',
'Web',
'PHP',
'Java',
'信息安全',
'NodeJS',
'Android',
'GO',
'计算机专业课',
'Spark',
'Hadoop',
'HTML5',
'Scala',
'SQL',
'Ruby',
'R',
'网络',
'Git',
'NoSQL',
'算法',
'Docker',
'Swift',
'汇编',
'Windows',
);