kabupy.kabuyoho package#
Submodules#
kabupy.kabuyoho.kabuyoho module#
Scraper for kabuyoho.jp
- class kabupy.kabuyoho.kabuyoho.Stock(website: Kabuyoho, security_code: str | int)[source]#
Bases:
objectStock object for kabuyoho.jp
- property report_news: ReportNews#
Report news page object
- property report_target: ReportTarget#
Report target page object
- property report_trend_signal: ReportTrendSignal#
Report trend signal page object
kabupy.kabuyoho.kabuyoho_webpage module#
Base class for webpage
- class kabupy.kabuyoho.kabuyoho_webpage.KabuyohoWebpage(load: bool = True)[source]#
Bases:
WebpageBase class for kabuyoho webpage
- property earnings_release_date: datetime | None#
Earnings release date, 決算発表日.
- property name: str | None#
Name of the stock, 銘柄名.
- property price: Money | None#
Price of the stock, 価格.
- security_code: str#
kabupy.kabuyoho.report_dps module#
Scraper for https://kabuyoho.jp/sp/reportDps
- class kabupy.kabuyoho.report_dps.ReportDps(website: Website, security_code: str | int)[source]#
Bases:
KabuyohoWebpageReport target page object.
- property actual_dividend_yield: float | None#
Actual dividend yield(実績配当利回り).
- property dividend_history: list[dict]#
Dividend history(一株配当推移).
Returns: list[dict]: List of dividend history.
Note: The format of the list is as follows: [ {“date”: datetime(2021, 3, 1), “dividend”: Money(“55.0”, “JPY”)}, {“date”: datetime(2022, 3, 1), “dividend”: Money(“65.0”, “JPY”)}, {“date”: datetime(2023, 3, 1), “dividend”: Money(“75.0”, “JPY”)}, {“date”: datetime(2024, 3, 1), “dividend”: None}, ]
- property dividend_payout_ratio: float | None#
Dividend payout ratio, 前期配当性向.
Returns: float | None: Dividend payout ratio.
- property expected_dividend_yield: float | None#
Expected dividend yield, 予想配当利回り.
kabupy.kabuyoho.report_news module#
Scraper for https://kabuyoho.jp/sp/reportDps
- class kabupy.kabuyoho.report_news.KabuyohoNewsWebpage(website: Website, security_code: str | int, category: int)[source]#
Bases:
KabuyohoWebpageKabuyoho news page object.
- get_links(max_page: int | None = 1, time_sleep: float = 1) list[dict][source]#
list of links.
- Parameters:
max_page (int | None, optional) – Max page number. Defaults to 1. If None, all pages are scraped.
- Returns:
List of news.
- Return type:
list[dict]
Note
The example of the return value is as follows:
[ { "date": datetime(2021, 3, 1, 12, 34), "title": "FooBar", "category": "決算", "weather": "wthr_clud", "url": "https://kabuyoho.jp/sp/example" }, ]
- class kabupy.kabuyoho.report_news.ReportNews(website: Website, security_code: str | int)[source]#
Bases:
KabuyohoWebpageReport news page object.
- property analyst_evaluation: KabuyohoNewsWebpage#
Analyst evaluation page in a report news page.
- property analyst_prediction: KabuyohoNewsWebpage#
Analyst prediction page in a report news page.
- property flash_report: KabuyohoNewsWebpage#
Flash report page in a report news page.
- property market_report: KabuyohoNewsWebpage#
Market report page in a report news page.
kabupy.kabuyoho.report_target module#
Scraper for https://kabuyoho.jp/sp/reportTop
- class kabupy.kabuyoho.report_target.ReportTarget(website: Website, security_code: str | int)[source]#
Bases:
KabuyohoWebpageReport target page object.
- property analyst_count: int | None#
Average count, レーティング(人数).
- property analyst_rating_composition: dict[str, int]#
Analyst rating composition, レーティング(点数の構成).
- Returns:
- key: rating(“1”, “2”, “3”, “4”, and “5”),
which respectively means “strong sell(弱気)”, “sell(やや弱気)”, “hold(中立)”, “buy(やや強気)”, and “strong buy(強気)” value: the number of analysts
- Return type:
dict[str, int]
- property average_analyst_rating: float | None#
Average analyst rating, レーティング(平均).
- property bps: Money | None#
Book-value per share, BPS(実績).
- property ceiling_per: float | None#
PER when the stock price is at per_based_ceiling, 下値目途(PER基準)の時のPER.
- property forward_eps: Money | None#
Forward earnings per share, EPS(予想).
- property forward_eps_by_analysts: Money | None#
Forward earnings per share in twelve months based on analysts estimates, EPS(アナリスト12ヶ月後予想).
- property forward_per: float | None#
Forward price to earnings ratio based on company estimates, PER(会予).
- property forward_per_by_analysts: float | None#
Forward PER in twelve months based on analysts estimates, PER(アナリスト12ヶ月後予想).
- property pbr: float | None#
Price to book ratio, PBR.
- property pbr_based_ceiling: Money | None#
PBR based ceiling price of the stock, 上値目途(PBR基準).
- property pbr_based_fair_value: Money | None#
PBR based fair value, 理論株価(PBR基準).
- property pbr_based_floor: Money | None#
PBR based floor price of the stock, 下値目途(PBR基準).
- property pbr_ceiling: float | None#
PBR when the stock price is at pbr_based_ceiling, 下値目途(PBR基準)の時のPBR.
- property pbr_fair: float | None#
PBR when the stock price is at pbr_based_fair_value, 理論株価(PBR基準)の時のPBR.
- property pbr_floor: float | None#
PBR when the stock price is at pbr_based_floor, 下値目途(PBR基準)の時のPBR.
- property per_based_ceiling: Money | None#
PER based ceiling price of the stock, 上値目途(PER基準).
- property per_based_fair_value: Money | None#
PER based fair value, 理論株価(PER基準).
- property per_based_floor: Money | None#
PER based floor price of the stock, 下値目途(PER基準).
- property per_fair: float | None#
PER when the stock price is at per_based_fair_value, 理論株価(PER基準)の時のPER.
- property per_floor: float | None#
PER when the stock price is at per_based_floor, 下値目途(PER基準)の時のPER.
- property price_level_to_target: str | None#
Current price level to target price, 目標株価に対する現在の価格が割高か割安か.
- property price_target: Money | None#
Price target, 目標株価(アナリストが発表した目標株価の平均値).
- property price_target_ratio_to_current_price: float | None#
(price target) / (current price) in %, 目標株価と現在の株価の乖離率.
- property price_target_ratio_to_previous_week: float | None#
Price target ratio to previous week in %, 目標株価の対前週変化率.
kabupy.kabuyoho.report_top module#
Scraper for https://kabuyoho.jp/sp/reportTop
- class kabupy.kabuyoho.report_top.ReportTop(website: Website, security_code: str | int)[source]#
Bases:
KabuyohoWebpageReport target page object.
- property actual_pbr: float | None#
Actual PBR, PBR(実).
- property actual_roa: float | None#
Actual ROA, ROA(実).
- property actual_roe: float | None#
Actual ROE, ROE(実).
- property analyst_company_performance_forecast_comparison: str | None#
Analyst forecast company forecast comparison, 業績予想 アナリスト予想 会社予想との比較.
- property business_category: str | None#
Business category, 事業内容の業種.
- property business_description: str | None#
Business description, 事業内容の説明.
- property consensus_expected_ordinary_profit: Money | None#
Market Capitalization, 予想経常利益(コ).
- property current_term_company_performance_forecast: str | None#
Current term company performance forecast, 業績予想 会社予想 今期見通し.
- property equity_ratio: float | None#
Equity ratio, 自己資本率.
- property expected_dividend_yield: float | None#
Expected dividend yield, 配当利回り(予).
- property expected_ordinary_profit: Money | None#
Market Capitalization, 予想経常利益(予).
- property expected_per: float | None#
Expected PER, PER(予).
- property income_statement_adjustment: Money | None#
Income statement adjustment, 調整額.
- property income_statement_amount: Money | None#
Income statement amount, 損益計算書計上額.
- property market_capitalization: Money | None#
Market Capitalization, 時価総額.
- property news_links: list[str]#
News links, ニュースのリンクのリスト.
- property price_level_to_pbr_based_theoretical_price: str | None#
Price level to PBR based theoretical price, PBR基準の理論株価に対する現在の価格が割高か割安か.
- property price_level_to_per_based_theoretical_price: str | None#
Price level to PER based theoretical price, PER基準の理論株価に対する現在の価格が割高か割安か.
- property price_level_to_target: str | None#
Current price to target price, 目標株価に対する現在の価格が割高か割安か.
- property products: list[str] | None#
Products, 取扱い商品.
- property risk_on_relative_index: str | None#
Risk on relative index, リスクオン相対指数.
- property segment_sales_composition: list[dict] | None#
Segment sales composition, セグメント売上構成.
- property signal: str | None#
Signal, シグナル.
- property target_price: Money | None#
Target Price, 目標株価.
kabupy.kabuyoho.report_trend_signal module#
Scraper for https://kabuyoho.jp/sp/reportTrendSignal
- class kabupy.kabuyoho.report_trend_signal.ReportTrendSignal(website: Website, security_code: str | int)[source]#
Bases:
KabuyohoWebpageReport target page object.
- property coincident_index: float | None#
リスクオン相対指数>一致指数
- Type:
Coincident index
- property leading_index: float | None#
リスクオン相対指数>先行指数
- Type:
Leading index
- property risk_on_relative_index_level: str | None#
リスクオン相対指数>水準
- Type:
Relative index
- property trend_signal: str#
トレンドシグナル>今日のトレンドシグナル.
- Type:
Trend signal
Module contents#
kabupy.kabuyoho module.