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
from lxml import etree | |
# 解析本地文件 etree.parse() | |
# 解析服务器返回信息 etree.HTML() | |
import urllib.request # 调用urllib库 | |
import csv # 调用csv库,用于写入 | |
import time | |
# 数据采集:http://www.instu.org/da101/zhanshi.php | |