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: (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


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.2.tar.gz (3.8 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.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tuat-feed-0.2.2.tar.gz
  • Upload date:
  • Size: 3.8 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

Hashes for tuat-feed-0.2.2.tar.gz
Algorithm Hash digest
SHA256 a13dbe74f19cf53cddbe96ddc0a9b8d5f688197e174aeb1f9e70d303793b9035
MD5 dd0cd9532dfc1ea130c84cf8e540f71b
BLAKE2b-256 ac7289b4f63285adaa86c9301871bd9c53504045fb5bc8719cd46252f734651a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tuat_feed-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 4.4 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

Hashes for tuat_feed-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b5de5275eaaab5fc641d2119e974a54770c5046dea833af49355581774c72436
MD5 3e442e99ed95e8666bd629532596f1b8
BLAKE2b-256 87f5c28e5212f6294529052eeb802c64cea4d93f7620dee24f6ae2ec3cff7c44

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