Help for Regex

Status
Not open for further replies.

cezi1

Member
Aug 1, 2017
30
0
6
thank you but what can I do with that program please tell me

Bro. this is just a Video by showing you how to insert your url properly and not Public.
I've made the video for you so you can see how it's done
 

streamwatcher2013

Well-known member
Oct 24, 2013
811
332
63
USA
hi all,

anyone know why suddenly streamango does not work in lsp? im using this code, i already update latest lsp 2.8.4

Code:
<item>
<title>Better</title>
<thumbnail></thumbnail>
<urlsolve>https://streamango.com/embed/bspkfntlfpcklfos/</urlsolve>
</item>

<item>
<title>Better direct</title>
<thumbnail></thumbnail>
<link>https://streamango.com/embed/bspkfntlfpcklfos/</link>
</item>
A huge thank you. streamwatcher2013:)
Just small change on the .py code. Check your PM



 

streamwatcher2013

Well-known member
Oct 24, 2013
811
332
63
USA
Need your help for this link .Than you in advance

Code:
http://sugarwaterradio.com/sugarwatertv/
seems rtmp ?
I got to go but may be this one play for you

Code:
<overspillBackup isForce="false" name="procasterbench3" url="rtmp://cp91478.live.edgefcs.net/live/[email protected]"/>
<overspillBackup isForce="false" name="procasterbench2" url="rtmp://cp91478.live.edgefcs.net/live/[email protected]"/>
<overspillBackup isForce="true" name="anupam" url="rtmp://cp112881.live.edgefcs.net/live/[email protected]"/>
<overspillBackup isForce="false" name="oprahsnextchapter" url="rtmp://cp91478.live.edgefcs.net/live/[email protected]"/>
<overspillBackup isForce="false" name="grammyawards" url="rtmp://cp91478.live.edgefcs.net/live/[email protected]"/>
<overspillBackup isForce="true" name="livepaultv" url="rtmp://cp112881.live.edgefcs.net/live/[email protected]"/>
 

kabcasa

New member
Apr 28, 2015
21
0
1
At home
I got to go but may be this one play for you

Code:
<overspillBackup isForce="false" name="procasterbench3" url="rtmp://cp91478.live.edgefcs.net/live/[email protected]"/>
<overspillBackup isForce="false" name="procasterbench2" url="rtmp://cp91478.live.edgefcs.net/live/[email protected]"/>
<overspillBackup isForce="true" name="anupam" url="rtmp://cp112881.live.edgefcs.net/live/[email protected]"/>
<overspillBackup isForce="false" name="oprahsnextchapter" url="rtmp://cp91478.live.edgefcs.net/live/[email protected]"/>
<overspillBackup isForce="false" name="grammyawards" url="rtmp://cp91478.live.edgefcs.net/live/[email protected]"/>
<overspillBackup isForce="true" name="livepaultv" url="rtmp://cp112881.live.edgefcs.net/live/[email protected]"/>
thank you streamwatcher2013 but couldn't use it .
the stream is here also
Code:
http://original.livestream.com/sugarwatertv
 

streamwatcher2013

Well-known member
Oct 24, 2013
811
332
63
USA
Please, if possible

Code:
hxxp://www.socceron.md/
Thanks in advance.
Try this. Movie need a streamango updates

Code:
<item>
<title>http://www.socceron.md/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param2]</title>
  <link>$doregex[getUrl]</link>
]]></listrepeat>
<expres><![CDATA[href="(.*?)".class=".*\n(?:.*2">|.*?)(\w.*?)</span]]></expres>
<page>http://www.socceron.md/framev.htm</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,urlresolver
def GetLSProData(page_data,Cookie_Jar,m,purl='http://www.socceron.md/'):
  link=re.findall('iframe.src=[\'"]([^\'"]+)',requests.get(purl+re.findall('iframe.src=[\'"](?:.*?md/|)([^\'"]+)',page_data)[0]).text)[0]
  if 'streamango' in link:
    return urlresolver.resolve(link)
  else:
    return re.findall('source.*?[\'"]([^\'"]+)',requests.get(purl+link).text)[0]+'|User-Agent=VLC'
]]></expres>
<page>http://www.socceron.md/[makelist.param1]</page>
</regex>
</item>


 

judgie

New member
May 16, 2018
17
0
1
Hi can someone help with this
Code:
hxxp://www.total-sport.tv/?page=live&id=22427&name=streaming-canal
thanks very much in advance
 

captainhardlock

