Help for Regex

Status
Not open for further replies.

besttest2233

Banned
Jun 7, 2017
26
0
1
url kurdtvs.net url kurditv2.com


hi i want to know how i can learn to make website...
hi i want to know how i can learn to make website regex to watch webste tv please
 

keneddy

New member
May 4, 2018
3
0
1
Hi, good night, I need a regex for this link. hxxp://cdn422.micetop.us/content/sobdemanda/netcine-bucket/supernatural/01dub/01-BAIXO.mp4?ttl=1525490661&t=0ab4aa34b4fd7768f3f9987 f0bb5c177
 

urualf

Member
Jan 19, 2016
40
0
6
hxxp://diskokosmiko.mx/frankiepentangelli/el-virginiano-1962-41124/list,1,3

help please with this link ,thanks in advanced
 

emoliente

New member
Apr 24, 2016
2
0
0
hi anyone can help me with this link thx
Code:
hxxx://visionperuanatv.com/2013/03/frecuencia-latina-en-vivo.html
 

izac-rock

New member
May 2, 2018
32
0
0
help me please, it does not work, where is the error?

hxxps://pastebin.com/raw/xsGYcjns

please, please
 

streamwatcher2013

Well-known member
Oct 24, 2013
817
334
63
USA
help me please, it does not work, where is the error?

hxxps://pastebin.com/raw/xsGYcjns

please, please
Try this. You need referer

Code:
<item>
<title>[COLOR silver][B]forma d'agua [/B][/COLOR]</title>
<link>$doregex[vida]</link>
<regex>
<name>vida1</name>
<expres><![CDATA[addiframe\([\'"](.*?player[^"']+)]]></expres>
<page>http://player.mmfilmes.tv/embed/5828469841/</page>
<referer>http://www.mmfilmes.tv/a-forma-da-agua/</referer>
</regex>
<regex>
<name>vida</name>
<expres><![CDATA[[\'"](h.*?)[\'"].*?[1080|720]]]></expres>
<page>$doregex[vida1]</page>
<referer>http://player.mmfilmes.tv/embed/5828469841/</referer>
</regex>
</item>
 

streamwatcher2013

Well-known member
Oct 24, 2013
817
334
63
USA
url kurdtvs.net url kurditv2.com


hi i want to know how i can learn to make website...
hi i want to know how i can learn to make website regex to watch webste tv please
Try to put 2 sites together. Most of links from .net is not working

Code:
<item>
<title>http://www.kurditv2.com/ & http://kurdtvs.net/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param2]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>http://kurdtvs.net/img/logo.png</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  url1='http://www.kurditv2.com/';url2='http://kurdtvs.net/';source1=requests.get(url1,headers={'User-Agent':'Mozilla/5.0'}).text;source2=requests.get(url2,headers={'User-Agent':'Mozilla/5.0'}).text
  select1=re.findall(r'id=sidebar2>(?s)(.*?)</section',source1)[0];select2=re.findall(r'id="listcategoriesindex">(?s)(.*?)</section',source2)[0];list=select1+select2
  return re.findall('(?:"tvth".href=|class=pop-thumb.*\n.*src[\w\W]*?href=)"(.*?)".*?title="(?:Play.|)(.*?)(?:&|")',list)
]]></expres>
<page></page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,urllib,base64
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  murl='[makelist.param1]'
  if 'http' in murl:
     source=requests.get(murl,headers={'Referer':'http://www.kurditv2.com/'}).text
     if 'youtube' in source:
        return 'plugin://plugin.video.youtube/play/?video_id='+re.findall('youtube.com/embed/(.*?)\?',source)[0]
     elif 'm3u8' in source:
        return re.findall('(?:hls|file|sourceURL|x-mpegURL).*?[\'"](h.*?)[\'"]',source)[0]+'|Referer=makelist.param1]'
  elif 'http' not in murl:
     url='http://kurdtvs.net/[makelist.param1]'
     source=requests.get(url,headers={'Referer':'http://kurdtvs.net/'}).text
     if 'dailymotion' in source:
        return 'plugin://plugin.video.dailymotion_com/?mode=playVideo&url='+re.findall('dailymotion.*?/video/(.*?)[\'"]',source)[0]
     elif 'DM.player' in source:
        return 'plugin://plugin.video.dailymotion_com/?mode=playVideo&url='+re.findall('DM.player.*\n.*[\'"]([^_]+)',source)[0]
     elif 'aspx"' in source:
        link=re.findall('[\'"](h.*?aspx.*?)[\'"]',source)[0]
        source=requests.get(link,headers={'Referer':'http://kurdtvs.net/[makelist.param1]','Connection':'keep-alive','Cache-Control':'no-cache'}).text
        source=base64.b64decode(re.findall('eval\(.*?[\'"](.*?)[\'"]',source)[0])
        return re.findall('prmfi.*?[\'"](.*?)[\'"]',source)[0]+'|User-Agent=VLC&Referer='+link
     elif '/live"' in source:
        url=re.findall('[\'"](h.*?live)[\'"]',source)[0]
        source=requests.get(url,headers={'Referer':url,'Host':'www.kurdmax.tv','Connection':'keep-alive','Cache-Control':'no-cache'}).text
        return re.findall('sourceURL.*?[\'"](h.*?)[\'"]',source)[0]+'|Referer=http://kurdtvs.net/[makelist.param1]&User-Agent=VLC'
     elif 'giniko' in source:
        link=re.findall('src=[\'"](.*?giniko.*?)[\'"]',source)[0]
        source=requests.get(link,headers={'Referer':'http://kurdtvs.net/[makelist.param1]','Connection':'keep-alive','Cache-Control':'no-cache'}).text
        return re.findall('x-mpegurl[\w\W]*?src=[\'"](h.*?)[\'"]',source)[0]+'|Referer=%s&User-Agent=iPad'%link
     elif 'com/players' in source:
        url='http://'+re.findall('src=[\'"]//(.*?player.*?)[\'"]',source)[0]
        source=requests.get(url,headers={'Referer':'http://kurdtvs.net/[makelist.param1]','Connection':'keep-alive'}).text
        return re.findall('file[\'"].*?[\'"](h.*?m3u8)[\'"]',source)[0]+'|Referer=http://kurdtvs.net/[makelist.param1]&User-Agent=VLC'
     elif 'live.js' in source:
        inf=re.search(r'ch=[\'"](.*?)[\'"].*?=(\d+).*?=(\d+).*?src=[\'"](.*?)[\'"]',source)
        url='http://arembed.com/live.php?ch=%s&vw=%s&vh=%s&domain=kurdtvs.net'%(inf.group(1),inf.group(2),inf.group(3))
        source=requests.get(url,headers={'Referer':'http://kurdtvs.net/[makelist.param1]'}).text
        IDs=re.findall('channel=[\'"](.*?)[\'"]',source)[0]
        link='http://www.247bay.tv/hembedplayer/%s/2/700/400'%IDs
        source=requests.get(link,headers={'Referer':url}).text
        info=re.search(r'var.hlsUrl.*[\'"](.*?)[\'"].*?[\'"](.*?)[\'"].*\n.*Video\([\'"](.*?)[\'"][\w\W]*?ajax\(.*?[\'"](h.*?)[\'"].*?(\d+)',source)
        url=info.group(4)+info.group(5)
        source=requests.get(url,headers={'Referer':url}).text
        html=info.group(1)+re.findall('(\d.*)',source)[0]
        return html+info.group(2)+info.group(3)+'|User-Agent=VLC&Referer='+link
     elif 'm3u8' in source:
        return re.findall('(?:hls|file|sourceURL|x-mpegURL).*?[\'"](h.*?)[\'"]',source)[0]+'|Referer=http://kurdtvs.net/[makelist.param1]&User-Agent=VLC'
]]></expres>
<page></page>
</regex>
<thumbnail>http://kurdtvs.net/img/logo.png</thumbnail>
</item>
 
