Skip to content
This repository was archived by the owner on Feb 3, 2023. It is now read-only.

Latest commit

 

History

History
128 lines (83 loc) · 3.27 KB

File metadata and controls

128 lines (83 loc) · 3.27 KB

class-cancellation-monitoring

python riposize lastcommit
fllowme twitter

language: 🇯🇵 🇺🇸

Description

Obtains information on classes and supplementary courses every hour from 6:00 AM to 21:00 AM from UNIVERSAL PASSPOR (UNIPA), the university bulletin board, and Tweet to Twitter account sends it to Slack's bot when a new class or supplementary course information is posted.

warning

University informal. We cannot take responsibility.

Development environment

OS: MacOS Catalina
Python: 3.6.9
GoogleChrome: v79

Virtual environment: Pipenv
Execution example of virtual environment:

pipenv shell
>>>
>>> # When leaving
>>> exit

move

Operating environment

  • Mac
  • Linux(Operation not confirmed)
  • Windows
  • Python 3.6.x

Things to prepare in advance

# Install Pipenv
pip install pipenv

# Install dependencies using Pipenv
pipenv install

# Run
pipenv run start

# Stop is [⌘ + C] or [CONTROL + C]
# To stop the virtual environment, type `exit` or [⌘ + D]

If you have any questions, go to Twitter DM
twitter

Static analysis of code

I use Pylint, flake8, mypy.
Execution method:

sh analysis.sh

Slack Incoming Webhook

It uses slackweb, a python library.

For more information

How to get UNIPA

It uses python libraries selenium and chromedriver-binary.

When using chromedriver-binary, you need the appropriate GoogleChrome for that version. Currently, Chrome80 is supported. If you want to run on another version,

pipenv install chromedriver-binary=={version}

Please install a new library using.

Reference 1
Reference 2

Change log

1.0.0

release

1.0.1

  • Fixed the problem that an error occurs when there is no file in the directory when the directory is specified.
  • Corresponds to the acquisition of information on canceled classes and supplementary classes at Hatoyama campus.
  • Correct typos.
  • Added README description.

1.0.2

  • Resolve issues.
    • If there is no directory at the specified destination, ask the user whether to create a new one
  • Changed because the value of id of the cancellation / supplementary information of unipa has changed

1.0.3

  • Using '{: 02d}: 00'.format () to simplify the program.
  • I wrote an English version of README.

1.0.4

  • Compatible with GoogleChrome v80.

1.0.5

  • Changed ConnectWeb () class to execute by with. This eliminated the action of closing the browser.