Help for Regex

Status
Not open for further replies.

Million

New member
Dec 9, 2018
24
1
3
Can somone help me to regex this

Code:
Channel:
http://loadbalancer2.galaxystreamz.xyz:8880/albbe2030/digiaksion/playlist.m3u8
Tokken:
http://swiftstreamz.com/token1121.php
User&Password:
@Swift11#
@Swift11#
 

vbprofi

Member
Feb 9, 2016
74
3
8
Can somone help me to regex this

Code:
Channel:
http://loadbalancer2.galaxystreamz.xyz:8880/albbe2030/digiaksion/playlist.m3u8
Tokken:
http://swiftstreamz.com/token1121.php
User&Password:
@Swift11#
@Swift11#
please post the original webpage link, from where you the streamlink get.
 
Last edited:

vbprofi

Member
Feb 9, 2016
74
3
8
I need a regex for german dubbed movies. Can you help me if it's possible please.

Code:
https://pastebin.com/raw/rdxL8KgS
I'm interessted for a working solution too. I have try to fix it, but it is to hard for me. I can't parse from page.
 
Last edited:

opg2014

New member
Jun 7, 2017
8
0
1
Can someone help me to regex this site?
hxxp://123tv.live/watch/cnn/

I'm searching in this thread, with not luck.
Thank you!
 

opg2014

New member
Jun 7, 2017
8
0
1
Help Regex

Can somone help me to regex this:

hxxp : // 123tv . live / watch / cn n/
Remove spaces

Im looking for in all thread, with no luck...
Thanks in advance!
 

kavan

Member
Aug 14, 2016
62
5
8
is it possible to have a regex for this site?
Code:
https://www.glwiz.com/Pages/Player/Player.aspx
Persian channels


Thanks in advance
 
Last edited:

Picapau

Member
Nov 15, 2018
69
9
8
Can somone help me to regex this:

hxxp : // 123tv . live / watch / cn n/
Remove spaces

Im looking for in all thread, with no luck...
Thanks in advance!


here you have it working

Code:
<item>
<title>http://123tv.live/watch/cnn/</title>
<link>$doregex[cristalazul]?1&json=Q05OfHxodHRwOi8vMTIzdHYubGl2ZS93cC1jb250ZW50L3VwbG9hZHMvMjAxOC8wOC9jbm4ucG5n|Referer=http://123tv.live/watch/cnn/&User-Agent=Mozilla/5.0 (Windows NT 6.1; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0</link>
<regex>
<name>b64</name>
<expres>atob\('(.*?)'</expres>
<page>http://123tv.live/watch/cnn/</page>
<referer>http://123tv.live/</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>cristalazul</name>
<expres>$pyFunction:base64.b64decode('$doregex[b64]')</expres>
<page></page>
</regex>
</item>
 

Rockey

Member
Sep 11, 2018
68
0
6
is it possible to have a regex for this site?
Code:
https://www.glwiz.com/Pages/Player/Player.aspx
Persian channels


Thanks in advance
Few days ago i have asked the same page but with all categories not only persian, and maybe with a better video resolution. Needs some more time be patient experts here are workin on it.
 

Picapau

Member
Nov 15, 2018
69
9
8
Hi.Can u help me this regex:
hxxp://www.axadledirect.com/channel/view/rtd-en-direct-19
very easy


Code:
<item>
<title>axaledirect</title>
<link>rtsp://www.axadledirect.com:1936/19/stream|Referer=http://www.axadledirect.com/channel/view/rtd-en-direct-19&User-Agent=Mozilla/5.0 (Windows NT 6.1; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0</link>
</item>
 

altug

Member
Jul 7, 2016
67
2
8
Can someone help me? It does not work

Code:
<item>
<title>Muhteşem İkili Bölümler</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param3] Bölüm[/COLOR]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>https://[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  count=1;pn=1;data=[]
  while pn <= int(count):
    page='https://www.kanald.com.tr/muhtesem-ikili/bolumler?page='+str(pn);source=requests.get(page).text
    data +=re.findall('"bg-wrapper".+?href="/(.*?)".+?data.+?//(.*?)".alt="(.*?)\sB.+?id="([^"]+)',re.findall('class="kd-docs-thumbnails">(?s)(.*?)<li class="next',source)[0]);pn +=1
  return  data
]]></expres>
<page>https://www.kanald.com.tr/muhtesem-ikili/bolumler</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param3] Bölüm[/COLOR] (Eps. [makelist2.param2])</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>https://[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('href="(\?p=(\d+))"',re.findall('id="partPaginator">(?s)(.*?)</ul',page_data)[0])
]]></expres>
<page>https://www.kanald.com.tr/[makelist.param1]</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  source=requests.get('https://www.kanald.com.tr/actions/content/media/[makelist.param4][makelist2.param1]&pc=6',headers={'referer':'https://www.kanald.com.tr/[makelist.param1]'}).text.replace('\u0026','&')
  inf=re.findall('"ServiceUrl":"(.*?)"."SecurePath":"([^"]+)',source)[0];m3u8=inf[0]+inf[1]
  source=requests.get(m3u8,headers={'Referer':'https://www.kanald.com.tr/[makelist.param1][makelist2.param1]'}).text
  if '1250000' in source:
    return m3u8.replace('index','1000/prog_index')+'|Referer=https://www.kanald.com.tr/[makelist.param1][makelist2.param1]'
  elif '1000000' in source:
    return m3u8.replace('index','750/prog_index')+'|Referer=https://www.kanald.com.tr/[makelist.param1][makelist2.param1]'
  elif '750000' in source:
    return m3u8.replace('index','500/prog_index')+'|Referer=https://www.kanald.com.tr/[makelist.param1][makelist2.param1]'
]]></expres>
<page></page>
</regex>
<thumbnail>https://s.kanald.com.tr/ps/kanald/70/204x100/5bb7a9609850b92724b8ebbb.png</thumbnail>
</item>
 

