Skip to main content

api to download scu courses

Project description

四川大学课表器api


运行环境:python3.6

# 需要第三方模块,包:requests,lxml,openpyxl
#如果是anaconda环境用conda命令
pip install lxml
pip install requests
pip install openpyxl

使用

# 安装
pip install scuCourseDownloader
# 卸载
pip uninstall scuCourseDownloader
#使用示例
import scuCourseDownloader

scuCourseDownloader.save_to_excel("2018-2019-2-1")

注意:

  • save_to_excel,query函数参数的格式为 2018-2019-2-1,表示18年到19年第二学期 格式必须严格按以上格式
  • 程序运行完后会在当前目录在生成一个course.xlsx文件,就是课表文件了
  • 由于没有采用并发且请求频率限制问题,程序的运行时间大概在10分钟左右,建议做点其他事哦

bug,程序交流请发邮件到:w2239559319@outlook.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for scuCourseDownloader, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size scuCourseDownloader-0.0.2-py3-none-any.whl (9.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size scuCourseDownloader-0.0.2.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page