Fetch UTokyo Online Course Catalogue.
Project description
Python package to fetch UTokyo Online Course Catalogue.
Installation
Install ut-course-catalog using pip:
pip install ut-course-catalog
Features
Fetches UTokyo Online Course Catalogue.
Usage
Minimum:
#1. import
import ut_course_catalog.ja as utcc
#2. create a UTCourseCatalog instance
async with utcc.UTCourseCatalog() as catalog:
#3. fetch search results
results = await catalog.fetch_search(utcc.SearchParams(keyword="python"))
#4. print the results
print(results)
#3. fetch details
detail = await catalog.fetch_detail("30001", 2022)
#4. print the results
print(detail)
With pandas:
import pandas as pd
import ut_course_catalog.ja as utcc
async with utcc.UTCourseCatalog() as catalog:
results = await catalog.fetch_search(utcc.SearchParams(keyword="python", 譖懈律=utcc.Weekday.Mon))
# convert to pandas DataFrame
df = pd.DataFrame([x._asdict() for x in results.items])
display(df)
detail = await catalog.fetch_detail("30001", 2022)
# convert to pandas DataFrame (not Series, because it is not pretty)
df = pd.Series(detail._asdict()).to_frame()
display(df)
For more information, see the documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ut_course_catalog-0.1.0.tar.gz
(16.4 kB
view hashes)
Built Distribution
Close
Hashes for ut_course_catalog-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ed9b21a462961a9d89318f25edefa1fcd8d4a42d9f5d7868a1ea410b2840373 |
|
MD5 | 94a132f94d498d19f762d147f75175ff |
|
BLAKE2b-256 | 06a2dde652be0c1fd93358713a17f1e6b8e90d0bb6c293e59313920a362aeb6d |