zipline_bundle icon indicating copy to clipboard operation
zipline_bundle copied to clipboard

Table NoneType

Open Walshco1 opened this issue 6 years ago • 2 comments

When accessing the data from coinmarketcap it returns a table of NoneType. Have they changed the way the table is embedded in the website? bs4 is brand new to me, so apologies if the answer to my question is obvious. Thanks for sharing your work!

Walshco1 avatar Jan 09 '20 05:01 Walshco1

When accessing the data from coinmarketcap it returns a table of NoneType. Have they changed the way the table is embedded in the website? bs4 is brand new to me, so apologies if the answer to my question is obvious. Thanks for sharing your work!

可能现在的页面跟以前的结构发生变化,dom文档搜不到了 可以这样

def tickers(): 
    ticker_pairs = ['BTCUSDT','ETHUSDT']
    with open(join(custom_data_path, 'binance_ticker_pairs.pickle'), 'wb') as f:
    pickle.dump(ticker_pairs, f)
    return ticker_pairs

balabalab avatar Apr 17 '20 04:04 balabalab

@Walshco1 Hi. I got the same error. Check my solution, I think this approach is more accurate https://github.com/0xboz/zipline_bundle/issues/4

lamres avatar Apr 22 '21 21:04 lamres