Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View bay1's full-sized avatar
🐍
I may be slow to respond.

bay1

🐍
I may be slow to respond.
View GitHub Profile
@bay1
bay1 / cumtsport.py
Created July 10, 2018 04:55
矿大正方体育选课
# coding=utf-8
import os
import requests
import base64
import rsa
from bs4 import BeautifulSoup as bs
yhm = '' #学号
mm = ''.encode(encoding='utf-8') #密码
"""A parser for HTML and XHTML."""
# This file is based on sgmllib.py, but the API is slightly different.
# XXX There should be a way to distinguish between PCDATA (parsed
# character data -- the normal case), RCDATA (replaceable character
# data -- only char and entity references and end tags are special)
# and CDATA (character data -- only end tags are special).
# -*- coding:utf-8 -*-
#!/usr/bin/python3
import os
import shutil
import time
import pymysql
import requests
from HTMLParser import HTMLParser
from re import sub