BymemoLee

Member
Apr 30, 2018
86
13
8
Can someone help me? It does not work

Code:
<item>
<title>Muhteşem İkili Bölümler</title>
<link>https://www.tvaddons.co/forums/$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><=!=[=C=D=A=T=A=[
  <title>[COLOR gold][makelist.param3] Bölüm[/COLOR]</title>
  <link>https://www.tvaddons.co/forums/$doregex[makelist2]</link>
  <thumbnail>https://[makelist.param2]</thumbnail>
]=]=></listrepeat>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  count=1;pn=1;data=[]
  while pn <= int(count):
    page='https://www.kanald.com.tr/muhtesem-ikili/bolumler?page='+str(pn);source=requests.get(page).text
    data +=re.findall('"bg-wrapper".+?href="/(.*?)".+?data.+?//(.*?)".alt="(.*?)\sB.+?id="([^"]+)',re.findall('class="kd-docs-thumbnails">(?s)(.*?)<li class="next',source)[0]);pn +=1
  return  data
]=]=></expres>
<page>https://www.kanald.com.tr/muhtesem-ikili/bolumler</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><=!=[=C=D=A=T=A=[
  <title>[COLOR gold][makelist.param3] Bölüm[/COLOR] (Eps. [makelist2.param2])</title>
  <link>https://www.tvaddons.co/forums/$doregex[getUrl]</link>
  <thumbnail>https://[makelist.param2]</thumbnail>
]=]=></listrepeat>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('href="(\?p=(\d+))"',re.findall('id="partPaginator">(?s)(.*?)</ul',page_data)[0])
]=]=></expres>
<page>https://www.kanald.com.tr/[makelist.param1]</page>
</regex>
<regex>
<name>getUrl</name>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  source=requests.get('https://www.kanald.com.tr/actions/content/media/[makelist.param4][makelist2.param1]&pc=6',headers={'referer':'https://www.kanald.com.tr/[makelist.param1]'}).text.replace('\u0026','&')
  inf=re.findall('"ServiceUrl":"(.*?)"."SecurePath":"([^"]+)',source)[0];m3u8=inf[0]+inf[1]
  source=requests.get(m3u8,headers={'Referer':'https://www.kanald.com.tr/[makelist.param1][makelist2.param1]'}).text
  if '1250000' in source:
    return m3u8.replace('index','1000/prog_index')+'|Referer=https://www.kanald.com.tr/[makelist.param1][makelist2.param1]'
  elif '1000000' in source:
    return m3u8.replace('index','750/prog_index')+'|Referer=https://www.kanald.com.tr/[makelist.param1][makelist2.param1]'
  elif '750000' in source:
    return m3u8.replace('index','500/prog_index')+'|Referer=https://www.kanald.com.tr/[makelist.param1][makelist2.param1]'
]=]=></expres>
<page></page>
</regex>
<thumbnail>https://s.kanald.com.tr/ps/kanald/70/204x100/5bb7a9609850b92724b8ebbb.png</thumbnail>
</item>
Code:
<item>
<title>[COLOR gold]Muhteşem İkili[/COLOR]</title>
<link>$doregex[encodedURL]|User-Agent=iPad</link>

<regex>

