dmitriy337
@dmitriy337
Python Dev from Ukraine

Как спарсить с этого набора симолов то что нужно?

Как с этого чуда спарсить "https:\/\/load.hdrezka-ag.net\/0b058cb1a1c6ffaf4482b8ba207a2120:2020091819\/movies\/f00c2c1d2b7c25cc25fdcd1f66e2fae130ef2648\/720.mp4" ?

$(function () { sof.tv.initCDNMoviesEvents(34916, 59, 'rezka.ag', false, {"id":"cdnplayer","streams":"[360p]https:\/\/load.hdrezka-ag.net\/movies\/f00c2c1d2b7c25cc25fdcd1f66e2fae130ef2648\/5b3f2fdaccb138c4c7b32f8cfc153b51:2020091819\/240.mp4:hls:manifest.m3u8 or https:\/\/load.hdrezka-ag.net\/d469863df67e2d229975b084201885f6:2020091819\/movies\/f00c2c1d2b7c25cc25fdcd1f66e2fae130ef2648\/240.mp4,[480p]https:\/\/load.hdrezka-ag.net\/movies\/f00c2c1d2b7c25cc25fdcd1f66e2fae130ef2648\/5b3f2fdaccb138c4c7b32f8cfc153b51:2020091819\/360.mp4:hls:manifest.m3u8 or https:\/\/load.hdrezka-ag.net\/1eb728d06ee2454220a9286783347da1:2020091819\/movies\/f00c2c1d2b7c25cc25fdcd1f66e2fae130ef2648\/360.mp4,[720p]https:\/\/load.hdrezka-ag.net\/movies\/f00c2c1d2b7c25cc25fdcd1f66e2fae130ef2648\/5b3f2fdaccb138c4c7b32f8cfc153b51:2020091819\/480.mp4:hls:manifest.m3u8 or https:\/\/load.hdrezka-ag.net\/baad9ef70fa27e96238a59a878574a6d:2020091819\/movies\/f00c2c1d2b7c25cc25fdcd1f66e2fae130ef2648\/480.mp4,[1080p]https:\/\/load.hdrezka-ag.net\/movies\/f00c2c1d2b7c25cc25fdcd1f66e2fae130ef2648\/5b3f2fdaccb138c4c7b32f8cfc153b51:2020091819\/720.mp4:hls:manifest.m3u8 or https:\/\/load.hdrezka-ag.net\/0b058cb1a1c6ffaf4482b8ba207a2120:2020091819\/movies\/f00c2c1d2b7c25cc25fdcd1f66e2fae130ef2648\/720.mp4,[1080p Ultra]https:\/\/load.hdrezka-ag.net\/movies\/f00c2c1d2b7c25cc25fdcd1f66e2fae130ef2648\/5b3f2fdaccb138c4c7b32f8cfc153b51:2020091819\/1080.mp4:hls:manifest.m3u8 or https:\/\/load.hdrezka-ag.net\/fd8cb27b6c7695fd5d72b8785f3847ff:2020091819\/movies\/f00c2c1d2b7c25cc25fdcd1f66e2fae130ef2648\/1080.mp4","default_quality":"480p","subtitle":false,"subtitle_lns":false,"subtitle_def":false,"thumbnails":false,"hlsconfig":{"maxBufferLength":60,"maxMaxBufferLength":600,"maxBufferSize":33554432000},"hlsdebug":0,"debug":0,"geo_ip":"46.175.68.202","geo_iso":"ua","autoswitch":1,"preroll":"https:\/\/franecki.net\/assets\/vendor\/3736f6ea7b7e115cbb4f5c2ea8f5f2df.xml?v=3.0&external_subid=(host) and https:\/\/franecki.net\/assets\/vendor\/49ae0420d7a42849fd13a5e3ae4fc009.xml?v=3.0&external_subid=(host)"}); }); $(function () { sof.tv.initWatchingEvents(34916); }); (function () { $(function () { var comment_id = 0, match = window.location.hash.match(/comment(\d+)/i), ws_usage = 5, show_mode = 0, enabled_mode = 1, callback = function () {}; if (match !== null) { comment_id = match[1]; } callback = function (last_update_id) { if (comment_id > 0) { setTimeout(function () { var comment = $('#comments-tree-item-'+ comment_id +' > div:not(:animated)'); comment.addClass('now-added'); sof.helper.scrollTo($('#comments-tree-item-'+ comment_id), 15, 300, function () { comment.animate({backgroundColor: 'transparent'}, 2000, function () { comment.removeClass('now-added').removeAttr('style'); }); }); }, 200); } if (ws_usage < 50) { sof.comments.initWSComments('wss://hdrezka.ws', 34916, 0, last_update_id, null); } }; if (enabled_mode == 1 && (show_mode == 0 || ws_usage < 5)) { sof.comments.loadComments(34916, 1, true, 0, comment_id, callback); } }); } ());
  • Вопрос задан
  • 499 просмотров
Решения вопроса 1
SoreMix
@SoreMix Куратор тега Python
yellow
import re
re.search(r'(\S+720\.mp4),', s).group(1)
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы