Unofficial library for fetching the feed for TUAT
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
(非公式)TUAT掲示板ライブラリ
インストール
python>= 3.7
$ pip install tuat-feed
使い方
>>> import tuat_feed
>>> feed = tuat_feed.fetch()
>>> len(feed)
40
>>> feed[0]
Post(...)
fetch
fetch()を使って投稿情報をダウンロードします。結果はPostの配列になっています。
Post
Postの定義はかんたんに書くと次のようになっています。
class Post:
post_id: int # 投稿ID(内部処理用)
title: str # タイトル
description: str # 本文
update_date: date # 最終更新日
show_date: (date, date) # 公開期間
author: str # 担当者
origin: str # 発信元
category: str # カテゴリー
attachment: List[Attachment] # 添付ファイル
other: Dict[str, str] # その他のフィールド
Attachment
Attachmentの定義はかんたんに書くと次のようになっています。
class Attachment:
name: str # ファイル名
url: str # URL
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
tuat-feed-0.2.1.tar.gz
(3.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tuat-feed-0.2.1.tar.gz.
File metadata
- Download URL: tuat-feed-0.2.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.9.7 Linux/5.11.0-1020-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d42e8f9d44ac8fd6d117113f50a26aa37df9c588c7e8e910eaf74162fdc1b92d
|
|
| MD5 |
2f775c69f6decea1cd1ae77abc10602d
|
|
| BLAKE2b-256 |
14e869a0c45e83a3dc5b2fa605809109b3add1ffafea633154e798c9c559c8a8
|
File details
Details for the file tuat_feed-0.2.1-py3-none-any.whl.
File metadata
- Download URL: tuat_feed-0.2.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.9.7 Linux/5.11.0-1020-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f232e8e2b7245f91507a5d78929e4fca7310ffdf32a7e5bc1577ff5a63d81fc
|
|
| MD5 |
1c896f15db9db5d2da2159236b812d09
|
|
| BLAKE2b-256 |
5d8caf6fd45477c6e3701ea495a9f585b5eb8708bfc69c2f796ee0fbe0263b61
|