Skip to main content

Financial Data Crawler

Project description

fin_crawler

Finalcial Data Crawler

Features

  • Fetch Finalcial data like stock price or future price etc.

Current Support List

  • Taiwan stock price (daily stock price for all stocks)
  • Taiwan stock price (monthly stock price for specific stock)

Example

Supported List

>>> from fin_crawler import FinCrawler
>>> FinCrawler.crawler_list
['tw_stock_price_all', 'tw_stock_price']

Get Crawler Params Example

>>> params_example = FinCrawler.params_example('tw_stock_price_all')
爬取其中一天全部股票的價格
ex:{'date': '20220920'}
>>> params_example
{'date': '20220920'}

Get Data

>>> stock_price = FinCrawler.get('tw_stock_price_all',{'date':'20220920'})
>>> stock_price.keys()
dict_keys(['stock_id', 'stock_name', 'vol', 'trade_num', 'trade_amount', 'open', 'close', 'high', 'low', 'spread', 'date'])
>>> stock_price['stock_id'][0]
'0050'
>>> stock_price['stock_name'][0]
'元大台灣50'
>>> stock_price['open'][0]
112.55
>>> stock_price['close'][0]
113.05

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

fin_crawler-0.0.1.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

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

fin_crawler-0.0.1-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fin_crawler-0.0.1.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for fin_crawler-0.0.1.tar.gz
Algorithm Hash digest
SHA256 80cdd93cb94275ff4d1243ffbe738e3c6c81f4d2db5005b04a9977b607ffc474
MD5 63450279c80930aa92efea9d3dd521a5
BLAKE2b-256 7f83cf8b2d9b72b511cd61b12e4e8101c82aede0ca60ecb800c91eff41ae8290

See more details on using hashes here.

File details

Details for the file fin_crawler-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: fin_crawler-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for fin_crawler-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8c244e1ab1fa96d41127a700c1140196d614664fa072278ae87b8b69f4f6c010
MD5 81b9c5130113b5fffab57e3ec022cf5e
BLAKE2b-256 b0946d39868add469b06d645a86c2da00896edf034d06888b5e2be5ac6fe3569

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