How to put the size of the site?

Is there a website usa.tommy.com scab it with bs4 + requests. Field size default available, after some time the server sends a reply with the available sizes and the field changes to disabled. Manually shoveled all theoretically simple json, with the size nowhere to be found.

Which query should be sent to the server to get the desired response?
I would be grateful to any Council

def get_html(self, url, payload=None):
 while True:
try:
 proxies = {'http': self.current_proxy, 'https': self.current_proxy}
 if not self.use_proxy:
 proxies = {}
 #time.sleep(random.randint(random.randint(6, 10), random.randint(12, 27)))
 html = self.s.get(url, headers=self.HEADERS, proxies=proxy, params=payload, timeout=30, cookies=self.cookies)
 if html.status_code == 200:
print(html.status_code)
 if self.request_limit and self.request_limit == self.request_counter:
self.proxy.put(self.current_proxy)
self.get_cookies()
 self.request_counter = 0
 self.request_counter += 1 
 return html
 elif html.status_code == 403:
print(html.status_code)
self.proxy.put(self.current_proxy)
self.get_cookies()
#time.sleep(random.randint(600,800))
else:
 #time.sleep(random.randint(14, 27))
print(html.status_code)
continue
except:
 if self.free_proxy:
 self.current_proxy = self.proxy.get()
 continue

The result of this function - html (below soup it scab)

soup = BeautifulSoup(html.text, 'html.parser')

block_size = soup.find('ul', id='sizes').find_all('li')
 for li in block_size:
 if li['class'] == ['available']:
print(li)
 size_list.append(li.find('span').text)
April 9th 20 at 09:35
1 answer
April 9th 20 at 09:37
Solution
Try this:
soup = BeautifulSoup(response.text,"lxml")
 ul = soup.find('ul',id = 'sizes')
 sizes = ul.find_all('li')
 for size in sizes:
 print(size.text.strip())

Just tried, print sizes. Tried the jacket in which the sizes and Roman numerals and ours. Works the same way.
PS: Tried on jackets (children and women).
Yes, the size of prints, the problem is that it prints everything, though in reality their presence there

In this section, common items with incomplete size range
https://usa.tommy.com/en/sale-final-sale-men - Manley_Auer94 commented on April 9th 20 at 09:40
Found, but not sure!
Check the link for the Jacket
Look in the code <div id="sizeJSON">{
5e77f334c3b8f320160134.png
If not, let me know. - elaina.Grady commented on April 9th 20 at 09:43
@elaina.Grady, Thanks for help )) - Manley_Auer94 commented on April 9th 20 at 09:46

Find more questions by tags Beautiful SoupParsingPython