Last edited:

streamwatcher2013

Well-known member
Oct 24, 2013
817
334
63
USA
someone can help me url
Code:
www.kurditv2.com/
regex thx for everyone
If you want it by itself. Try this

Code:
<item>
<title>http://www.kurditv2.com/</title>http://www.kurditv2.com/
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param3]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[class=pop-thumb.*\n.*?src="(.*?)"[\w\W]*?href="(.*?)".*?title="(.*?)\s&]]></expres>
<page>http://www.kurditv2.com/</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  if 'm3u8' in page_data:
     return re.findall('(?:hls|file|sourceURL|x-mpegURL).*?[\'"](h.*?)[\'"]',page_data)[0]+'|Referer=makelist.param2]'
  elif 'youtube' in page_data:
     return 'plugin://plugin.video.youtube/play/?video_id='+re.findall('youtube.com/embed/(.*?)\?',page_data)[0]
]]></expres>
<page>[makelist.param2]</page>
</regex>
<thumbnail>http://www.kurditv2.com/wp-content/themes/anatv/logo/flogo.png</thumbnail>
</item>
 

vbprofi

Member
Feb 9, 2016
74
3
8
hello experts,
I need an solution for install addons from lsp list.
have someone an idea what kind of code I need for this part?
Code:
<expres><![CDATA[#$pyFunction
import ...
...
]]></expres>
 

streamwatcher2013

Well-known member
Oct 24, 2013
817
334
63
USA
hello experts,
I need an solution for install addons from lsp list.
have someone an idea what kind of code I need for this part?
Code:
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import ...
...
]=]=></expres>
You may GG for xbmc.executebuiltin("InstallAddon(id)")
 
Status
Not open for further replies.