Life In Tkk
简介
用于厦门大学嘉庚学院TKK的综合信息查询的第三方Python3库。
如何使用
!!注意: 还需安装
firefox,geckodriver,tesseract!!
1. 直接使用
将项目中的life_in_tkk 放入所调用的xx.py的同级目录。
# 需要import
from life_in_tkk import Tkk_html
from life_in_tkk import Tkk_schedule
# ....
import life_in_tkk
2. 基于pip安装使用
使用 pip3 进行下载,之后具体使用方式与直接使用相同。
pip3 install life_in_tkk
相关依赖
版本为开发时使用的版本,未对其他版本进行测试
其他应该也没什么问题
Python3所需的依赖
Python3所需的依赖包,详情可见依赖目录。
其余依赖
- firefox
83.0- geckodriver
0.27.0
- geckodriver
- tesseract
4.1.1
GNU/Linux
Ubuntu/Mint:
sudo apt-get install firefox firefox-geckodriver
sudo apt-get install tesseract tesseract-ocr-eng
Arch Linux/Marjorn:
sudo pacman -S tesseract tesseract-data-eng
sudo pacman -S firefox geckodriver
Windows 10
可以在Github仓库的 UB-Mannheim/tesseract 和 mozilla/geckodriver 中找到对应的 window32/64 安装包,安装即可。
!!注意: 十分重要!!
安装完毕后, 需要将软件的 安装目录 添加到 windows 10 系统的 环境变量(此电脑|属性|高级系统设置|环境变量|Path)中。
依赖目录
均为开发时所用的版本,仅提供参考。
| 库名 | 版本 |
|---|---|
Pillow |
8.0.1 |
selenium |
3.141.0 |
requests |
2.22.0 |
beautifulsoup4 |
4.8.2 |
pytesseract |
0.3.6 |
tesseract |
0.1.3 |
numpy |
1.17.4 |
Plan
- 课表库
- 自动识别验证码
- 调课
- 补课
- 电费查询库
LICENSE
MIT © Mirasire
Release files for life-in-tkk 0.0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| life_in_tkk-0.0.2.2.tar.gz | 9.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| life_in_tkk-0.0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.2 kB
Release files / life_in_tkk-0.0.2.2.tar.gz
| Download URL | life_in_tkk-0.0.2.2.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33a09188bd43de0c2464fa59910c95e9167c48511147909f84251c4f94dc6126
|
|
BLAKE2b-256 checksum How to use checksums |
48695643e9aa933f6bcb1723d2d957a29ac26e256c9b180b7922bde40a574090
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.5
|
Release files / life_in_tkk-0.0.2.2-py3-none-any.whl
| Download URL | life_in_tkk-0.0.2.2-py3-none-any.whl |
|---|---|
| Size | 9.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d1db5f9ea46d80c573218bfdce290a01019eaa0150dd3ec3845c13d7a577479
|
|
BLAKE2b-256 checksum How to use checksums |
e4e49c8545f76eab10f1db0ce0b6a118c5d34c439ac7abff336ea9364d01839f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.5
|