Skip to main content

Yahoo Finance Japan stock forum comments and BBS rankings in your terminal

Project description

yfcomment

PyPI version Python versions License: MIT

Yahoo Finance Japan stock forum comments (掲示板) and BBS rankings in your terminal — no more scrolling a UI that shows 3 comments per screen.

yfc 285A                 # latest 20 comments, compact table
yfc 285A -n 50           # more comments
yfc 285A --no-user       # hide usernames
yfc 285A --no-votes      # hide はい/いいえ counts
yfc 285A --no-poll       # hide the thread sentiment poll header
yfc 285A --full          # untruncated comment text
yfc 285A --json          # JSON to stdout: {"code", "poll", "comments"}

yfc rank                 # 掲示板投稿数ランキング: top 20, daily
yfc rank -n 60 -w        # top 60 weekly (paginates automatically)
yfc rank -m --json       # monthly, JSON: {"term", "entries"}

Install

uv tool install yfcomment   # or: pip install yfcomment

Python API

from yfcomment import get_forum, get_comments, get_ranking

forum = get_forum("285A", limit=20)
print(forum.poll)                # {"強く買いたい": 26.83, "買いたい": 2.44, ...} or None

for c in get_comments("285A", limit=20):
    print(c.posted_at, c.helpful_yes, c.helpful_no, c.text)

for e in get_ranking("weekly", limit=10):
    print(e.rank, e.code, e.name, e.price)

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

yfcomment-0.2.0.tar.gz (27.9 kB view details)

Uploaded Source

Built Distribution

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

yfcomment-0.2.0-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file yfcomment-0.2.0.tar.gz.

File metadata

  • Download URL: yfcomment-0.2.0.tar.gz
  • Upload date:
  • Size: 27.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for yfcomment-0.2.0.tar.gz
Algorithm Hash digest
SHA256 389b2f9e2243ad7019fbbfb8cfa203ef4e275bb197be60714c4fed568a5f08d4
MD5 45c0c0bef292be52ecd20c9bdeb099db
BLAKE2b-256 1345349de3c6840b6bbf227759bc11a5ce440496e4a8ed9cd59ba6d95525ce41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yfcomment-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for yfcomment-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0743d3cd53d9a8cbb0daa671ac6d24b75bb7e4a258271acd1989066a9e071fd
MD5 c4df9b0994aa6f0e0256bb4fb2d48c06
BLAKE2b-256 691273d4254dedacb88f1061e84f1cba687faefe33ec371447c802400416b493

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