shilewenuw / get_all_tickers

Get all publicly traded tickers with this library
MIT License
275 stars 124 forks source link

get_tickers_by region() not working for any Region.region #19

Open raj2619 opened 3 years ago

raj2619 commented 3 years ago

Hello,

I've tried all the values in the REGION enum in the get_tickers_by_region(). ALl of them throw this error -

Traceback (most recent call last): File "/home/master_use/PycharmProjects/gitlab_tool/main.py", line 13, in <module> tickers = gt.get_tickers_by_region(Region.SOUTH_AMERICA) File "/home/master_use/PycharmProjects/test_ticker_download/venv/lib/python3.9/site-packages/get_all_tickers/get_tickers.py", line 133, in get_tickers_by_region df = pd.read_csv(data, sep=",") File "/home/master_use/PycharmProjects/test_ticker_download/venv/lib/python3.9/site-packages/pandas/util/_decorators.py", line 311, in wrapper return func(*args, **kwargs) File "/home/master_use/PycharmProjects/test_ticker_download/venv/lib/python3.9/site-packages/pandas/io/parsers/readers.py", line 586, in read_csv return _read(filepath_or_buffer, kwds) File "/home/master_use/PycharmProjects/test_ticker_download/venv/lib/python3.9/site-packages/pandas/io/parsers/readers.py", line 488, in _read return parser.read(nrows) File "/home/master_use/PycharmProjects/test_ticker_download/venv/lib/python3.9/site-packages/pandas/io/parsers/readers.py", line 1047, in read index, columns, col_dict = self._engine.read(nrows) File "/home/master_use/PycharmProjects/test_ticker_download/venv/lib/python3.9/site-packages/pandas/io/parsers/c_parser_wrapper.py", line 223, in read chunks = self._reader.read_low_memory(nrows) File "pandas/_libs/parsers.pyx", line 801, in pandas._libs.parsers.TextReader.read_low_memory File "pandas/_libs/parsers.pyx", line 857, in pandas._libs.parsers.TextReader._read_rows File "pandas/_libs/parsers.pyx", line 843, in pandas._libs.parsers.TextReader._tokenize_rows File "pandas/_libs/parsers.pyx", line 1925, in pandas._libs.parsers.raise_parser_error pandas.errors.ParserError: Error tokenizing data. C error: Expected 1 fields in line 5, saw 46