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.

Source Distribution

scuCourseDownloader-0.0.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scuCourseDownloader-0.0.2-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file scuCourseDownloader-0.0.2.tar.gz.

File metadata

  • Download URL: scuCourseDownloader-0.0.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.0 CPython/3.6.6

File hashes

Hashes for scuCourseDownloader-0.0.2.tar.gz
Algorithm Hash digest
SHA256 720c8acd21319a316004595bee98beac8805c133503ced4c8069f796b3a17cde
MD5 13ff47c0fd312920e5474b7e0b13aa19
BLAKE2b-256 e3de256886911fd82c4a59c72a54fe54830d8864ab779c78887551ac966b1663

See more details on using hashes here.

File details

Details for the file scuCourseDownloader-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: scuCourseDownloader-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.0 CPython/3.6.6

File hashes

Hashes for scuCourseDownloader-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1958866351c8f96cb9aa1b15e950d30fa7789804b40ee065c1c564a3c60793b7
MD5 3aef9b8ff89516ee1ab239f5124e0256
BLAKE2b-256 4a711039e9174abfe1fa592673792a2dfee9e817add3ea06b7a5125f594d39ce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page