Help for Regex

Status
Not open for further replies.

kavan

Member
Aug 14, 2016
62
5
8
@streamwatcher2013
Can you help me with regex for this ...
Please
Code:
http://s1.tinydl.info/Movies2/
Thank You
 

Beezlo

Member
Mar 17, 2016
31
0
6
Hi gurus,

who can this fix they doesnt works more.

thanks in advance

<item>
<title>[COLOR orange]A[COLOR white]RKA SOKAKLAR [/COLOR]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR gold]Arka-Sokaklar-[makelist.param3] Bölümler/[/COLOR]</title>
<link>$doregex[makelist2]</link>
<thumbnail>https://[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
return re.findall('clearfix"><a.href="/(.*?)".+?src="//(.*?)".+?sokaklar.(.+?|\d+\.)\s.+?id="([^"]+)',re.findall('</h2>(?s)(.*?)<ul',page_data)[0])
]]></expres>
<page>hxxps://www.kanald.com.tr/arka-sokaklar/bolumler</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
<title>[COLOR skyblue][makelist.param3] Bölümler[/COLOR] | [COLOR gold]Part [makelist2.param2][/COLOR]</title>
<link>$doregex[getUrl]</link>
<thumbnail>https://[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatche2013
return re.findall('href="(.*?)">(\d+)',re.findall('id="partPaginator">(?s)(.*?)</ul',page_data)[0])
]]></expres>
<page>hxxps://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>
<fanart>http://www.pixelstalk.net/wp-content/uploads/2016/07/Pink-And-Black-HD-Background.jpg</fanart>
<thumbnail>https://cdn.cinematerial.com/p/500x/6saufeie/arka-sokaklar-turkish-movie-poster.jpg</thumbnail>
</item>
 
Last edited by a moderator:

Beezlo

Member
Mar 17, 2016
31
0
6
Hi again

this works also not :(

<item>
<title>[COLOR orange]G[COLOR white]ÜLPERI[/COLOR]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR yellow][makelist.param3][/COLOR]</title>
<link>$doregex[makelist2]</link>
<thumbnail>[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
return re.findall('(?s)href="/(.*?)".*?src="(.*?)".*?title">([^<]+)',re.findall('class="swiper-wrapper">(?s)(.*?)"section-series-program-info',page_data)[0])
]]></expres>
<page>hxxps://www.showtv.com.tr/dizi/tum_bolumler/gulperi-sezon-1-bolum-4-izle/64426</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
<title>[COLOR yellow]Episode [makelist2.param2]. Bölüm[/COLOR]</title>
<link>$doregex[getUrl]</link>
<thumbnail>[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
return re.findall('href="/(.*?)">([^<]+)',re.findall('class="video-part">(?s)(.*?)</ul',page_data)[0])
]]></expres>
<page>hxxps://www.showtv.com.tr/[makelist.param1]</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
list=re.findall('"ht_files"(?s)(.*?)<script',page_data)[0].replace('\\','')
if '1080' in list:
return re.findall('"name":"1080"."file":"([^"]+)',list)[-1]+'|User-Agent=iPad&Referer=https://www.showtv.com.tr/[makelist2.param1]'
elif '720' in list:
return re.findall('"name":"720"."file":"([^"]+)',list)[-1]+'|User-Agent=iPad&Referer=https://www.showtv.com.tr/[makelist2.param1]'
elif 'ht_mobile' in list:
return re.findall('"ht_mobile_m3u8":"([^"]+)',list)[0]+'|User-Agent=iPad&Referer=https://www.showtv.com.tr/[makelist2.param1]'
else:
return re.findall('"Standart","file":"([^"]+)',list)[-1]+'|User-Agent=iPad&Referer=https://www.showtv.com.tr/[makelist2.param1]'
]]></expres>
<page>hxxps://www.showtv.com.tr/[makelist2.param1]</page>
<referer>hxxps://www.showtv.com.tr/[makelist.param1]</referer>
<agent>Mozilla/5.0</agent>
<cookieJar></cookieJar>
</regex>
<thumbnail>http://static.tvmaze.com/uploads/images/original_untouched/166/416749.jpg</thumbnail><fanart>http://www.pixelstalk.net/wp-content/uploads/2016/07/Pink-And-Black-HD-Background.jpg</fanart></item>
 
Last edited by a moderator:

BymemoLee

Member
Apr 30, 2018
86
13
8
Hi again

