Header contains line feed code and blank characters when retrieving header
kaie3 opened this issue · 1 comments
kaie3 commented
An error occurred while executing the script in README.rst
There seems to be a problem retrieving headers.
Please fix it by removing the newline code and empty characters.
def __get_table_headers(self):
""" Private function used to return table headers. """
return [header for header in self._page_content.cssselect('tr[valign="middle"]')[0].xpath(
"td//text()") if header.strip()]
RichardBoreiko commented
I'm seeing the same issue:
No.,Ticker,"
","
",Company,Sector,Industry,Country,Market Cap,P/E,Price,Change,Volume
1,AMR,"Alpha Metallurgical Resources, Inc.",Basic Materials,Coking Coal,USA,2.52B,2.37,176.65,6.14%,"584,626",,