Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table NoneType #1

Open
Walshco1 opened this issue Jan 9, 2020 · 2 comments
Open

Table NoneType #1

Walshco1 opened this issue Jan 9, 2020 · 2 comments

Comments

@Walshco1
Copy link

Walshco1 commented Jan 9, 2020

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!

@balabalab
Copy link

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

@lamres
Copy link

lamres commented Apr 22, 2021

@Walshco1 Hi.
I got the same error. Check my solution, I think this approach is more accurate
#4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants