名古屋大学運動施設予約システムから活動日を取得しGoogle Calendarに追加するプログラム
Get activity dates from Nagoya Univ. sports facility reservation system and add it to Google Calendar.
Support : Windows , OSX
Google Calendar及びapiが利用可能である
Google Calendar and api enabled
Python2
Python3(Recommendation)
- pip package management tool
- BeautifulSoup
- pytz
- selenium
- google-api-python-client
日本語 -> Developers.IO
English -> G Suite
$ pip install --upgrade beautifulsoup4
$ pip install --upgrade pytz
$ pip install --upgrade selenium
$ pip install --upgrade google-api-python-client
Google Chrome及びChromeDriverのインストール
Install Google Chrome and ChromeDriver
Google Chrome
ChromeDriver
環境変数PATHの設定を必ず行って下さい
It is essential to set PATH environment variable.
[clone]
$ https://github.com/kei1107/NagoyaUniv_ActivityCalendar
[download]
click 'Clone or download' -> 'Download ZIP'
client_secret.jsonファイル(2. Setting Prerequisites-Google Account and apiで使用したもの)を "jsonフォルダ"に加えて下さい。
Plese add client_secret.json(used in 2.Setting Prerequisites-Google Account and api) to "json folder"
config/settings.iniの情報を修正して下さい ※保存形式 : UTF-8
Please modify information in config/settings.ini ※Save style : UTF-8
$ python actapi.py
プログラムを実行すると、名古屋大学運動施設予約システムにアクセスし、
当月分 の予定に関して活動日を取得、カレンダーへの書き込みを行います。
When you run this program, this program access Nagoya Univ. sports facility
reservation system, and get activity schedules for this month.
Then, the data is written to calendar.