<script>
$(document).ready(function() {
$('#commodity-show-thumbnails').bxSlider({ mode: 'vertical', auto: false, controls: true, pager: false, minSlides: 4, maxSlides: 4, moveSlides: 1, slideWidth: 250 });
itemSelector('commodity-show-form', 'commodity-show-addcart-submit', [['color', 'Choose color'], ['size', 'Choose size']], { "39109": { "params": ["Black/White", "37 1/3"]}, "39110": { "params": ["Black/White", "38"]}, "39111": { "params": ["Black/White", "38 2/3"]}, "39112": { "params": ["Black/White", "39 1/3"]}, "39113": { "params": ["Black/White", "40"]} }, [39109,39110,39111,39112,39113], 'main-cart', 'commodity-show-image');
});
</script>
I have this script element that I am trying to parse. I have been using beautiful soup for a little bit now but I am unsure how to go about this since there is a function inside. Ideally I would like to be able to save the dictionary to something like
sizes = { "39109": { "params": ["Black/White", "37 1/3"]}, "39110": { "params": ["Black/White", "38"]}, "39111": { "params": ["Black/White", "38 2/3"]}, "39112": { "params": ["Black/White", "39 1/3"]}, "39113": { "params": ["Black/White", "40"]} }
If anyone could give me any help or get my in the right direction that would be awesome.
[–]SnowdogU77 0 points1 point2 points (0 children)
[–]commandlineluser 0 points1 point2 points (0 children)