- 更新时间: 2014-05-05
- 数据格式均为
JSON
- 接口使用说明:
- 由于中文验证码的存在, 接口或许有点另类, 希望见谅.
- 验证类接口需要登录后才能使用, 如果仅查询单项信息推荐使用下面的成绩类或课表类接口
- 开发者在使用接口前先通过邮件联系作者 索要
accesstoken
, 将其放入请求header
中. - 次数限制
1000次/小时
, 防止端口被恶意使用, 如果配额不够请联系作者.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
__author__ = "zhwei" | |
# 使用imgur的api上传图片并返回url | |
import urllib2 | |
import urllib | |
import json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
import os | |
import datetime | |
# TARGET_FILE = os.getcwd() + "/_posts/" | |
ROOT_FILE = "/home/zhwei/apps/jekyll_blog/" | |
TARGET_FILE = ROOT_FILE + "_posts/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# import os | |
import md5 | |
import bottle | |
#HTML = "output" | |
HTML = "/home/zhwei/blog" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from fabric.colors import green, red | |
from fabric.contrib.console import confirm | |
from fabric.api import run, env, cd, put, sudo, abort | |
# configs | |
env.user = 'username' | |
env.hosts = ['IP:PORT',] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import re | |
import requests | |
data = {"post_xuehao": "111111789"} | |
page = requests.post('http://xkzx.sdut.edu.cn/cjcx/zcjcx_list.php', data=data) | |
par = re.compile('<td scope="col" align=".*" valign="middle" nowrap> (.*?)</td>') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import re | |
import sys | |
import time | |
import threading | |
try: | |
import requests | |
except ImportError: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# 百姓网开放APIv2 Python版SDK | |
# 支持 Python2.7+ | |
# Author: [email protected] | |
# Date: 2014-08-13 | |
# 开发文档:http://api.baixing.com.cn/developer/ | |
import json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python-dev python3-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Rename: baixing.log-1420614280.gz => baixing.log-20150107-150440.gz | |
import os | |
import datetime | |
to_date = lambda x: datetime.datetime.fromtimestamp(int(x)).strftime('%Y%m%d-%H%M%S') | |
file_list = os.listdir(".") |
OlderNewer