Skip to main content

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_start: date  # 公開期間(開始)
    show_date_end: 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


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.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tuat_feed-0.2.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file tuat-feed-0.2.0.tar.gz.

File metadata

  • Download URL: tuat-feed-0.2.0.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.8.0-1042-azure

File hashes

Hashes for tuat-feed-0.2.0.tar.gz
Algorithm Hash digest
SHA256 34e44c474bd2706343f1741bc8fd8d1c2ab6df42ab1d4c7efa891eeefed20254
MD5 f8e65463aebe1e7f63a8bb86296dd499
BLAKE2b-256 bd28a0bcf4b3a61f12013359852d264707fa11a94cf0be91c86119cb0f2f5f89

See more details on using hashes here.

File details

Details for the file tuat_feed-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: tuat_feed-0.2.0-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.8.0-1042-azure

File hashes

Hashes for tuat_feed-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c3343d7fe60e85e9124fe68aaa766300b121be123873951a02f119bd173c534
MD5 2aedd8927c95b4eab7dd8c7c5aba726d
BLAKE2b-256 d66b5c31863e53c08e1708645c7bc852260a76ee7a72391ca40d6328bdea3f79

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page