New member
Jun 6, 2017
25
0
1
Try this. Movie need a streamango updates

Code:
<item>
<title>http://www.socceron.md/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param2]</title>
  <link>$doregex[getUrl]</link>
]]></listrepeat>
<expres><![CDATA[href="(.*?)".class=".*\n(?:.*2">|.*?)(\w.*?)</span]]></expres>
<page>http://www.socceron.md/framev.htm</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,urlresolver
def GetLSProData(page_data,Cookie_Jar,m,purl='http://www.socceron.md/'):
  link=re.findall('iframe.src=[\'"]([^\'"]+)',requests.get(purl+re.findall('iframe.src=[\'"](?:.*?md/|)([^\'"]+)',page_data)[0]).text)[0]
  if 'streamango' in link:
    return urlresolver.resolve(link)
  else:
    return re.findall('source.*?[\'"]([^\'"]+)',requests.get(purl+link).text)[0]+'|User-Agent=VLC'
]]></expres>
<page>http://www.socceron.md/[makelist.param1]</page>
</regex>
</item>


Hi there streamwatcher2013

Thanks very very much.

But it seems that it does not work...

(i'm workin' with LSP 2.8.2)
 
Last edited:

vbprofi

Member
Feb 9, 2016
74
3
8
Just small change on the .py code. Check your PM



I'm interested too. what kind of small change is need? with this code that isn't work too.
Code:
def GetLSProData(page_data,Cookie_Jar,m,url='https://streamango.com/embed/[makelist.param1]'):
   import resolveurl
   u = resolveurl.resolve(url)
   return u
 

streamwatcher2013

Well-known member
Oct 24, 2013
811
332
63
USA
I'm interested too. what kind of small change is need? with this code that isn't work too.
Code:
def GetLSProData(page_data,Cookie_Jar,m,url='https://streamango.com/embed/[makelist.param1]'):
   import resolveurl
   u = resolveurl.resolve(url)
   return u
Check your PM. It should work for both urlresolver and resolveurl
 

igor_rangel7l

New member
Jul 30, 2016
3
0
0
someone can help me make regex for me thank forever one

hxxp://m.tudotv.tv/assistir-sportv-ao-vivo-online-gratis-em-hd-2400-horas/
 

tobotminer

Member
Jan 26, 2018
49
4
8
hi master,

anyone can check why the code not able to play the stream. im using latest lsp from gujal repo.

