barchart-0.1.4


توضیحات

The Unofficial API for barchart.com
ویژگی مقدار
سیستم عامل -
نام فایل barchart-0.1.4
نام barchart
نسخه کتابخانه 0.1.4
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Andrew Garcia
ایمیل نویسنده tke578@gmail.com
آدرس صفحه اصلی http://github.com/tke578/barchart
آدرس اینترنتی https://pypi.org/project/barchart/
مجوز MIT
# barchart *The Unofficial API for barchart.com* [![Build Status](https://travis-ci.org/tke578/barchart.svg?branch=master)](https://travis-ci.org/tke578/barchart) [![PyPI version](https://badge.fury.io/py/barchart.svg)](https://badge.fury.io/py/barchart) [![Python version](https://img.shields.io/badge/Python-3.8-blue.svg)](https://shields.io/) [![Downloads](https://pepy.tech/badge/barchart)](https://pepy.tech/project/barchart) [![HitCount](http://hits.dwyl.com/tke578/barchart.svg)](http://hits.dwyl.com/tke578/barchart) Installation ----- ``` pip install barchart``` Unusual Options Activity ----- ```` from barchart import UOA uoa = UOA() uoa.data [ {'Symbol': 'TGT', 'Price': '153.78', 'Type': 'Call', 'Strike': '160.00', 'Exp Date': '08/28/20', 'DTE': '9', 'Bid': '1.53', 'Midpoint': '1.55', 'Ask': '1.56', 'Last': '1.40', 'Volume': '7,382', 'Open Int': '165', 'Vol/OI': '44.74', 'IV': '38.08%', 'Delta': '50', 'Last Trade': '13:19 ET'}, ] #Create CSV file uoa.to_csv() #Options uoa = UOA(timeout=100, user_agent='whatever user agent you want to use') ```` #### Concerns The first time you ever run the render() method, it will download Chromium into your home directory (e.g. ~/.pyppeteer/). This only happens once. Additional necessary [linux packages](https://github.com/miyakogi/pyppeteer/issues/60) may need to be installed. You have the option to pass in your own user in `UOA(user_agent='Chrome...')` Sometimes barchart will limit the amount of results based on what type of user agent you are using. Timeout issues do sometimes occur when fetching with `asycnc` since data is loaded onto the DOM asynchronous. A Timeout Exception will be raised `barchart.helpers.errors.TimeoutError` At the moment, it takes about 1 minute to fetch and parse 10-12 pages. If a parsing exception is raised, look at the above exception which ouputs the html in text. If the html response looks correct and the exception is still persisting, please create a issue ticket. Parsing exceptions `barchart.helpers.errors.ParsingError: Parsing error: Index error on table headers, check html response above` Sometimes barchart likes to suppress most of their data at different times of day.


نیازمندی

مقدار نام
- requests-html
- async
- user-agent
- pyppeteer


نحوه نصب


نصب پکیج whl barchart-0.1.4:

    pip install barchart-0.1.4.whl


نصب پکیج tar.gz barchart-0.1.4:

    pip install barchart-0.1.4.tar.gz