LSP Regex & Makelist Discussion.

Doom

Member
Sep 16, 2019
185
20
18

streamwatcher2013

Well-known member
Oct 24, 2013
785
317
63
USA
Try this:

LSP XML:
<item>
<title>https://vww.themoviebay.net/movies/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param3]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>https://vww.themoviebay.net[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests,urllib
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  count=10;pn=1;data=[]
  while pn <= int(count):
    page='https://vww.themoviebay.net/movies?page='+str(pn)
    source=requests.get(page,headers={'user-agent':'Mozilla/5.0','referer':'https://vww.themoviebay.net/movies/','accept':'*/*'}).content.replace('&#039;','\'').replace('amp;','')
    data +=re.findall('(?s)"grid-item".+?href="([^"]+).+?src="([^\?]+).+?alt="([^"]+)',source);pn +=1
  return data
]]></expres>
<page>https://mobile.shqipvisiontv.com/sports.php</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,jsunpack
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  s=requests.get('[makelist.param1]',headers={'user-agent':'Mozilla/5.0','referer':'https://vww.themoviebay.net/movies/','accept':'*/*'})
  link=re.findall('<section[\w\W]*?src="([^"]+)',s.content)[0]
  source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'[makelist.param1]','accept':'*/*'},cookies=s.cookies).content
  data=jsunpack.unpack(re.findall('(eval.*m3u8.*)',source)[0])
  return re.findall('holaplayer[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',data)[0]+'|user-agent=ipad&referer=[makelist.param1]'
]]></expres>
<page></page>
</regex>
</item>
 
  • Like
Reactions: altug and Doom

tpoupi

New member
Jan 2, 2016
23
0
1
Hi, maklist to this please, Thank
hxxps://www.youtube.com/user/france24nolly/playlists?view_as=subscribe
 

streamwatcher2013

Well-known member
Oct 24, 2013
785
317
63
USA
Try this:

LSP XML:
<item>
<title>France24 TV</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param3][/COLOR]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>[makelist.param2]</thumbnail>
  <fanart>https://yt3.ggpht.com/pnif4tM2HBR_MJuOkXL9oj_epz_VoZspiuOaUG2-m6v3GjRb6D4mChp6eh6l7XBjNvHcWfWr=w1707-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj</fanart>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,urllib
def GetLSProData(page_data, Cookie_Jar, m):#streamwatcher2013
  source=urllib.urlopen('https://www.youtube.com/c/france24nolly/playlists').read()
  return re.findall('"gridPlaylistRenderer":{"playlistId":"([^"]+).+?"thumbnails":.{"url":"([^\?]+).+?"title":{"runs":.{"text":"([^"]+)',source)
]]></expres>
<page></page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist2.param1] [COLOR cyan]([makelist2.param2])[/COLOR]</title>
  <info>[makelist2.param3]</info>
  <urlsolve>https://www.youtube.com/watch?v=[makelist2.param4]</urlsolve>
  <thumbnail>https://i.ytimg.com/vi/[makelist2.param4]/hqdefault.jpg</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data, Cookie_Jar, m):#streamwatcher2013
  count=4;pn=1;jdata=[]
  while pn <= int(count):
    source=requests.get('https://www.youtube.com/list_ajax?style=json&action_get_list=1&list=[makelist.param1]&index='+str(pn),headers={'user-agent':'Mozilla/5.0'}).json()
    jdata +=source.get('video');pn +=1
    channels=[]
    for j in jdata:
      title=j.get('title')
      vid=j.get('encrypted_id')
      inf=j.get('description')
      length=j.get('duration')
      channels.append((title,length,inf,vid))
  return channels
]]></expres>
<page></page>
</regex>
<thumbnail>https://yt3.ggpht.com/a/AATXAJy8oROzoQ7oKoXBaF5wSamrYjiGGVhjPWDpqs4S=s100-c-k-c0xffffffff-no-rj-mo</thumbnail>
<fanart>https://yt3.ggpht.com/pnif4tM2HBR_MJuOkXL9oj_epz_VoZspiuOaUG2-m6v3GjRb6D4mChp6eh6l7XBjNvHcWfWr=w1707-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj</fanart>
</item>
 
  • Like
Reactions: tpoupi

Million

