Skip to main content

A Python package for scraping Japanese stock information from various websites.

Project description

Kabupy: A Python Library for Japanese Stock Market Analysis

codecov

Kabupy is a Python library that aims to provide easy and fast access to various data sources and tools for Japanese stock market analysis. Currently it supports fetching technical and fundamental data from the following site.

  • kabuyoho.jp

The following website will be supported in the future version.

Installation

Kabupy is available on PyPI.

pip install kabupy

Usage

To use Kabupy, you need to import it in your Python script or notebook:

import kabupy

Then you can use the various modules and functions provided by Kabupy. For example, you can fetch Stock object of Sony Corporation (6758) from kabuyoho.jp using the kabupy.kabuyoho.stock:

stock = kabupy.kabuyoho.stock(6758)

The Stock object has various properties that you can use to fetch the data you need. Note that stock.report_target corresponds to https://kabuyoho.jp/sp/reportTarget?bcode=6758.

price = stock.report_target.price
ceiling = stock.report_target.per_based_ceiling
floor = stock.report_target.per_based_floor

For more examples and details on how to use Kabupy, please refer to the documentation.

License

Kabupy is licensed under the MIT License. See the LICENSE file for more information.

Disclaimer

Kabupy is provided for educational and research purposes only. It is not intended to be used for any financial or investment decisions. The author of Kabupy is not responsible for any losses or damages caused by using Kabupy. Please use Kabupy at your own risk and discretion.

Kabupy uses web scraping techniques to fetch data from various websites. Web scraping is a method of extracting information from web pages by using programs. Web scraping may involve legal, ethical, and technical issues depending on the target website and the purpose of use. Please be aware of the following points when using Kabupy:

Respect the terms of use of the target website. Some websites may prohibit or restrict web scraping in their terms of use. Violating the terms of use may result in legal actions or penalties from the website owner.

Check if the target website provides an official API. An API is a way of accessing information from a website in a standardized and authorized manner. Using an API is preferable to web scraping as it reduces the risk of violating the law or the terms of use, and it also reduces the load on the target website. Do not overload the target website with excessive requests. Web scraping may cause a heavy load on the target website, which may affect its performance or availability. This may be considered as a denial-of-service attack, which is illegal in some countries. To avoid this, limit the frequency and volume of your requests, and use a reasonable delay between requests.

Do not use the scraped data for illegal or unethical purposes. Web scraping may involve accessing personal or sensitive information from the target website. You must respect the privacy and intellectual property rights of the data owner, and obtain their consent before using or disclosing their data. You must also comply with the relevant laws and regulations regarding data protection and security in your country or region.

By using Kabupy, you agree to follow these precautions and assume full responsibility for your actions. Kabupy does not guarantee the accuracy, completeness, or timeliness of the scraped data, nor does it endorse or support any opinions or recommendations derived from the data. Kabupy is not affiliated with or endorsed by any of the target websites.

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

kabupy-0.0.7.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

kabupy-0.0.7-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file kabupy-0.0.7.tar.gz.

File metadata

  • Download URL: kabupy-0.0.7.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for kabupy-0.0.7.tar.gz
Algorithm Hash digest
SHA256 4f766fe17bafc75ce39f3899b56a089bce607cc7a39d7dc4a6473c7831c3e04c
MD5 74051ed78d749dab6f1396cd2b0847bf
BLAKE2b-256 b7932efd0e88ee305d90e60f504cee8613437062fd843e2481f7ebdb3e1aaea3

See more details on using hashes here.

File details

Details for the file kabupy-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: kabupy-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for kabupy-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 4f7d1e4b0a28b0587e0edbf1d7ed9d2491cd17fd98d7c76bff9e46d00474db52
MD5 1066abe1c929f7edd6cc6f4dd8fb824e
BLAKE2b-256 885c1628400bf03ac0dd695724852fac9d83b0e7aab9f0355e9546664c78efa5

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