LSP Regex & Makelist Discussion.

Cosmix

Developer
May 16, 2016
4
1
3
Welcome back.
Myself and a few others will be happy you help with your LSP Regex problems or makelists.
This is where i started so lets bring back the good old days.
 

gujal

Developer
Dec 26, 2013
266
59
28
Nice, great job getting the thread stickied. Any chance of merging those 77 pages of posts in that other thread here?
 
  • Like
Reactions: hcalderwood4

myosmc

Member
May 18, 2018
48
0
6
someone has a regex for this site?
Bein:
hxxp://m.liveonlinetv247.info/external.php?title=beIN+Sports&stream=bein5-hq
 

gujal

Developer
Dec 26, 2013
266
59
28
Bein seems to be down currently.
The code is same for SkySports which works as below

Code:
<item>
<title>Sky Sports 1</title>
<link>$doregex[get-url]</link>
<regex>
<name>get-url</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re
  vcodes = eval(re.findall(r'var[^=]+=\s*(\[[^;]+)', page_data)[0])
  sval = int(re.findall(r'fromCharCode[^\d]+([\d]+)', page_data)[0])
  strpage = ''
  for vcode in vcodes:
    strpage += chr(vcode-sval)
  strurl = re.findall(r'source:\s*"([^"]+)', strpage)[0]
  return strurl
]]></expres>
<page>http://m.liveonlinetv247.info/external.php?title=Sky+Sports&amp;stream=skysports1-hq</page>
</regex>
</item>
 

judgie

New member
May 16, 2018
15
0
1
Hi glad our forum is back !

can someone help with making regex for

Code:
 hxxp://live.tv5monde.com/europe.html
only available in UK and need proxy

Thanks in advance
 

adrianhn

New member
Mar 20, 2014
15
3
3
hi, someone can help me with this
use a teler1um stream

Code:
hxxp://vipracing.tv/channel/bein-3/frame or  hxxp://vipracing.icu/channel/canal-0

Thanks in advance
 

tobotminer

Member
Jan 26, 2018
32
2
8
hi, anyone can help me with this site

Code:
https://www3.hdonline.eu/country/japan/
 

streamwatcher2013

Active member
Oct 24, 2013
461
81
28
USA
It should work fine if you install the cfscrape also change the urlresolver to resolverurl whichever you are using. I am using urlresolver so i wrote the code for it.
On the VIP server sometime need to open the link twice

Code:
<item>
<title>hdonline</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param5] [COLOR dodgerblue]([makelist.param2] - [makelist.param3])[/COLOR]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>[makelist.param4]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
 mdata=re.findall('(?s)"movie-item".+?href="(.+?(\d+)/)".+?quality">([^<]+).+?src="(.*?)".title="([^"]+)',page_data)
 count=re.findall('.+/(\d+).*?&raquo',page_data)[0];pn=2;data=[]
 while pn <= int(count):
   page='https://www3.hdonline.eu/country/japan/page/'+str(pn)+'/';source=requests.get(page).text
   data +=re.findall('(?s)"movie-item".+?href="(.+?(\d+)/)".+?quality">([^<]+).+?src="(.*?)".title="([^"]+)',source);pn +=1
 return mdata+data
]]></expres>
<page>$doregex[mUrl]</page>
</regex>
<regex>
<name>mUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,cfscrape
def GetLSProData(page_data,Cookie_Jar,m):# streamwatcher2013
  scraper=cfscrape.create_scraper();s=scraper.get('https://www3.hdonline.eu/country/japan/').content.decode('ascii','ignore')
  return re.findall('movies-list-full">(?s)(.*?)</nav',s)[0]
]]></expres>
<page></page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param5] [COLOR dodgerblue]([makelist2.param2])[/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist.param4]</thumbnail>
]]></listrepeat>
<expres><![CDATA[<li><a.id=".+?(\d).+?>([^<]+)]]></expres>
<page>[makelist.param1]</page>
<referer>https://www3.hdonline.eu/country/japan/</referer>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,urlresolver
def GetLSProData(page_data,Cookie_Jar,m):
  serv='[makelist2.param2]'
  if "STREAMANGO" in serv:
    inf=re.findall('(?s)id="server_list".+?data-smango="([^"]+).+?smango.+?"([^"]+)',page_data)[0]
    link=requests.get(inf[1]+inf[0],headers={'user-agent':'Mozilla/5.0','referer':'[makelist.param1]'},allow_redirects=False).url
    source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':link,'x-requested-with':'XMLHttpRequest'}).content
    inf=re.findall('(?s)var.suburl.+?(\d.+?).".+?extid.*?"([^"]+)',source)[0]
    return urlresolver.resolve('https://streamango.com/v/d/%s~%s/682'%(inf[1],inf[0]))
  elif "OPENLOAD" in serv:
    inf=re.findall('(?s)id="server_list".+?data-openload="([^"]+).+?open.+?"([^"]+)',page_data)[0]
    return urlresolver.resolve(inf[1]+inf[0])
  else:
    inf=re.findall('(?s)id="server_list".+?data-strgo="([^"]+).+?estr.+?"([^"]+)',page_data)[0]
    source=requests.get(inf[1]+inf[0],headers={'user-agent':'Mozilla/5.0','referer':'[makelist.param1]'}).content
    return re.findall('sources:.\[\{"file":"([^"]+)',source)[0]+'|user-agent=Mozilla/5.0&referer='+inf[1]+inf[0]
]]></expres>
<page>[makelist.param1]?ep=[makelist2.param1]</page>
<referer>[makelist.param1]</referer>
</regex>
</item>




 

