<script>
window.settings ={"feedPrefix":"dnevnik","rootUrl":"https://kundelik.kz","apiUrl":"https://kundelik.kz/api","environmentPrefix":"kz"};
</script>
import re
import json
string ='''<script>
window.settings ={"feedPrefix":"dnevnik","rootUrl":"https://kundelik.kz","apiUrl":"https://kundelik.kz/api","environmentPrefix":"kz"};
</script>'''
r = re.search("window.settings =(.*);", string)
if r:
dic = json.loads(r.groups()[0])
print(dic["feedPrefix"])