New member
Dec 9, 2018
24
1
3
Hello
I need help to regex this:
XML:
https://mobile.shqipvisiontv.com/sports.php
Thanks in advance
 

streamwatcher2013

Well-known member
Oct 24, 2013
785
317
63
USA
Try this:

LSP XML:
<item>
<title>https://mobile.shqipvisiontv.com/sports.php</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param3]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>https://mobile.shqipvisiontv.com[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[(?s)"content".*?"([^"]+).+?src="([^"]+).+?title.>([^<]+)]]></expres>
<page>https://mobile.shqipvisiontv.com/sports.php</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>Link [makelist2.param2]</title>
  <inputstream>[makelist2.param1]|user-agent=ipad&amp;referer=https://mobile.shqipvisiontv.com/</inputstream>
  <thumbnail>https://mobile.shqipvisiontv.com[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[(?s)play(?:er|)_btn".+?href="([^"]+).>([^<]+)]]></expres>
<page>https://mobile.shqipvisiontv.com[makelist.param1]</page>
</regex>
<thumbnail>https://mobile.shqipvisiontv.com[makelist.param2]</thumbnail>
</item>
 

altug

Member
Jul 7, 2016
64
2
8
Hello i need a maklist for this site, can you help me



hxxps://www.trtizle.com/diziler/masumlar-apartmani
 

BymemoLee

Member
Apr 30, 2018
82
12
8
HTML:
<item>
<title>[B][COLOR white]Masumlar Apartmanı[/COLOR][/B]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR gold][makelist.param2]. Bölüm[/COLOR]</title>
<link>[makelist.param4]</link>
<thumbnail>[makelist.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  jdata=re.findall('"videos(?s)(.*)',page_data)[0].replace('\\','').replace('\\','')
  return re.findall('description":"([^"]+).+?episode":(\d+).+?mainImageUrl":"([^"]+).+?"mp4Url":"([^"]+)',jdata)
]]></expres>
<page>https://www.trtizle.com/api/video?path=/diziler/masumlar-apartmani/masumlar-apartmani-1-bolum-2744837</page>
<referer>https://www.trtizle.com/diziler/masumlar-apartmani/masumlar-apartmani-1-bolum-2744837</referer>
</regex>
<thumbnail>https://www.trt1.com.tr/public/TemaUpload/84414b9c-bff6-4b8d-aaa4-887bb9c2a96e/_assets/img/favico/180x180_TRT1.png</thumbnail>
</item>
 
  • Like
Reactions: altug

boul

Member
Nov 24, 2017
30
0
6
Hello @streamwatcher2013 this regex stop to work.
<item>
<Title>Regex-telequebec</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
link=re.findall('src="(.*?player[^"]+)',page_data)[0]
source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'https://zonevideo.telequebec.tv/endirect/'},cookies=Cookie_Jar).content
return re.findall('l.{13,15}Url:"(\w[^"]+)',source)[0]+'|user-agent=ipad&referer='+link
]]></expres>
<page>https://zonevideo.telequebec.tv/endirect/</page>
<referer>https://zonevideo.telequebec.tv/</referer>
</regex>
<thumbnail>https://www.telequebec.tv/apple-touch-icon.png</thumbnail>
</item>
 

streamwatcher2013

Well-known member
Oct 24, 2013
785
317
63
USA
Try this:

LSP XML:
<item>
<Title>Regex-telequebec</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  link=re.findall('src="(.*?player[^"]+)',page_data)[0]
  source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'https://zonevideo.telequebec.tv/endirect/'},cookies=Cookie_Jar).content
  aID,cID=re.findall('accountId:\s*"([^"]+).+?liveVideoId:\s*"([^"]+)',source)[0]
  source=requests.get('https://players.brightcove.net/%s/skCsmi2Uw_default/index.min.js'%aID,headers={'user-agent':'Mozilla/5.0','host':'players.brightcove.net','referer':'https://zonevideo.telequebec.tv/endirect/'},cookies=Cookie_Jar).content
  gPK=re.findall('policyKey:"([^"]+)',source)[0]
  headers={'user-agent':'Mozilla/5.0','host':'edge.api.brightcove.com','referer':'https://zonevideo.telequebec.tv/endirect/','accept':'application/json;pk=%s'%gPK}
  jdata=requests.get('https://edge.api.brightcove.com/playback/v1/accounts/%s/videos/%s'%(aID,cID),headers=headers,cookies=Cookie_Jar).content
  return re.findall('"src":"([^"]+)',jdata)[0]+'|user-agent=ipad&referer=https://zonevideo.telequebec.tv/endirect/'
]]></expres>
<page>https://zonevideo.telequebec.tv/endirect/</page>
<referer>https://zonevideo.telequebec.tv/</referer>
</regex>
<thumbnail>https://www.telequebec.tv/apple-touch-icon.png</thumbnail>
</item>
 
  • Like
