I am trying to scrape a page.
HTML element:
<table id="stock_ret_data" class="table table-bordered
table-striped table-sm sortable-theme-bootstrap dataTable
no-footer" data-sortable="" role="grid"
aria-describedby="stock_ret_data_info" style="width: 1115px;">
When I try to use beautifulsoup to find the table using:
soup = bs(requests.get(url).content, 'html.parser')
tbl = soup.find('table',{'id':'stock_ret_data'})
It returns empty. While the same code works for another table on the same page.
I cannot figure out what I might be doing wrong.