Всем привет! получаю вот такой ответ при парсинге сайта вот фрагмент ответа
<movies
:movies="[{"id":9849,"name":"\u041b\u0451\u0434 3","age_limit":6,"kp_rating":null,"imdb_rating":null,"duration":146,"movie_link":"https:\/\/cinema5.ru\/saratov\/movie\/9849_lyod-3","tag":[],"trailer":{"id":206934,"name":"trailer-led-3.mp4","disk":"media_files","entity":"movies","entity_file_type":"trailer","entity_id":9849,"status":0,"size":null,"path":null,"external_path":"https:\/\/media.cinemabox.team\/net\/c5\/movies\/9849\/trailer-led-3.mp4","media_info":null,"created_at":"2024-02-22T06:52:09.000000Z","updated_at":"2024-02-22T06:52:09.000000Z","url":"https:\/\/media.cinemabox.team\/net\/c5\/movies\/9849\/trailer-led-3.mp4","full_path":"","settings_alias":"movies.trailer"},"genres":[{"id":19,"name":"\u043c\u0435\u043b\u043e\u0434\u0440\u0430\u043c\u0430"}],"countries":[{"id":165,"name":"\u0420\u043e\u0441\u0441\u0438\u044f"}],"vertical_poster_preview_src":"https:\/\/cinema5.ru\/media_files\/movies\/vertical_poster_preview\/9849\/206932_65d6ef187d69b2.08787285.webp","vertical_poster_preview_src_jpg":"https:\/\/cinema5.ru\/media_files\/movies\/vertical_poster_preview_jpg\/9849\/206933_65d6ef18d8aee3.65939646.jpg","shows":[{"id":1669063,"cinema_id":6,"movie_id":9849,"format":"2D","time":"12:00:00","date":"2024-03-01","max_price":270,"min_price":270,"hall_category_name":"\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442","pushkins_card":true},{"id":1669085,"cinema_id":6,"movie_id":9849,"format":"2D","time":"13:25:00","date":"2024-03-01","max_price":270,"min_price":270,"hall_category_name":"\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442","pushkins_card":true},{"id":1669064,"cinema_id":6,"movie_id":9849,"format":"2D","time":"14:45:00","date":"2024-03-01","max_price":270,"min_price":270,"hall_category_name":"\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442","pushkins_card":true},{"id":1669065,"cinema_id":6,"movie_id":9849,"format":"2D","time":"17:30:00","date":"2024-03-01","max_price":390,"min_price":390,"hall_category_name":"\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442","pushkins_card":true},{"id":1669072,"cinema_id":6,"movie_id":9849,"format":"2D","time":"18:40:00","date":"2024-03-01","max_price":390,"min_price":390,"hall_category_name":"\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442","pushkins_card":true},{"id":1669066,"cinema_id":6,"movie_id":9849,
не понятный для меня как с ним работать?
вот запрос:
import requests
from bs4 import BeautifulSoup
url = 'https://cinema5.ru/saratov/date/2024-03-01#/'
headers = {
'Accept-Language': "*/*",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
}
response = requests.get(url=url, headers=headers).text
print(response) // фрагмент ответа выше
soup = BeautifulSoup(response, 'lxml')
print(soup) // ответ такоже как ка в response
когда смотришь в google Chrome через просмотр кода то там нормальная html разметка. Как превратить ответ в html разметку? не понимаю нужно как-то декодировать или это js скрипты так отдат? Подскажите плиз