Reactions: tnico

myosmc

Member
May 18, 2018
56
1
8
help with a makelist of these channels?
Code:
hxxps://www.ver-television.online/
 

streamwatcher2013

Well-known member
Oct 24, 2013
785
317
63
USA
I excluded the chrome cast's mpd stream (opcion 1 & 3). Try this:

LSP XML:
<item>
<title>https://www.ver-television.online/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param2]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('(?s)"card-wrapper1".+?href="([^"]+).\s*title="(.*?)(?:O|o)nline',re.findall('id=container>(?s)(.*?)<script',page_data)[0])
]]></expres>
<page>https://www.ver-television.online/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[makelist2.param2]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('href=.([^\'"]+).+?>(Opcion\s*[2|4])',re.findall('"opciones">(?s)(.*?)</div',page_data)[0])
]]></expres>
<page>[makelist.param1]</page>
<referer>https://www.ver-television.online/</referer>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,jsunpack
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  link=re.findall('<iframe.+?src=[\'"]([^\'"]+)',page_data)[0]
  source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'[makelist2.param1]','accept':'*/*'}).content
  wstream=re.findall('src=[\'"](.+?wstream[^\'"]+)',source)[0]
  source=requests.get(wstream,headers={'user-agent':'Mozilla/5.0','referer':link,'accept':'*/*'}).content
  decode=jsunpack.unpack(re.findall('(eval.*m3u8.*)',source)[0])
  return re.findall('player[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',decode)[0]+'|user-agent=ipad&referer='+wstream
]]></expres>
<page>[makelist2.param1]</page>
<referer>[makelist.param1]</referer>
</regex>
</item>
 

tobotminer

Member
Jan 26, 2018
49
4
8
anyone can help with this

Code:
https://animepahe.com/anime/65161513-4f2d-0399-0677-295d64283d12
 

streamwatcher2013

Well-known member
Oct 24, 2013
785
317
63
USA
url token change daily. Try this:

LSP XML:
<item>
<title>Naruto (220 Ep)</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>Episode [makelist.param1] [[makelist.param3]]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist.param2]</thumbnail>
  <fanart>https://i.animepahe.com/covers/2dd96bcb9ee0fc59f936012e0334d53d.jpg</fanart>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  apiUrl='https://animepahe.com'+re.findall('getJSON.+?[\'"]([^\'"]+)',page_data)[0]+'30&sort=episode_asc&page={}'
  jdata=[]
  for p in range(1,9):
    source=requests.get(apiUrl.format(p),headers={'user-agent':'Mozilla/5.0','referer':'$doregex[mUrl]','x-requested-with':'XMLHttpRequest','accept':'*/*'}).content
    jdata += re.findall('"episode":(\d+).+?"snapshot":"([^"]+).+?duration":"([^"]+).+?session":"([^"]+)',source)
  return jdata
]]></expres>
<page>$doregex[mUrl]</page>
</regex>
<regex>
<name>mUrl</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
   return 'https://animepahe.com'+re.findall('href="([^"]+).\s*title="Naruto',re.findall('id="N"(?s)(.*?)class="(?:tab-pane|clearfix)',page_data)[0].replace('/anime','/play'))[0]
]]></expres>
<page>https://animepahe.com/anime</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,jsunpack
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  klink,sID=re.findall('var\s*url.+?[\'"]([^\'"]+)[\w\W]*?getUrls.+?[\'"]([^\'"]+)',page_data)[0]
  ksource=requests.get(klink,headers={'user-agent':'Mozilla/5.0','host':'kwik.cx','referer':'$doregex[mUrl]/%s'%sID,'accept':'*/*'}).content
  decode=jsunpack.unpack(re.findall('eval.+?(eval.*)',ksource)[0]).replace('\\','')
  return re.findall('const source.+?[\'"](http.+?nextstream[^\'"]+)',decode)[0]+'|user-agen=ipad&referer='+klink
]]></expres>
<page>$doregex[mUrl]/[makelist.param4]</page>
<referer>$doregex[mUrl]</referer>
</regex>
<thumbnail>https://i.animepahe.com/posters/e3a01c608e389a61a1111d6b0e609dce.jpg</thumbnail>
<fanart>https://i.animepahe.com/covers/2dd96bcb9ee0fc59f936012e0334d53d.jpg</fanart>
</item>
 

