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.
University informal. We cannot take responsibility.
OS: MacOS Catalina
Python: 3.6.9
GoogleChrome: v79
Virtual environment: Pipenv
Execution example of virtual environment:
pipenv shell
>>>
>>> # When leaving
>>> exitOperating environment
- Mac
- Linux(Operation not confirmed)
- Windows
- Python 3.6.x
Things to prepare in advance
- GoogleChrome(version:79)
- Slack's Incoming Webhook API
- Student number and password
# 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
I use Pylint, flake8, mypy.
Execution method:
sh analysis.shIt uses slackweb, a python library.
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.
release
- 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.
- 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
- Using
'{: 02d}: 00'.format ()to simplify the program. - I wrote an English version of README.
- Compatible with GoogleChrome v80.
- Changed
ConnectWeb ()class to execute by with. This eliminated the action of closing the browser.