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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tuat-feed-0.1.5.tar.gz
  • Upload date:
  • Size: 3.3 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.5.tar.gz
Algorithm Hash digest
SHA256 73f8a6cadae8f69e035a34960bed6ebd7eed5398a92e8e214fc4448887c267ac
MD5 c02786a840685f2871526111b696b41a
BLAKE2b-256 cf9452d13b93f121ff5b28a250ddf47555d78653f141dd690635344dfa39dda2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tuat_feed-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.8 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b0da7ceb7a48015639b59e6074895272b2ed9fe6ce37648b0bf9d25cc626447a
MD5 1e846cf788c14850c3c5c3ddc717cfc2
BLAKE2b-256 735eb9af38c7249358cad5249ef60f630a2759bc6f5586576e7ac7940cd5ecb3

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