Code:
<item>
<title> Drama (Chinese)</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
   <title>[COLOR gold] [makelist.param2][/COLOR] [COLOR dodgerblue][makelist.param4][/COLOR]</title>
   <link>$doregex[makelist2]</link>
   <thumbnail>[makelist.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
 baseurl='http://kissdrama.club/browse/chinese/dramas/all/all/all/0/';startpage=1;tagurl=''
 numregex='href="/browse.*?([1-9])">'+re.escape(tagurl)+'\n';dataregex='href="/(.*?)".title="(.*?)\s-.*?src="(.*?)".*\n.*"status">(.*?)<';furl=baseurl+str(startpage)+tagurl
 source=requests.get(furl,headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0'}).text
 data=[]
 try:
   last=sorted(map(int,re.findall(numregex, source)))[-1]
 except:
   last=9
 while startpage <= last:
    try:
        furl=baseurl+str(startpage)+tagurl;source=requests.get(furl,headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0'}).text
        lists=re.findall('class="grid">(?s)(.*?)class="paging"',source)[0].replace(''','\'');data += re.findall(dataregex,lists)
        startpage += 1
    except:
        pass
 return data
]]></expres>
<page></page>
<cookieJar></cookieJar>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
   <title>[COLOR gold] [makelist.param2][/COLOR] [COLOR dodgerblue](Episode [makelist2.param2])[/COLOR]</title>
   <link>$doregex[getUrl]</link>
   <thumbnail>[makelist.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('"eps-left".*\n.*href="/(.*?(\d+))"',page_data)
]]></expres>
<page>http://kissdrama.club/[makelist.param1]</page>
<agent>Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0</agent>
<cookieJar></cookieJar>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  url=re.findall('src="(http.*?embed.*?)"',page_data)[0];source=requests.get(url,headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0','Referer':'http://kissdrama.club/[makelist2.param1]','Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'}).text
  link='http://hdfree.se'+re.findall('src="(.*?embed[^"]+)"',source)[0];headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0','Host':'hdfree.se','Referer':url,'Accept':'video/webm,video/ogg,video/*;q=0.9,application/ogg;q=0.7,audio/*;q=0.6,*/*;q=0.5'}
  source=requests.get(link,headers=headers,allow_redirects=False);return source.headers['Location']
]]></expres>
<page>http://kissdrama.club/[makelist2.param1]</page>
<agent>Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0</agent>
<cookieJar></cookieJar>
</regex>
</item>
 

regixman

Member
May 30, 2018
31
0
6
need your help. thank you
hxxps://www.stream4free.live/tf1-live-streaming
hxxps://www.stream4free.live/tv-live-france
 

kabcasa

New member
Apr 28, 2015
21
0
1
At home
hi master,

anyone can check why the code not able to play the stream. im using latest lsp from gujal repo.

Code:
<item>
<title> Drama (Chinese)</title>
<link>https://www.tvaddons.co/forums/$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><=!=[=C=D=A=T=A=[
   <title>[COLOR gold] [makelist.param2][/COLOR] [COLOR dodgerblue][makelist.param4][/COLOR]</title>
   <link>https://www.tvaddons.co/forums/$doregex[makelist2]</link>
   <thumbnail>[makelist.param3]</thumbnail>
]=]=></listrepeat>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
 baseurl='http://kissdrama.club/browse/chinese/dramas/all/all/all/0/';startpage=1;tagurl=''
 numregex='href="/browse.*?([1-9])">'+re.escape(tagurl)+'\n';dataregex='href="/(.*?)".title="(.*?)\s-.*?src="(.*?)".*\n.*"status">(.*?)<';furl=baseurl+str(startpage)+tagurl
 source=requests.get(furl,headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0'}).text
 data=[]
 try:
   last=sorted(map(int,re.findall(numregex, source)))[-1]
 except:
   last=9
 while startpage <= last:
    try:
        furl=baseurl+str(startpage)+tagurl;source=requests.get(furl,headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0'}).text
        lists=re.findall('class="grid">(?s)(.*?)class="paging"',source)[0].replace(''','\'');data += re.findall(dataregex,lists)
        startpage += 1
    except:
        pass
 return data
]=]=></expres>
<page></page>
<cookieJar></cookieJar>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><=!=[=C=D=A=T=A=[
   <title>[COLOR gold] [makelist.param2][/COLOR] [COLOR dodgerblue](Episode [makelist2.param2])[/COLOR]</title>
   <link>https://www.tvaddons.co/forums/$doregex[getUrl]</link>
   <thumbnail>[makelist.param3]</thumbnail>
]=]=></listrepeat>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('"eps-left".*\n.*href="/(.*?(\d+))"',page_data)
]=]=></expres>
<page>http://kissdrama.club/[makelist.param1]</page>
<agent>Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0</agent>
<cookieJar></cookieJar>
</regex>
<regex>
<name>getUrl</name>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  url=re.findall('src="(http.*?embed.*?)"',page_data)[0];source=requests.get(url,headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0','Referer':'http://kissdrama.club/[makelist2.param1]','Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'}).text
  link='http://hdfree.se'+re.findall('src="(.*?embed[^"]+)"',source)[0];headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0','Host':'hdfree.se','Referer':url,'Accept':'video/webm,video/ogg,video/*;q=0.9,application/ogg;q=0.7,audio/*;q=0.6,*/*;q=0.5'}
  source=requests.get(link,headers=headers,allow_redirects=False);return source.headers['Location']
]=]=></expres>
<page>http://kissdrama.club/[makelist2.param1]</page>
<agent>Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0</agent>
<cookieJar></cookieJar>
</regex>
</item>
change the last regex to this code and check if urlresolver is installed :
Code:
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests , resolveurl , urlresolver
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  url=re.findall('src="(http.*?embed.*?)"',page_data)[0]
  source=requests.get(url,headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0',
    'Referer':'http://kissdrama.club/[makelist2.param1]','Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'}).text
  link='http://hdfree.se'+re.findall('src="(.*?embed[^"]+)"',source)[0]
  headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0','Host':'hdfree.se','Referer':url,'Accept':'video/webm,video/ogg,video/*;q=0.9,application/ogg;q=0.7,audio/*;q=0.6,*/*;q=0.5'}
  source=requests.get(link,headers=headers,allow_redirects=False)
  url = source.headers['Location']
  try :
   u = resolveurl.resolve(url)
  except : u  = urlresolver.resolve(url)
  return u
]]></expres>
 
Last edited:
Status
Not open for further replies.