<name>encodedURL</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][encodedURL.param3][/COLOR]</title>
  <link>$doregex[makelist]</link>
  <thumbnail>https://[encodedURL.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  count=1;pn=1;data=[]
  while pn <= int(count):
     page='https://www.kanald.com.tr/muhtesem-ikili/bolumler?page='+str(pn);source=requests.get(page).content;list=re.findall('class="kd-docs-thumbnails">(?s)(.*?)<li class="next',source)[0].replace('Ö','O').replace('ö','ö').replace('Ç','Ç').replace('ü','ü')
     data +=re.findall('.+?href="/(.+?)".*\n.*data.+?//(.*?)".alt=".*?\s.*?\s([^"]+)"[\w\W]*?id="([^"]+)',list);pn +=1
  return data
]]></expres>
<page>https://www.kanald.com.tr/muhtesem-ikili/bolumler</page>
</regex>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][encodedURL.param3][/COLOR] ([makelist.param2]. Part)</title>
  <link>$doregex[getUrl]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('href="(\?p=(\d+))"',re.findall('id="partPaginator">(?s)(.*?)</ul',page_data)[0])
]]></expres>
<page>https://www.kanald.com.tr/[encodedURL.param1]</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  source=requests.get('https://www.kanald.com.tr/actions/content/media/[encodedURL.param4][makelist.param1]&pc=6',headers={'referer':'https://www.kanald.com.tr/[encodedURL.param1]'}).text.replace('\u0026','&')
  inf=re.findall('"ServiceUrl":"(.*?)"."SecurePath":"([^"]+)',source)[0];m3u8=inf[0]+inf[1]
  return m3u8.replace('index','1000/prog_index') +'|Referer=https://www.kanald.com.tr/[encodedURL.param1][makelist.param1]'
]]></expres>
<page></page>
</regex>
<thumbnail>https://s.kanald.com.tr/ps/kanald/70/0x0/5bb7a9609850b92724b8ebbb.png</thumbnail>
</item>
 

altug

Member
Jul 7, 2016
67
2
8
Code:
<item>
<title>[COLOR gold]Muhteşem İkili[/COLOR]</title>
<link>https://www.tvaddons.co/forums/$doregex[encodedURL]|User-Agent=iPad</link>

<regex>

<name>encodedURL</name>
<listrepeat><=!=[=C=D=A=T=A=[
  <title>[COLOR gold][encodedURL.param3][/COLOR]</title>
  <link>https://www.tvaddons.co/forums/$doregex[makelist]</link>
  <thumbnail>https://[encodedURL.param2]</thumbnail>
]=]=></listrepeat>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  count=1;pn=1;data=[]
  while pn <= int(count):
     page='https://www.kanald.com.tr/muhtesem-ikili/bolumler?page='+str(pn);source=requests.get(page).content;list=re.findall('class="kd-docs-thumbnails">(?s)(.*?)<li class="next',source)[0].replace('Ö','O').replace('ö','ö').replace('Ç','Ç').replace('ü','ü')
     data +=re.findall('.+?href="/(.+?)".*\n.*data.+?//(.*?)".alt=".*?\s.*?\s([^"]+)"[\w\W]*?id="([^"]+)',list);pn +=1
  return data
]=]=></expres>
<page>https://www.kanald.com.tr/muhtesem-ikili/bolumler</page>
</regex>
<regex>
<name>makelist</name>
<listrepeat><=!=[=C=D=A=T=A=[
  <title>[COLOR gold][encodedURL.param3][/COLOR] ([makelist.param2]. Part)</title>
  <link>https://www.tvaddons.co/forums/$doregex[getUrl]</link>
]=]=></listrepeat>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('href="(\?p=(\d+))"',re.findall('id="partPaginator">(?s)(.*?)</ul',page_data)[0])
]=]=></expres>
<page>https://www.kanald.com.tr/[encodedURL.param1]</page>
</regex>
<regex>
<name>getUrl</name>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  source=requests.get('https://www.kanald.com.tr/actions/content/media/[encodedURL.param4][makelist.param1]&pc=6',headers={'referer':'https://www.kanald.com.tr/[encodedURL.param1]'}).text.replace('\u0026','&')
  inf=re.findall('"ServiceUrl":"(.*?)"."SecurePath":"([^"]+)',source)[0];m3u8=inf[0]+inf[1]
  return m3u8.replace('index','1000/prog_index') +'|Referer=https://www.kanald.com.tr/[encodedURL.param1][makelist.param1]'
]=]=></expres>
<page></page>
</regex>
<thumbnail>https://s.kanald.com.tr/ps/kanald/70/0x0/5bb7a9609850b92724b8ebbb.png</thumbnail>
</item>
Super Thank you,functions perfectly!
 

