Skip to main content

A Python library that encapsulates various PTT functions.

Project description

libpttea

A Python library that encapsulates various PTT functions.

GitHub last commit GitHub License

📖 Description

libpttea 是一個 Python library,目的在封裝各種 PTT 功能操作,旨在輔助開發 PTTea APP 專案的 PTT 功能函式庫。

✨ Supported

  • login
  • logout
  • system_info
  • favorite_list
  • post_list
  • get_post
  • in development...

🎨 Usage

import libpttea

PTT_ACCOUNT = "PTT ID"
PTT_PASSWORD = "PTT 密碼"
lib_pttea = libpttea.login(PTT_ACCOUNT,PTT_PASSWORD)

system_info = lib_pttea.system_info()

lib_pttea.logout()

print(system_info)
# ['您現在位於 批踢踢實業坊 (140.112.172.11)', '系統負載: 輕輕鬆鬆', 
# '線上人數: 30602/175000', 'ClientCode: 02000023', '起始時間: 09/23/2024 17:49:24', 
# '編譯時間: Sun Jun  4 23:41:30 CST 2023', '編譯版本: https://github.com/ptt/pttbbs.git 0447b25c 8595c8b4 M']

📜 License

GitHub License

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

libpttea-0.0.1.tar.gz (14.9 kB view details)

Uploaded Source

File details

Details for the file libpttea-0.0.1.tar.gz.

File metadata

  • Download URL: libpttea-0.0.1.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for libpttea-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ec25bea5639c2da40ffeba0183a8ebff1d2b6c740024aa9fc1882b3eb4576ff5
MD5 47d5efd65d86ecb8345815a87a070d53
BLAKE2b-256 bb1b815fac258b8844548bf93ca1bf30633527d216cebaa913c206aa693d4e37

See more details on using hashes here.

Supported by

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