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.1.4.tar.gz (3.2 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.1.4-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tuat-feed-0.1.4.tar.gz
  • Upload date:
  • Size: 3.2 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.1.4.tar.gz
Algorithm Hash digest
SHA256 af9db1e16dabb831d9abfb83b02d4f8d4e40cd394aced9c2513fca15a284a823
MD5 a8fd7ca085b353b04625d7ac7d301b0b
BLAKE2b-256 277618d78f9ca93e0c402cfe3ed74c1b33c28719ea4796e1b449a0e2542646e7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tuat_feed-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.7 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.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a2cbb2c14739ab40146b8e0b8644b2a6a365383ae4d3ebb7911a977ab5fe3c10
MD5 cf601342a31a2bffd7b800c9d7a33ae8
BLAKE2b-256 7ba0bf54f1bc6e700dea6c84feb9243edbc8f388ab72cec717766d6109f3c672

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