I'm trying to scrape a website for stock information. It should show me the 'size' followed by the 'quantity' available.
element_size_name = browser.find_elements_by_class_name('itemSize')
element_qty_name = browser.find_elements_by_class_name('quantity')
for e in element_size_name:
print(e.text)
for q in element_qty_name:
print(q.text)
The above code gives me the following output:
>XL
>2XL
>5 Backorderable (Available: 06/02/2020)
>0 Backorderable (Available: 06/09/2020)
How can I put the first line '5 Backorderable (Available: 06/02/2020)' next to the XL and so on. I've tried so many different things that give me totally different outputs