I've been trying to scrape the portfolio holdings for the USO fund here: http://www.uscfinvestments.com/holdings/uso
So far I could only get as far as this:
import requests
page = requests.get("http://www.uscfinvestments.com/holdings/uso")
from bs4 import BeautifulSoup
soup = BeautifulSoup(page.content, 'html.parser')
soup.find_all('div', id = 'holdingsTableWrapper')
Then I basically get nothing:
[<div id="holdingsTableWrapper">
<div id="portfolioTableDiv"></div>
</div>, <div id="holdingsTableWrapper">
<div id="holdingsTableDiv"></div>
</div>]
Anyone know how to work around this?
EDIT: