tke578 / barchart

The unofficial API of barchart.com
16 stars 4 forks source link

ParsingError: Index error on table headers, check response #5

Closed waveriderai closed 3 years ago

waveriderai commented 3 years ago

Received the following error message for the past week consistently. Any thoughts?

raise ParsingError(msg='Index error on table headers, check response')

barchart.helpers.errors.ParsingError: Parsing error: Index error on table headers, check response

Meciah commented 3 years ago

Receiving the same error as above. Been looking into a solution but no luck so far.

waveriderai commented 3 years ago

I suspect the problem is related to the recent new column [Delta] added on the barcahrt website. In the directory barchart/helpers/parser.py

perhaps need to change the value from 15 to 16 (line 17, 19, 29). Not sure if there are other places that needs change. It will be great if someone can help looking into the additional column added in the header.

tke578 commented 3 years ago

Hey everyone! Sorry for the late response. Work has been busy these past few weeks. Thank for discovering the parsing issue. Also found out the scraper is being blocked by barchart's server intermittently via Amazon Cloudfront

The request could not be satisfied

I'm going to try to figure out a solution to not being blocked. Suggestions welcomed!

tke578 commented 3 years ago

WIP on https://github.com/tke578/barchart/pull/6 Will be merged soon

tke578 commented 3 years ago

closed via https://github.com/tke578/barchart/pull/6

waveriderai commented 3 years ago

awesome. thank you