I amt trying to get the size and stock information whether it is out of stock or in stock. https://limitededt.com/collections/footwear/products/adidas-originals-jonah-hill-superstar-fw7577
It looks like I have to click on each sizing manually, and the button will either show "SOLD OUT" or "Add to CART".
I am able to retrieve basic information from the HTML page, but this looks like a JS event.
When I click on the size, the url changes to
There is additional "variant=32432939466823 "
I was thinking I can manually figure out what the variant is, then use request to load the page again and then try to get the button info and determine whether it's in stock or out of stock.
Are there any alternatives that I can request once and interact with the sizings to check the stocks?
url = "https://limitededt.com/collections/footwear/products/adidas-originals-jonah-hill-superstar-fw7577"
source = requests.get(url).text
soup = BeautifulSoup(source, 'lxml')