vbprofi

Member
Feb 9, 2016
52
0
6
Hello,
I have tried, but on part with find out streamlinks of hosters, I haven't understand the javascript function annoying(s).
I think, experts here can complete this code.
Code:
<item>
<title>https://www3.hdonline.eu/country/japan/</title>
<link>$doregex[makelist]</link>

<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[makelist.param2]</title>
<link>$doregex[hosts]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#vbprofi
 return re.findall('(?s)<li.*?href="(.*?)".*?title="(.*?)".*?</li>', re.findall('movies-list movies-list-full(?s)(.*?)</ul>', page_data)[0])
]]></expres>
<page>https://www3.hdonline.eu/country/japan/</page>
</regex>

<regex>
<name>hosts</name>
<listrepeat><![CDATA[
<title>[hosts.param2] : [makelist.param2]</title>
<link>$doregex[play]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#vbprofi
 return re.findall('href="(.*?)".*?">(.*?)</a></li>', re.findall('gh-tabs gh-servertabs(?s)(.*?)</ul', page_data)[0])
]]></expres>
<page>[makelist.param1]</page>
</regex>
</item>
 

urualf

New member
Jan 19, 2016
22
0
1
hi guys please need help for watch in livestreampro this link hxxps://vk.com/video232247654_456239551 thanks
 

Picapau

Member
Nov 15, 2018
66
8
8
here it is, its link has been removed, so I did it with another similar one

Code:
<item>
<title>[COLOR lightgreen]https://vk.com/video232247654_456239600[/COLOR]</title>
<link>$doregex[fin]</link>
<regex>
<name>cristal</name>
<expres>hls":"(.*?)"</expres>
<page>https://vk.com/video232247654_456239600</page>
<referer>https://vk.com/</referer>
 <agent>Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0</agent>  
 <cookieJar></cookieJar>
</regex>
<regex>
<name>fin</name>
<expres>$pyFunction:('$doregex[cristal]').replace('\/','/')</expres>
<page></page>
</regex>
</item>
 
  • Like
Reactions: urualf

Rockey

Member
Sep 11, 2018
68
0
6
Hello gujal
is there a way to make a code for this channel?

Code:
https://www.arconaitv.us/stream.php?id=154
Thanks in advance
 

vbprofi

Member
Feb 9, 2016
52
0
6
Hello,
I get this error. What is happend / is the problem? that is my first trying with unpacker.
Code:
unsupported protocol([u'https) in [u'https://videoserver1.org/live/rXzCQmogVr2uVzIYljSBTg/1557149983/2a9c983cd60c0368a75f3e18f8112770.m3u8']
here the regex
Code:
<item>
<title>https://www.arconaitv.us/stream.php?id=154</title>
<link>$doregex[getstream]</link>

<regex>
<name>getstream</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#vbprofi
 return re.findall("src:'(https.*?)'", page_data)
]]></expres>
<page>$doregex[getunpacked]</page>
<referer>https://www.arconaitv.us/stream.php?id=154</referer>
<cookieJar></cookieJar>
</regex>