this works also not :(
Code:
<item>
<title>[COLOR gold]Gülperi Bölümler[/COLOR]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR yellow][makelist.param3][/COLOR]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('(?s)href="/(.*?)".*?src="(.*?)".*?title">([^<]+)',re.findall('class="swiper-wrapper">(?s)(.*?)"section-series-program-info',page_data)[0])
]]></expres>
<page>https://www.showtv.com.tr/dizi/tum_bolumler/gulperi-sezon-1-bolum-1-izle/63064</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param3] ([makelist2.param1]. Part)[/COLOR]</title>
  <link>$doregex[getUrl]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
 if '"video-part"' in page_data:
   list=re.findall('video-part-name">(?s)(.*?)</ul',page_data)[0]
   title=re.findall('href.+?>(\d+)<',list);link=re.findall('href="/([^"]+)',list)
   return zip(title,link)
 elif '"video-part"' not in page_data:
   list=re.findall('"TVEpisode"(?s)(.*?)</script',page_data)[0].replace('\\','')
   return re.findall('"episodeNumber":"([^"]+)".+?url".+?.tr/([^"]+)',list)
]]></expres>
<page>https://www.showtv.com.tr/[makelist.param1]</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  list=re.findall('"ht_files"(?s)(.*?)<script',page_data)[0].replace('\\','')
  if '1080' in list:
    return re.findall('"name":"1080"."file":"([^"]+)',list)[-1]+'|User-Agent=iPad&Referer=https://www.showtv.com.tr/[makelist2.param1]'
  elif '720' in list:
    return re.findall('"name":"720"."file":"([^"]+)',list)[-1]+'|User-Agent=iPad&Referer=https://www.showtv.com.tr/[makelist2.param1]'
  elif 'ht_mobile' in list:
    return re.findall('"ht_mobile_m3u8":"([^"]+)',list)[0]+'|User-Agent=iPad&Referer=https://www.showtv.com.tr/[makelist2.param1]'
  else:
    return re.findall('"Standart","file":"([^"]+)',list)[-1]+'|User-Agent=iPad&Referer=https://www.showtv.com.tr/[makelist2.param1]'
]]></expres>
<page>https://www.showtv.com.tr/[makelist2.param2]</page>
<agent>Mozilla/5.0</agent>
<cookieJar></cookieJar>
</regex>
<thumbnail>https://upload.wikimedia.org/wikipedia/commons/thumb/f/f1/Logo_of_Show_TV.png/150px-Logo_of_Show_TV.png</thumbnail>
</item>
 

Beezlo

Member
Mar 17, 2016
31
0
6
Code:
<item>
<title>[COLOR gold]Gülperi Bölümler[/COLOR]</title>
<link>https://www.tvaddons.co/forums/$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><=!=[=C=D=A=T=A=[
  <title>[COLOR yellow][makelist.param3][/COLOR]</title>
  <link>https://www.tvaddons.co/forums/$doregex[makelist2]</link>
  <thumbnail>[makelist.param2]</thumbnail>
]=]=></listrepeat>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('(?s)href="/(.*?)".*?src="(.*?)".*?title">([^<]+)',re.findall('class="swiper-wrapper">(?s)(.*?)"section-series-program-info',page_data)[0])
]=]=></expres>
<page>https://www.showtv.com.tr/dizi/tum_bolumler/gulperi-sezon-1-bolum-1-izle/63064</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><=!=[=C=D=A=T=A=[
  <title>[COLOR gold][makelist.param3] ([makelist2.param1]. Part)[/COLOR]</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
 if '"video-part"' in page_data:
   list=re.findall('video-part-name">(?s)(.*?)</ul',page_data)[0]
   title=re.findall('href.+?>(\d+)<',list);link=re.findall('href="/([^"]+)',list)
   return zip(title,link)
 elif '"video-part"' not in page_data:
   list=re.findall('"TVEpisode"(?s)(.*?)</script',page_data)[0].replace('\\','')
   return re.findall('"episodeNumber":"([^"]+)".+?url".+?.tr/([^"]+)',list)
]=]=></expres>
<page>https://www.showtv.com.tr/[makelist.param1]</page>
</regex>
<regex>
<name>getUrl</name>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  list=re.findall('"ht_files"(?s)(.*?)<script',page_data)[0].replace('\\','')
  if '1080' in list:
    return re.findall('"name":"1080"."file":"([^"]+)',list)[-1]+'|User-Agent=iPad&Referer=https://www.showtv.com.tr/[makelist2.param1]'
  elif '720' in list:
    return re.findall('"name":"720"."file":"([^"]+)',list)[-1]+'|User-Agent=iPad&Referer=https://www.showtv.com.tr/[makelist2.param1]'
  elif 'ht_mobile' in list:
    return re.findall('"ht_mobile_m3u8":"([^"]+)',list)[0]+'|User-Agent=iPad&Referer=https://www.showtv.com.tr/[makelist2.param1]'
  else:
    return re.findall('"Standart","file":"([^"]+)',list)[-1]+'|User-Agent=iPad&Referer=https://www.showtv.com.tr/[makelist2.param1]'
]=]=></expres>
<page>https://www.showtv.com.tr/[makelist2.param2]</page>
<agent>Mozilla/5.0</agent>
<cookieJar></cookieJar>
</regex>
<thumbnail>https://upload.wikimedia.org/wikipedia/commons/thumb/f/f1/Logo_of_Show_TV.png/150px-Logo_of_Show_TV.png</thumbnail>
</item>

