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
# -*- coding:utf-8 -*- | |
#!/usr/bin/python3 | |
import os | |
import shutil | |
import time | |
import pymysql | |
import requests | |
from HTMLParser import HTMLParser | |
from re import sub |
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
"""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). | |
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
# coding=utf-8 | |
import os | |
import requests | |
import base64 | |
import rsa | |
from bs4 import BeautifulSoup as bs | |
yhm = '' #学号 | |
mm = ''.encode(encoding='utf-8') #密码 |