web page: https://fbref.com/en/comps/9/gca/Premier-League-Stats
I have scraped the top table and I'm now attempting to scrape the second.
import requests
from bs4 import BeautifulSoup
URL = 'https://fbref.com/en/comps/9/gca/Premier-League-Stats'
page = requests.get(URL)
soup = BeautifulSoup(page.content, 'html.parser')
stepa= soup.find(id="all_stats_gca")
the above works fine but then i cannot go any further? I would have thought the next step would be
stepb=stepa.find("div",{"class":"table_outer_container"})
but when printing this returns none. any other suggestions?