Doom

Member
Sep 16, 2019
185
20
18
@streamwatcher2013 Could you take a look again added the "cookie=bitmigate" line and still not working sorry to bother & thanks.
hxxp://crackstreams.com/boxing-streams/watch-bktv-toe-the-line-2/
 

gujal

Developer
Dec 26, 2013
422
208
43
wherever <page>blah</page> occurs in the code, add <setcookie>challenge=BitMitigate.com</setcookie> and it will work.
 
  • Like
Reactions: Doom

upd8t3r

Member
Oct 16, 2019
45
17
8
Here's how I did it to get it to work. The stream is either down or not active yet, so it won't play anything. But if you look in the log you'll see it is getting the link right.


XML:
<item>
<title>watch-bktv-toe-the-line-2</title>
<link>$doregex[GetLink]|User-agent=ipad&amp;Referer=http://crackstreams.com</link>
<regex>
<name>SniffLink</name>
<expres><![CDATA[<iframe.+?src="([^"]+)]]></expres>
<page>http://crackstreams.com/boxing-streams/watch-bktv-toe-the-line-2/</page>
<setcookie>challenge=BitMitigate.com</setcookie>
</regex>
<regex>
<name>GetLink</name>
<expres>source:.+?"(.*?)"</expres>
<page>$doregex[SniffLink]</page>
<setcookie>challenge=BitMitigate.com</setcookie>
</regex>
</item>
 
  • Like
Reactions: Doom

adioukrou

Member
May 12, 2012
35
0
6
Need a regex if for "LA3" if possible.
hxxxs://www.rti.ci/
m3u8 link works fine but doesn't last. Thanks.
 

gujal

Developer
Dec 26, 2013
422
208
43
seems to be a static url, why doesnt it last?
Code:
https://www.enovativecdn.com/rticdn/smil:rti3.smil/playlist.m3u8
 

adioukrou

Member
May 12, 2012
35
0
6
Thanks, gujal.
Now I know why isn't lasting, I was using this:
hxxxs://www.enovativecdn.com:4433/rticdn/smil:rti3.smil/chunklist_w1345743588_b650000_sleng.m3u8
 

adriansyafiq

New member
Jan 3, 2016
21
2
3
hi gurus,
i'm not able to play this on the latest LSP..


Code:
<item>
  <title>Test</title>
  <inputstream>https://tglmp02.akamaized.net/out/v1/5081e069e08140c9b95f89a1659cf4dd/manifest.mpd$$lic=https://udrmv3.kaltura.com/cenc/widevine/license?custom_data=eyJjYV9zeXN0ZW0iOiJPVFQiLCJ1c2VyX3Rva2VuIjowLCJhY2NvdW50X2lkIjoiMjA4MjMxMSIsImNvbnRlbnRfaWQiOiJmdGFfY2g1X2Rhc2hfd2ViX2RybSIsImZpbGVzIjoiMTA5MzgxNTAiLCJ1ZGlkIjoiIiwiYWRkaXRpb25hbF9jYXNfc3lzdGVtIjowfQ%3D%3D&signature=XxVtXGzoZGI5pzb1eOacEclqzxQ%3D&||R{SSM}|</inputstream>
</item>
 

gujal

Developer
Dec 26, 2013
422
208
43
of course i tested with sg vpn. just because it worked earlier doesn't mean it will work now, there may be timeout associated with the login or it may be using additional cookies or so. Can't do much when all you have shared is something that you think should work and not the actual session capture
 

m5Germany

