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 Docs Open In Colab

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.1.tar.gz (31.3 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.1-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yfcomment-0.2.1.tar.gz
  • Upload date:
  • Size: 31.3 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.1.tar.gz
Algorithm Hash digest
SHA256 9067955470f74f3dfbe17bf55b52f90d9af16c43475626d052541e30bba7c125
MD5 6068012e0030a5a6b9073543ff6f0b39
BLAKE2b-256 5027657b1607123e6ba100766b30b51b2e82776081f17234430f9de95399c625

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yfcomment-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 12.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dda6a3c3c8fd4333281ba92001be81132283bf7c5bd6c3422a698319384a86c4
MD5 8b8e0bd332f88a0f124bd2fb7e2d1d25
BLAKE2b-256 7f7dcf4a7c836ca3b62fc2187a9af80591c55c8b6db4bd91805a0c73c9193ace

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