Commit Graph

97 Commits

Author SHA1 Message Date
Lost_in_wine
cbcf5ed38a 将内存由单位KB转换为单位M 2016-03-05 21:24:48 +08:00
Lost_in_wine
c2a03c4864 Merge branch 'master' of https://git.coding.net/virusdefender/openvj into Lost_in_wine 2016-03-05 21:23:50 +08:00
ltwy
1ed0cce64b 完成题目扒取和提交接口 2016-03-05 21:23:20 +08:00
virusdefender
7118f0cb61 增加spj参数和时间内存单位 2016-03-05 21:18:32 +08:00
virusdefender
ab18b1bec8 删除无用文件 2016-03-05 20:58:15 +08:00
Lost_in_wine
66703c9cd7 Merge branch 'master' into Lost_in_wine 2016-03-05 20:48:33 +08:00
virusdefender
97995ab8bc Merge branch 'dev'
Conflicts:
	robots/pat.py
2016-03-05 20:47:38 +08:00
Lost_in_wine
af1da2b379 修正编码问题,格式问题,html解码问题
- Hdu的gcc版本过老, "//"无法使用
 - 采集到的html都要调用robots的_clean_html
2016-03-05 20:40:09 +08:00
Lost_in_wine
4d7aced9c5 完成Hduoj提交代码与获取结果的功能 2016-03-05 18:43:27 +08:00
Lost_in_wine
11d2605c43 Merge branch 'master' of https://git.coding.net/virusdefender/openvj into Lost_in_wine 2016-03-05 17:10:02 +08:00
virusdefender
01483a1b6a 修复正则中不正确的转义 2016-03-05 16:57:57 +08:00
ltwy
c177a25df6 随手一保存 2016-03-05 16:20:30 +08:00
virusdefender
f5f4a35c00 按照父类修改部分参数;pat开始使用https,修改旧url 2016-03-05 15:53:50 +08:00
virusdefender
0b0a2cbd85 父类中修改部分参数
- 获取题目详情的时候增加返回题目的submit_url,id参数使用原始的id,尤其是杭电等oj,获取提交结果会用到
 - submit方法增加了origin_id参数,url参数改名为submit_url
 - get_result方法增加username参数
2016-03-05 15:48:08 +08:00
ltwy
432a95945a Merge branch 'master' into ltwy 2016-03-05 13:36:51 +08:00
Lost_in_wine
347900417e Merge branch 'master' into Lost_in_wine 2016-03-05 13:17:59 +08:00
virusdefender
43c5cb2825 Merge branch 'master' into dev 2016-03-05 10:05:11 +08:00
virusdefender
99cace36c7 增加全局content-type和apikey验证 2016-03-05 09:48:42 +08:00
virusdefender
775017fd7c fix typo 2016-03-05 09:38:18 +08:00
ltwy
ec8b9941b2 do some function and test 2016-03-04 23:31:24 +08:00
virusdefender
55b37a74d7 增加服务器端的框架和数据库配置 2016-03-04 19:14:56 +08:00
ltwy
67d5a409c7 add new function 2016-03-04 17:02:07 +08:00
ltwy
32a3e40923 modify some function 2016-03-04 15:40:32 +08:00
ltwy
0dd93ba70f create zoj.py 2016-03-04 15:18:42 +08:00
ltwy
8960375001 test 2016-03-04 15:13:20 +08:00
virusdefender
6773082bfd 增加codeforces的题目详情的正则表达式 2016-03-03 17:46:32 +08:00
virusdefender
4dddbe59f9 增加clean_html的父类方法 2016-03-03 17:37:05 +08:00
virusdefender
8e89837ba0 创建CodeForces的部分逻辑 2016-03-03 14:43:55 +08:00
Lost_in_wine
4dec3affb4 修正hdoj爬虫部分bug 2016-03-02 22:06:08 +08:00
Lost_in_wine
72d11bb59a 提交hdoj爬取题目的代码 2016-03-02 21:51:54 +08:00
virusdefender
9cbc11c15f 增加部分docstring 2016-03-02 16:41:14 +08:00
virusdefender
7dba05104e 删除main.py 2016-03-02 15:21:25 +08:00
virusdefender
d1e3d373ca 增加html实体解码 2016-03-02 13:21:34 +08:00
virusdefender
7790489a2d pat在编译错误的时候也返回编译错误详情 2016-03-02 12:32:57 +08:00
virusdefender
ec98851272 增加pat获取提交结果的逻辑 2016-03-02 11:36:14 +08:00
virusdefender
3384a91327 增加pat提交题目的代码
同时增加了获取csrf token的逻辑
2016-03-01 20:56:33 +08:00
virusdefender
2171d1cebe 增加problem_id 2016-03-01 17:12:45 +08:00
virusdefender
ad85c25fe8 提取并整理正则匹配的数据 2016-03-01 17:03:36 +08:00
virusdefender
80315912e8 增加clean_html方法 2016-03-01 16:32:51 +08:00
virusdefender
6f0de5cc42 增加对响应的http status code的判断 2016-03-01 14:47:06 +08:00
virusdefender
b209ec8982 修改正则中的部分错误 2016-03-01 14:38:54 +08:00
virusdefender
bd3a032fa4 pat完成demo版本
还存在的问题:
 - 适配中英文题目版本
 - 返回的数据格式
2016-03-01 13:08:48 +08:00
virusdefender
bdd0c9620e 请求库增加重试 2016-03-01 09:54:32 +08:00
virusdefender
ae5e10cfb0 增加重定向选项;修改包导入方式 2016-03-01 09:35:59 +08:00
virusdefender
eca33d19c4 增加cookies支持 2016-03-01 00:35:36 +08:00
virusdefender
430f01a038 创建了代码框架 2016-03-01 00:20:00 +08:00
virusdefender
0b9e689e42 init 2016-02-29 22:47:16 +08:00