Member
Mar 20, 2014
47
9
8
I'm not seeing how to get from clappr.php to FINAL.

https://watchnewslive.tv/fox-news-live-stream-usa/ and https://watchnewslive.tv/clappr.php?stream=FoxNews


HTML:
RAW:
GET https://watchnewslive.tv/clappr.php?stream=FoxNews HTTP/1.1
Host: watchnewslive.tv
Connection: keep-alive
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-Dest: iframe
Referer: https://watchnewslive.tv/fox-news-live-stream-usa/
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Cookie: advanced_ads_browser_width=1077; _ga=GA1.2.1561759952.1601990862; PHPSESSID=vp2bnt23k5magl6kbsluokves8; _gid=GA1.2.1845574396.1603025135; GED_PLAYLIST_ACTIVITY=W3sidSI6IkN6aUciLCJ0c2wiOjE2MDMwMjY0NzIsIm52IjowLCJ1cHQiOjE2MDMwMjUxMzEsImx0IjoxNjAzMDI1MjYxfV0.

RAW:
<html>
<head>
<title>TVGuide</title>
<link rel="dns-prefetch" href="//cdn.jwplayer.com">
<link rel="dns-prefetch" href="//ssl.p.jwpcdn.com">
<script type='text/javascript' src="https://cdn.jwplayer.com/libraries/tjefiREa.js"></script>
<script src="/Crypto/crypto.min.js"></script>

</head>
<body>
<div id="player" style="color: red;"></div>
<script type="text/javascript">
    var encrypted  = '{"ct":"jQMz1CgYrepMCqLQT4zJcOM9cCGHmi+eh9pImDqEbicJHko6dXYHVzFSHbK00cn\/cuFz\/zCTCQPS874KEHcJRAZD1payVJfpdONqHtjMb+4+6X0UcEyWwz9Zf87wo88T\/oMp4RE5K7EZZop+9JcY3Pw7SmTROg2mma6PFnosG3HKUIgM4UkbWjguFad4QwhAxyAcc4Qe3F+FzA\/d9I0ecCImBVTlxbnPs\/QR2RbbnmyYXBLt4faMA1J\/P5HPoVfa","iv":"1c5ce4a41d5907133246847e25349cf7","s":"7d1d92ee41d49636"}';var fallback_encrypted  = '{"ct":"6ZioY9iG0ZFdjyksl09zJvVj50A0pZlVvkznBoPbg0of0bY7vWhGdeKdHOm+Auu37YarNwfRAlpXvdRkBCB36GUGhBVorVHinPYs\/h5eFZZLxOucnPMEsQDRjYbyzKRmdmQolX3upzk81JTO8RKRDK8EhhTI4dSXWSx3ZIW4PVu7DHZ4PjnZckygtwpOPHBDS93FbvVVjRFe0bQ7rNiVDlgwNogP0lz47+Eh5dFB\/EJwQxQH+gQH4oXjltzK0VMTrVpYSvv7MsrCHO\/WGG4OVg==","iv":"b29838f599b2427c6fe40cdeda452407","s":"42981db98c1af0a7"}';var _0x5d5b=['{}.constructor(\x22return\x20this\x22)(\x20)','info','SbGkcemvn8Drj3RX','load','warn','constructor','decrypt','remove','Utf8','length','console','100%','table','Network\x20fatal\x20error.\x20Please\x20reload\x20this\x20page!','toString','log','AES','16:9','player','return\x20(function()\x20','enc','error','parse','apply','bind','__proto__','play','setup','prototype','trace'];(function(_0x5e14c8,_0x5d5bf8){var _0x12ed7e=function(_0x38d91c){while(--_0x38d91c){_0x5e14c8['push'](_0x5e14c8['shift']());}};_0x12ed7e(++_0x5d5bf8);}(_0x5d5b,0x1ef));var _0x12ed=function(_0x5e14c8,_0x5d5bf8){_0x5e14c8=_0x5e14c8-0x0;var _0x12ed7e=_0x5d5b[_0x5e14c8];return _0x12ed7e;};var _0x303129=function(){var _0x54aeec=!![];return function(_0x529c27,_0x1bf128){var _0x5d4c87=_0x54aeec?function(){if(_0x1bf128){var _0x20124b=_0x1bf128[_0x12ed('0x8')](_0x529c27,arguments);return _0x1bf128=null,_0x20124b;}}:function(){};return _0x54aeec=![],_0x5d4c87;};}(),_0x12cca7=_0x303129(this,function(){var _0x2faff4;try{var _0x5598d6=Function(_0x12ed('0x4')+_0x12ed('0xf')+');');_0x2faff4=_0x5598d6();}catch(_0x195a7d){_0x2faff4=window;}var _0x129879=_0x2faff4['console']=_0x2faff4[_0x12ed('0x19')]||{},_0x3279e1=[_0x12ed('0x0'),_0x12ed('0x13'),_0x12ed('0x10'),_0x12ed('0x6'),'exception',_0x12ed('0x1b'),_0x12ed('0xe')];for(var _0x48fdf9=0x0;_0x48fdf9<_0x3279e1[_0x12ed('0x18')];_0x48fdf9++){var _0x25be7b=_0x303129[_0x12ed('0x14')][_0x12ed('0xd')][_0x12ed('0x9')](_0x303129),_0x22acfa=_0x3279e1[_0x48fdf9],_0x3cbd52=_0x129879[_0x22acfa]||_0x25be7b;_0x25be7b[_0x12ed('0xa')]=_0x303129[_0x12ed('0x9')](_0x303129),_0x25be7b['toString']=_0x3cbd52[_0x12ed('0x1d')][_0x12ed('0x9')](_0x3cbd52),_0x129879[_0x22acfa]=_0x25be7b;}});_0x12cca7();var password=_0x12ed('0x11'),decrypted=CryptoJS['AES'][_0x12ed('0x15')](encrypted,password,{'format':CryptoJSAesJson})[_0x12ed('0x1d')](CryptoJS[_0x12ed('0x5')][_0x12ed('0x17')]),password2='HgAZ4LueCj8Pck33',decrypted2=CryptoJS[_0x12ed('0x1')][_0x12ed('0x15')](fallback_encrypted,password2,{'format':CryptoJSAesJson})[_0x12ed('0x1d')](CryptoJS[_0x12ed('0x5')][_0x12ed('0x17')]);r=0x0;var player=jwplayer(_0x12ed('0x3'));player[_0x12ed('0xc')]({'file':JSON[_0x12ed('0x7')](decrypted),'width':_0x12ed('0x1a'),'aspectratio':_0x12ed('0x2'),'autostart':![],'mute':![]}),player['on']('error',function(){r==0x4e20&&(player[_0x12ed('0x16')](),document['getElementById'](_0x12ed('0x3'))['innerHTML']=_0x12ed('0x1c')),setTimeout(function(){player[_0x12ed('0x12')]({'file':JSON[_0x12ed('0x7')](decrypted2)}),player[_0x12ed('0xb')]();},r),r=r+0x1388;});
