Skip to main content

A library to help tkk(xujc)'s student feel relax on their daliy campus life

Project description

Life In Tkk

github github github

简介

用于厦门大学嘉庚学院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所需的依赖包,详情可见依赖目录

其余依赖

  • firefox83.0
    • geckodriver0.27.0
  • tesseract4.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/tesseractmozilla/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

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

life_in_tkk-0.0.2.1.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

life_in_tkk-0.0.2.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file life_in_tkk-0.0.2.1.tar.gz.

File metadata

  • Download URL: life_in_tkk-0.0.2.1.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for life_in_tkk-0.0.2.1.tar.gz
Algorithm Hash digest
SHA256 608aac3918d26b3d78a29c530bd627c80927fbfe14222f7af5790422260342ca
MD5 8b3f1dbfeff2f583c391104556fc3186
BLAKE2b-256 01dc75b250584f50e7d3ec153fc24dbc38df9ef84f57a144ef340a9b22b1c2cf

See more details on using hashes here.

File details

Details for the file life_in_tkk-0.0.2.1-py3-none-any.whl.

File metadata

  • Download URL: life_in_tkk-0.0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 9.7 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for life_in_tkk-0.0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 144a50ef9a58507f8758eb2b41965fe462f69d3c624a2ac3f20be85ef92e4098
MD5 4d252ea412aa39d1d2424856453c93dd
BLAKE2b-256 dfe90fd817278545287502b3bdcbb1eb43fa99e6f1be9f2412408b5ca0bb0d27

See more details on using hashes here.

Supported by

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