Если вы напечатаете scripts.text.split("window['AT_APOLLO_STATE'] = ")[1]
, вы увидите следующее, включающее ;
сразу после and enthusiastic
.Таким образом, вы получаете недопустимую строку json из scripts.text.split("window['AT_APOLLO_STATE'] = ")[1].split(';')[0]
.И данные заканчиваются на and enthusiastic
, который не является допустимой json
строкой.
"strapline":"In our state-of-the-art dealerships across the U.K, Sytner Group
represents the world’s most prestigious car manufacturers.
All of our staff are knowledgeable and enthusiastic; making every interaction
special by going the extra mile.",