</script>

</body>
</html>

FINAL:
https://peer5.ustv24h.live/FoxNews/myStream/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9MTAvMTgvMjAyMCAxOjM3OjAzIFBNJmhhc2hfdmFsdWU9MFJNckF4dWt6Ykg2RUIxbENhUVVFUT09JnZhbGlkbWludXRlcz0yNDA=
Any help will be appreciated. Be/Stay Well.

As Always, Thanks in advance.
m5
 

TRC4

New member
Mar 6, 2016
24
3
3
Netherland
Run the php code to get player:
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://watchnewslive.tv/clappr.php?stream=FoxNews",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => array(
    "Referer: https://watchnewslive.tv/fox-news-live-stream-usa"
  ),
));

$response = curl_exec($curl);

curl_close($curl);
$response = str_replace("/Crypto/crypto.min.js","https://watchnewslive.tv/Crypto/crypto.min.js",$response);
echo $response;
?>
 
  • Like
Reactions: m5Germany

efradncr

Member
Mar 26, 2018
54
1
8
será posible obtener un regex para este canal, veo que está codificada su fuente,
Code:
https://billing.worldkast.com/billing/player/lanueva.html
 

gujal

Developer
Dec 26, 2013
422
208
43
Seems to be a static URL
Code:
https://5b50404ec5e4c.streamlock.net:443/lanueva/ngrp:lanueva_all/playlist.m3u8
 

tungbeng95