<regex>
<name>getunpacked</name>
<expres>$pyFunction:get_unpacked(page_data,'(eval\(function\(p,a,c,k,e,d.*)' )</expres>
<page>https://www.arconaitv.us/stream.php?id=154</page>
<referer>https://www.arconaitv.us/stream.php?id=154</referer>
<cookieJar></cookieJar>
</regex>
</item>
 

goldonx

New member
Mar 30, 2015
8
6
3
Because you have to write
Code:
re.findall("src:'(https.*?)'", page_data)[0]
and add user-agent in the final url stream otherwise stream doesn't work.
 

vbprofi

Member
Feb 9, 2016
52
0
6
thanks... that is working!
Code:
<item>
<title>https://www.arconaitv.us/stream.php?id=154</title>
<link>$doregex[getstream]|user-agent=Mozilla/5.0 (iPhone; CPU iPhone OS 9_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/47.0.2526.70 Mobile/13C71 Safari/601.1.46</link>

<regex>
<name>getstream</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#vbprofi
 return re.findall("src:'(https.*?)'", page_data)[0]
]]></expres>
<page>$doregex[getunpacked]</page>
<referer>https://www.arconaitv.us/stream.php?id=154</referer>
<cookieJar></cookieJar>
</regex>

<regex>
<name>getunpacked</name>
<expres>$pyFunction:get_unpacked(page_data,'(eval\(function\(p,a,c,k,e,d.*)' )</expres>
<page>https://www.arconaitv.us/stream.php?id=154</page>
<cookieJar></cookieJar>
</regex>
</item>
 

Rockey

Member
Sep 11, 2018
68
0
6
for me non of them worked. the arconai plugin gives error and the code from vbprofi also did not work for
 

streamwatcher2013

Active member
Oct 24, 2013
461
81
28
USA
Replace this part then it should works for you

Code:
<regex>
<name>getstream</name>
<expres><![CDATA[(?:source|file|src):.+?[\'"]([^\'"]+)]]></expres>
<page>$doregex[getunpacked]</page>
<referer>https://www.arconaitv.us/stream.php?id=154</referer>
<cookieJar></cookieJar>
</regex>
 

Rockey

Member
Sep 11, 2018
68
0
6
I replaced it Streamwatcher2013 but unfortunately it did not work in both versions..

Code:
<item>
<title>https://www.arconaitv.us/stream.php?id=154</title>
<link>$doregex[getstream]|user-agent=Mozilla/5.0 (iPhone; CPU iPhone OS 9_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/47.0.2526.70 Mobile/13C71 Safari/601.1.46</link>
<regex>
<name>getstream</name>
<expres><![CDATA[(?:source|file|src):.+?[\'"]([^\'"]+)]]></expres>
<page>$doregex[getunpacked]</page>
<referer>https://www.arconaitv.us/stream.php?id=154</referer>
<cookieJar></cookieJar>
</regex>
<regex>
<name>getunpacked</name>
<expres>$pyFunction:get_unpacked(page_data,'(eval\(function\(p,a,c,k,e,d.*)' )</expres>
<page>https://www.arconaitv.us/stream.php?id=154</page>
<cookieJar></cookieJar>
</regex>
</item>
 

streamwatcher2013

Active member
Oct 24, 2013
461
81
28
USA
Try this. Chane the urlresolver or resolverurl for your need

Code:
<item>
<title>https://www.arconaitv.us/stream.php?id=154</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
#  from resolveurl.plugins.lib import jsunpack
  from urlresolver.plugins.lib import jsunpack
  decode=jsunpack.unpack(re.findall('(eval\(function\(p,a,c,k,e,d.*)',page_data)[0]).replace('\\', '')
  return re.findall('(?:source|file|src):[\'"](h[^\'"]+)',decode)[0]+'|user-agent=ipad'
]]></expres>
<page>https://www.arconaitv.us/stream.php?id=154</page>
</regex>
</item>
 

streamwatcher2013

Active member
Oct 24, 2013
461
81
28
USA
You need to run 17.6 and above
 

Rockey

Member
Sep 11, 2018
68
0
6
Thanks streamwatcher2013. is there a way to make it play in jarvis? because higher versions of kodi run very slow on my device. specially in playback moment. my device is very old
if its not possible no problem.
 
Thread starter Similar threads Forum Replies Date
J Scraper Development 0
D Apple TV 4 44
O Addon Requests 5