Hi! im getting stuck at this point, my code is;
The error message is AttributeError: module 'bs4' has no attribute 'Beautifulsoup'.
The error message is AttributeError: module 'bs4' has no attribute 'Beautifulsoup'.
import bs4 as bs import pickle import requests def save_sp500_tickers(): resp = requests.get('https://en.wikipedia.org/wiki/List_of_S%26P_500_companies') soup = bs.Beautifulsoup(resp.text) table = soup.find('table',{'class':'wikitable sortable'}) tickers = [] for row in table.findALL('tr')[1:]: ticker = row.findALL('td')[0].text tickers.aappend(ticker) with open('sp500tickers.pickle','wb') as f: pickle.dump(tickers, f) print(save_sp500_tickers()) return tickers save_sp500_tickers()