Member
Oct 25, 2018
228
7
18
Can help me with this and thanks!
HTML:
https://goool7.ws/4657c7842439df1e9e6b5eb0beac7272-live.html
 

gujal

Developer
Dec 26, 2013
422
208
43
This site is basic code that you should be able to write yourself, now that you have been here for two years.
LSP XML:
<item>
<title>SK1</title>
<thumbnail>http://3.bp.blogspot.com/-E370zK9KJ1M/VgkWQG7YFSI/AAAAAAAAA4I/tnFHdrrVAh8/s1600/SK_1_RGB_SMALL.png</thumbnail>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres>videoLink\s*=\s*'([^']+)</expres>
<page>https://goool7.ws/4657c7842439df1e9e6b5eb0beac7272-live.html</page>
</regex>
</item>
 
  • Like
Reactions: tungbeng95

altug

Member
Jul 7, 2016
64
2
8
CAn someone help me,it doesn't work


<item>
<title>CUKUR</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR gold]Bölüm [makelist.param2][/COLOR]</title>
<link>$doregex[makelist2]</link>
<thumbnail>https://upload.wikimedia.org/wikipedia/commons/thumb/c/ca/Puhutv.png/800px-Puhutv.png</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
return re.findall('data-params="([^"]+).>([^<]+)',re.findall('class="dizi-detay-tab">(?s)(.*?)</ul',page_data)[0])
]]></expres>
<page>https://puhutv.com/cukur-1-bolum-izle</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
<title>[COLOR gold][makelist2.param2]. Bölüm [makelist.param2][/COLOR]</title>
<link>$doregex[getUrl]</link>
<thumbnail>[makelist2.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
widgetID,itemID=re.findall('data-design-widget-id="(\d+).+?"serie_detail_tab"[\w\W]*?info_item_id=(\d+)',page_data)[0]
headers={'user-agent':'Mozilla/5.0','referer':'https://puhutv.com/cukur-1-bolum-izle?[makelist.param1]','x-requested-with':'XMLHttpRequest','accept':'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'}
episodeID=int('[makelist.param1]'.split('=')[1]);count=8;pn=1;data=[]
while pn <= int(count):
purl='https://puhutv.com/ajax/widget/render?cms_design_widget_id=%s&content_pool_id_page_no=%s&exclude_item_ids=&info_item_id=%s&tab=serie-season&serie_season_id=%s'%(widgetID,str(pn),itemID,episodeID)
source=requests.get(purl,headers=headers).content
data +=re.findall('(?s)href.+?/(.+?(\d+)[^"]+).+?src="([^"]+)',re.findall('"dizi-detay-tab-content">(?s)(.*?)</nav',source)[0]);pn +=1
return data
]]></expres>
<page>https://puhutv.com/cukur-1-bolum-izle?[makelist.param1]</page>
<referer>https://puhutv.com/cukur-1-bolum-izle</referer>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
tok=re.findall('player.video.loader.+?(PUHU[^\'"]+)',page_data)[0]
url='https://dygvideo.dygdigital.com/api/video_info?akamai=true&PublisherId=29&ReferenceId=%s&SecretKey=NtvApiSecret2014*'%tok
return re.findall('"hls":"([^"]+)',requests.get(url,headers={'referer':'https://puhutv.com/[makelist2.param1]','user-agent':'Mozilla/5.0'}).content.decode('ascii','ignore'))[0].replace('\\','')
]]></expres>
<page>https://puhutv.com/[makelist2.param1]</page>
<referer>https://puhutv.com/cukur-1-bolum-izle?[makelist.param1]</referer>
</regex>
</item>
 

BymemoLee

Member
Apr 30, 2018
82
12
8
Bunu bir dene @altug