Thanks so much
 

wulf

New member
Jun 9, 2017
25
0
1
Hello everybody ! I just want to ask if someone know how to get the regex from this stream hxxs://ekostreams.co/ch/bobo.php ?
I know is very hard to do this but is just one try if someone know please tell me.
 

BymemoLee

Member
Apr 30, 2018
86
13
8
Hi gurus,

who can this fix they doesnt works more.

thanks in advance
Code:
<item>
<title>Arka Sokaklar Bölümler</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param3][/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):
  count=21;pn=1;data=[]
  while pn <= int(count):
    page='https://www.kanald.com.tr/arka-sokaklar/bolumler?page='+str(pn);source=requests.get(page).text.replace('Ö','O').replace('ö','o').replace('Ç','C').replace('ü','u')
    data +=re.findall('.+?href="/(.+?)".*\n.*data.+?//(.*?)".alt="([^"]+)\sB.+?"[\w\W]*?id="([^"]+)',re.findall('class="kd-docs-thumbnails">(?s)(.*?)<li class="next',source)[0]);pn +=1
  return  data
]]></expres>
<page>https://www.kanald.com.tr/arka-sokaklar/bolumler</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param3][/COLOR] ([makelist2.param2]. Part)</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>https://[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  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]
  return m3u8.replace('index','1000/prog_index') +'|Referer=https://www.kanald.com.tr/[makelist.param1][makelist2.param1]'
]]></expres>
<page></page>
</regex>
<thumbnail>https://s.kanald.com.tr/ps/kanald_proxy/assets/img/apple-touch-icon.png</thumbnail>
</item>
 

Lacasitos74

Member
Nov 21, 2016
43
1
8
hi masters..
please help me with this website..
please send me mp..
hxxp://orangepi.sytes.net:8888/
i need write a chanl and the download file put in external link..
thanks a lot..
big hug for all.
 

Picapau

Member
Nov 15, 2018
69
9
8
hello, someone to help me with this regex? Thank you.


hxxp://chomikuj.pl/batmamora/pelicula/pelicula+Scoobie+Doo/Scooby+Doo++Pueblo+Fantasma+Cucuy,6470985244.avi(video)
 

streamwatcher2013

Well-known member
Oct 24, 2013
818
334
63
USA
hello, someone to help me with this regex? Thank you.


hxxp://chomikuj.pl/batmamora/pelicula/pelicula+Scoobie+Doo/Scooby+Doo++Pueblo+Fantasma+Cucuy,6470985244.avi(video)
It's simple regex:

Code:
<item>
<title>Scooby Doo - Pueblo Fantasma Cucuy</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('<video.+?"(http[^"]+)',page_data)[0].replace('amp;','')+'|user-agent=VLC'
]]></expres>
<page>http://chomikuj.pl/batmamora/pelicula/pelicula+Scoobie+Doo/Scooby+Doo++Pueblo+Fantasma+Cucuy,6470985244.avi</page>
</regex>
</item>
 

streamwatcher2013

Well-known member
Oct 24, 2013
818
334
63
USA
hi masters..
please help me with this website..
please send me mp..
hxxp://orangepi.sytes.net:8888/
i need write a chanl and the download file put in external link..
thanks a lot..
big hug for all.
You must finish the next step for external link

Code:
https://pastebin.com/raw/dCp4tCPT
 
Last edited:
Status
Not open for further replies.