streamwatcher2013

Well-known member
Oct 24, 2013
817
334
63
USA
Can someone help me? It does not work

Code:
<item>
<title>Muhteşem İkili Bölümler</title>
<link>https://www.tvaddons.co/forums/$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><=!=[=C=D=A=T=A=[
  <title>[COLOR gold][makelist.param3] Bölüm[/COLOR]</title>
  <link>https://www.tvaddons.co/forums/$doregex[makelist2]</link>
  <thumbnail>https://[makelist.param2]</thumbnail>
]=]=></listrepeat>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  count=1;pn=1;data=[]
  while pn <= int(count):
    page='https://www.kanald.com.tr/muhtesem-ikili/bolumler?page='+str(pn);source=requests.get(page).text
    data +=re.findall('"bg-wrapper".+?href="/(.*?)".+?data.+?//(.*?)".alt="(.*?)\sB.+?id="([^"]+)',re.findall('class="kd-docs-thumbnails">(?s)(.*?)<li class="next',source)[0]);pn +=1
  return  data
]=]=></expres>
<page>https://www.kanald.com.tr/muhtesem-ikili/bolumler</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><=!=[=C=D=A=T=A=[
  <title>[COLOR gold][makelist.param3] Bölüm[/COLOR] (Eps. [makelist2.param2])</title>
  <link>https://www.tvaddons.co/forums/$doregex[getUrl]</link>
  <thumbnail>https://[makelist.param2]</thumbnail>
]=]=></listrepeat>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('href="(\?p=(\d+))"',re.findall('id="partPaginator">(?s)(.*?)</ul',page_data)[0])
]=]=></expres>
<page>https://www.kanald.com.tr/[makelist.param1]</page>
</regex>
<regex>
<name>getUrl</name>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  source=requests.get('https://www.kanald.com.tr/actions/content/media/[makelist.param4][makelist2.param1]&pc=6',headers={'referer':'https://www.kanald.com.tr/[makelist.param1]'}).text.replace('\u0026','&')
  inf=re.findall('"ServiceUrl":"(.*?)"."SecurePath":"([^"]+)',source)[0];m3u8=inf[0]+inf[1]
  source=requests.get(m3u8,headers={'Referer':'https://www.kanald.com.tr/[makelist.param1][makelist2.param1]'}).text
  if '1250000' in source:
    return m3u8.replace('index','1000/prog_index')+'|Referer=https://www.kanald.com.tr/[makelist.param1][makelist2.param1]'
  elif '1000000' in source:
    return m3u8.replace('index','750/prog_index')+'|Referer=https://www.kanald.com.tr/[makelist.param1][makelist2.param1]'
  elif '750000' in source:
    return m3u8.replace('index','500/prog_index')+'|Referer=https://www.kanald.com.tr/[makelist.param1][makelist2.param1]'
]=]=></expres>
<page></page>
</regex>
<thumbnail>https://s.kanald.com.tr/ps/kanald/70/204x100/5bb7a9609850b92724b8ebbb.png</thumbnail>
</item>

Just add (?s) before "bg-wrapper" to this line

Code:
data +=re.findall('(?s)"bg-wrapper".+?href="/(.*?)".+?data.+?//(.*?)".alt="(.*?)\sB.+?id="([^"]+)',re.findall('class="kd-docs-thumbnails">(?s)(.*?)<li class="next',source)[0]);pn +=1
 

streamwatcher2013

Well-known member
Oct 24, 2013
817
334
63
USA
is it possible to have a regex for this site?
Code:
https://www.glwiz.com/Pages/Player/Player.aspx
Persian channels


Thanks in advance
Few days ago i have asked the same page but with all categories not only persian, and maybe with a better video resolution. Needs some more time be patient experts here are workin on it.
They only post low resolution video, nothing I can do. Try this:

Code:
https://pastebin.com/raw/XmndwALP
 

Rockey

Member
Sep 11, 2018
68
0
6
They only post low resolution video, nothing I can do. Try this:

Code:
https://pastebin.com/raw/XmndwALP
Thank you very much master. Appreciate your hard work but one thing that the main directory and channels take long time to load than the previous version that you made, and some of channels like GEM group or Nat Geo Farsi and etc.. doesn't work on code but they work on website.

If you dont feel like working on it more, doesn't matter dont bother with it.

And happy Christmas and New Year in advance to all forum and you Masters that help us no matter what.

Peace
 
Last edited:
Status
Not open for further replies.