XML:
<item>
<title>[B][COLOR white]ÇUKUR[/COLOR][/B]</title>
<link>$doregex[getUrl]</link>
<thumbnail>https://mo.ciner.com.tr/showtv/iu/349x195/cukur.jpg</thumbnail>
<regex>
<name>getUrl</name>
<listrepeat><![CDATA[
  <title>[COLOR yellow][getUrl.param3][/COLOR]</title>
  <link>$doregex[makelist]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  return re.findall('(?s)href="([^"]+id=(\d+))".*?>([^"]+)</a>',re.findall('class="tab-header"(?s)(.*?)</ul>',page_data)[0])
]]></expres>
<page>https://puhutv.com/cukur-99-bolum-izle</page>
<referer></referer>
</regex>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param2]. Bölüm[/COLOR]</title>
  <link>$doregex[RexUrl]</link>
  <thumbnail>[makelist.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
    widgetID,itemID=re.findall('data-design-widget-id="(\d+).+?"serie_detail_tab"[\w\W]*?info_item_id=(\d+)',page_data)[0]
    count=15;pn=1;data=[]
    while pn <= int(count):
      purl='https://puhutv.com/ajax/widget/render?cms_design_widget_id=%s&content_pool_id_page_no=%s&exclude_item_ids=&info_item_id=%s&tab=serie-season&serie_season_id=[getUrl.param2]'%(widgetID,str(pn),itemID)
      source=requests.post(purl,headers={'user-agent':'','referer':'https://puhutv.com/cukur-99-bolum-izle[getUrl.param1]','accept':'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'}).content
      data +=re.findall('(?s)href.+?/(.+?(\d+)[^"]+).+?src="([^"]+)',re.findall('"dizi-detay-tab-content">(?s)(.*?)</nav',source)[0]);pn +=1
    return data
]]></expres>
<page>https://puhutv.com/cukur-99-bolum-izle[getUrl.param1]</page>
<referer>https://puhutv.com/cukur-99-bolum-izle</referer>
</regex>
<regex>
<name>RexUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  tok=re.findall('player.video.loader.+?(PUHU[^\'"]+)',page_data)[0]
  url='https://dygvideo.dygdigital.com/api/video_info?akamai=true&PublisherId=29&ReferenceId=%s&SecretKey=NtvApiSecret2014*'%tok
  return re.findall('"hls":"([^"]+)',requests.get(url,headers={'referer':'https://puhutv.com/[makelist.param1]','user-agent':'Mozilla/5.0'}).content.decode('ascii','ignore'))[0].replace('\\','')
]]></expres>
<page>https://puhutv.com/[makelist.param1]</page>
<referer>https://puhutv.com/</referer>
</regex>
</item>
 

tnico

New member
May 29, 2015
14
0
1
HI @streamwatcher2013, this regex stop to work.

<item>
<title>YOUTUBE SEARCH</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>([makelist.param3]) [makelist.param2]</title>
<urlsolve>hXXps://www.youtube.com/watch?v=[makelist.param1]</urlsolve>
<thumbnail>https://i.ytimg.com/vi/[makelist.param1]/hqdefault.jpg</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests,urllib,xbmc
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
def get_SearchQuery():
keyboard=xbmc.Keyboard();keyboard.setHeading('Search Here:');keyboard.doModal()
if keyboard.isConfirmed():
itext=urllib.quote_plus(keyboard.getText())
return itext
gtext=get_SearchQuery()
sUrl='https://m.youtube.com/results?search_query=%s'%gtext
jdata=requests.get(sUrl,headers={'user-agent':'ipad'}).content.replace('amp;','').replace('\u0026','&').replace('#038;','').replace('&#39;','\'').replace('&quot;','"')
list=re.findall('VideoRenderer":{"videoId":"([^"]+).+?"title":{"runs":\[{"text":"([^"]+).+?"lengthText":.+?(?:T|t)ext":"([^"]+)',jdata)
tok1=re.findall('"nextContinuationData":{"continuation":"([^"]+)',jdata)[0]
jdata1=requests.get('%s&ctoken=%s'%(sUrl,tok1),headers={'user-agent':'ipad','referer':sUrl}).content.replace('amp;','').replace('\u0026','&').replace('#038;','').replace('&#39;','\'').replace('&quot;','"')
list1=re.findall('VideoRenderer":{"videoId":"([^"]+).+?"title":{"runs":\[{"text":"([^"]+).+?"lengthText":.+?(?:T|t)ext":"([^"]+)',jdata1)
return list+list1
]]></expres>
<page></page>
</regex>
<thumbnail>https://www.wearediagram.com/hubfs/YouTube_Search.jpg</thumbnail>
<item>
 
Thread starter Similar threads Forum Replies Date
G Scraper Development 0
J Scraper Development 1
O Addon Requests 5