Help for Regex

Status
Not open for further replies.

Pustule

New member
Mar 2, 2017
20
0
0
Hi guys

a regex for this please

hxxp://netcine.us/arranha-ceu-coragem-sem-limite/
HI:
your page:
Code:
<item>
<title>http://netcine.us/arranha-ceu-coragem-sem-limite/</title>  
<link>$doregex[hd]</link>
<regex>
<name>hd</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#Pustule
 url1 = re.findall('iframe src="([^"]+)',page_data)[0]
 r = requests.get(url1,headers={'Referer':'http://netcine.us/arranha-ceu-coragem-sem-limite/','User-Agent':'Mozilla/5.0','X-Requested-With':'XMLHttpRequest'}).content.decode('ascii','ignore') 
 url2= re.findall('src="([^"]+)',r)[0]
 r = requests.get(url2,headers={'Referer':url1,'User-Agent':'Mozilla/5.0','X-Requested-With':'XMLHttpRequest'}).content.decode('ascii','ignore')
 return re.findall('file: "([^"]+)',r)[-1]
]]></expres>
<page>http://netcine.us/arranha-ceu-coragem-sem-limite/</page>
<agent>Mozilla/5.0</agent>
</regex>
</item>
and makelist of movies:


Code:
<item>
<title>[COLOR gold]http://netcine.us/?mt[/COLOR] Filmes</title>  
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
    <title>[makelist.param2]  [COLOR gold]*[makelist.param4]/10*[/COLOR]</title>
    <link>$doregex[hd]</link>
    <thumbnail>[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[<img src="([^"]+)" alt="([^"]+).*[^:]*(http[^"]+).*[^\d]*(\d[\.,]\d)]]></expres>
<page>http://netcine.us/?mt</page>
<agent>Mozilla/5.0</agent>
</regex>
 <regex>
<name>hd</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#Pustule
 url1 = re.findall('iframe src="([^"]+)',page_data)[0]
 r = requests.get(url1,headers={'Referer':'[makelist.param3]','User-Agent':'Mozilla/5.0','X-Requested-With':'XMLHttpRequest'}).content.decode('ascii','ignore') 
 url2= re.findall('src="([^"]+)',r)[0]
 r = requests.get(url2,headers={'Referer':url1,'User-Agent':'Mozilla/5.0','X-Requested-With':'XMLHttpRequest'}).content.decode('ascii','ignore')
 return re.findall('file: "([^"]+)',r)[-1]
]]></expres>
<page>[makelist.param3]</page>
<agent>Mozilla/5.0</agent>
</regex>
</item>

 
Last edited:

papaya

Member
Apr 4, 2018
42
1
8
hi master,

anyone can check where i do mistake. manage to call the link but it give error everytime i play

Code:
<item>
<title>www.goalsarena.org/</title>
<link>$doregex[makelist]</link>

<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR dodgerblue]([makelist.param1])[/COLOR][COLOR gold] [makelist.param2][/COLOR]</title>
<link>http:$doregex[getUrl]</link>
<thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[title="(\d+.*?)\s-\s(.*?)".href="(.*?)"]]></expres>
<page>http://www.goalsarena.org/en</page>
<referer>http://www.goalsarena.org/</referer>
<agent>Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.04</agent>
<cookieJar></cookieJar>
</regex>

<regex>
<name>getiframe</name>
<expres><![CDATA[<iframe src="([^"]+)]]></expres>
<page>[makelist.param3]</page>
<referer>http://www.goalsarena.org/</referer>
<cookieJar></cookieJar>
</regex>

<regex>
<name>getUrl</name>
<expres><![CDATA[<a  href="([^"]+)]]></expres>
<page>$doregex[getiframe]</page>
<referer>http://www.goalsarena.org/</referer>
<cookieJar></cookieJar>
</regex>
</item>
 

Teamblue

New member
Sep 23, 2016
12
0
0
HI:
your page:
Code:
<item>
<title>http://netcine.us/arranha-ceu-coragem-sem-limite/</title>  
<link>https://www.tvaddons.co/forums/$doregex[hd]</link>
<regex>
<name>hd</name>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#Pustule
 url1 = re.findall('iframe src="([^"]+)',page_data)[0]
 r = requests.get(url1,headers={'Referer':'http://netcine.us/arranha-ceu-coragem-sem-limite/','User-Agent':'Mozilla/5.0','X-Requested-With':'XMLHttpRequest'}).content.decode('ascii','ignore') 
 url2= re.findall('src="([^"]+)',r)[0]
 r = requests.get(url2,headers={'Referer':url1,'User-Agent':'Mozilla/5.0','X-Requested-With':'XMLHttpRequest'}).content.decode('ascii','ignore')
 return re.findall('file: "([^"]+)',r)[-1]
]=]=></expres>
<page>http://netcine.us/arranha-ceu-coragem-sem-limite/</page>
<agent>Mozilla/5.0</agent>
</regex>
</item>
Pustule
Thanks again

This regex only work if is only "legendado" if as "legendado" and "dublado" don't work

example: hxxp://netcine.us/liga-da-justica/

I only need the "legendado" if its possible

Thanks in advance
 

Pustule

New member
Mar 2, 2017
20
0
0
HI:
your page:
Code:
Pustule
Thanks again

This regex only work if is only "legendado" if as "legendado" and "dublado" don't work

example: hxxp://netcine.us/liga-da-justica/

I only need the "legendado" if its possible

Thanks in advance
the site has changed ...:p (movies still working on it ? not for me)
And i do not have time for the moment sorry, maybe another day.
[HR][/HR]
EDIT:

enjoy:
(take the first link so legendado each time and hd link)
ALL MOVIES and realy fast
Code:
<item>
<title>[COLOR gold]http://netcine.us/?mt[/COLOR] ALL Filmes UPDATE</title>  
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
    <title>[makelist.param2]  [COLOR gold]*[makelist.param4]/10*[/COLOR]</title>
    <link>$doregex[hd]</link>
    <thumbnail>[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
 count=re.findall('paginado\'.*(\d)',page_data)[0];pn=1;data=[]
 while pn <= int(count):
	page='http://netcine.us/page/'+str(pn)+'/?mt'
	source=requests.get(page).content.decode('ascii','ignore')
	list=re.findall('<div id="box_movies">(?s)(.*?)<div id="paginador">',source)[0]
	data +=re.findall('<img src="([^"]+)" alt="([^"]+).*\n.*\n*.*(http[^"]+).*\n.*\n.*grade"></span> (\d[^<]*)',list);pn +=1
 return data
]]></expres>
<page>http://netcine.us/?mt</page>
<agent>Mozilla/5.0</agent>
</regex>
 <regex>
<name>hd</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#Pustule
 url1 = re.findall('iframe src="([^"]+)',page_data)[0]
 r = requests.get(url1).content.decode('ascii','ignore') 
 url2= re.findall('src="([^"]+)',r)[0]
 r = requests.get(url2).content.decode('ascii','ignore')
 url3= re.findall('\n<a href ="(http[^"]+)',r)[0]
 r = requests.get(url3).content.decode('ascii','ignore')
 return re.findall('file: "([^"]+)',r)[-1]
]]></expres>
<page>[makelist.param3]</page>
<agent>Mozilla/5.0</agent>
</regex>
</item>
 
Last edited:

Pustule

New member
Mar 2, 2017
20
0
0
Anyone have a idea for this music site ?
Code:
http://red-mp3.su/
Need a cookie ("mp3key=XXXXXXX" in cookie) for playing i think, But I don't know how to do that.
my last try:
Code:
<item>
<title>redmp3</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR lightblue][makelist.param2][/COLOR]</title>
<link>http://red-mp3.su[makelist.param1]|Cookie=$get_cookies$</link>
<thumbnail>http://red-mp3.su[makelist.param3]460x460[makelist.param4]</thumbnail>
<info>Album: [makelist.param5]</info>
]]></listrepeat>
<expres>data-mp3url="([^"]+)"[^"]+"([^"]+)(?s).*?(\/cover[^"]+)50x50([^"]+)" alt="([^"]+)</expres>
<page>http://red-mp3.su/</page>
<referer>http://red-mp3.su/</referer>
<agent>Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.04</agent>
<cookieJar>$doregex[createCFCookie]</cookieJar>
</regex>
<regex>
	<name>createCFCookie</name>
	<expres></expres>
	<page>$pyFunction:cloudflare.createCookie('http://red-mp3.su/',Cookie_Jar,'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0')</page>
	<cookieJar></cookieJar>
	</regex>
</item>
Thanks
 
Last edited:

Teamblue

New member
Sep 23, 2016
12
0
0
Thanks anyway @Pustule

The first version works for me not so fast but works

This version works very fast
 

vbprofi

Member
Feb 9, 2016
74
3
8
Hello experts,
I can't find the problem. the items don't show. Have someone an idea?
Code:
<item>
<title>[COLOR gold]Deutschland[/COLOR] - [COLOR red]kostenloslivetv.com[/COLOR]</title>
<link>$doregex[makelist]</link>

<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR cyan][makelist.param3][/COLOR]</title>
<link>$doregex[getUrl]</link>
<thumbnail>[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests,base64
def GetLSProData(page_data,Cookie_Jar,m):
  url='http://www.kostenloslivetv.com/'
  res=re.findall("href='(http://www.kost.*?)'.*?src='(.*?)'.*?title='(.*?)'", requests.get(url, headers={'User-Agent':'Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0'}).content.decode('ascii','ignore'))
  return res
]]></expres>
<page></page>
<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</agent>
<Referer>[makelist.param1]</Referer>
</regex>

<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,base64
def GetLSProData(page_data,Cookie_Jar,m):
  url='[makelist.param1]'
  res=re.findall('iframe.src="(.*?)"', requests.get(url, headers={'User-Agent':'Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0'}).content.decode('ascii','ignore'))[0]
  source=requests.get(res, headers={'Referer': url,'User-Agent':'Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0'}).content.decode('ascii','ignore')
  link=re.findall('webhdiptv\("(.*?)"',source)[0][::-1]+'=='
  return base64.b64decode(link.replace('_','/')) + '|Referer=' + url + '&User-Agent=Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0'
]]></expres>
<page></page>
</regex>
</item>
 

Pustule

New member
Mar 2, 2017
20
0
0
Hello experts,
I can't find the problem. the items don't show. Have someone an idea?
Code:
<item>
<title>[COLOR gold]Deutschland[/COLOR] - [COLOR red]kostenloslivetv.com[/COLOR]</title>
<link>$doregex[makelist]</link>

<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR cyan][makelist.param3][/COLOR]</title>
<link>$doregex[getUrl]</link>
<thumbnail>[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests,base64
def GetLSProData(page_data,Cookie_Jar,m):
  url='http://www.kostenloslivetv.com/'
  res=re.findall("[COLOR="#B22222"]href='(http://www.kost.*?)'.*?src='(.*?)'.*?title='(.*?)'[/COLOR]", requests.get(url, headers={'User-Agent':'Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0'}).content.decode('ascii','ignore'))
  return res
]]></expres>
<page></page>
<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</agent>
<Referer>[COLOR="#B22222"][makelist.param1][/COLOR]</Referer>[COLOR="#B22222"]<-- non sense[/COLOR]
</regex>

<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
....
your first express in makelist matches nothing.
and no need of python here. try:

Code:
        <regex>
        <name>makelist</name>
        <listrepeat><![CDATA[
        <title>[COLOR cyan][makelist.param3][/COLOR]</title>
        <link>$doregex[getUrl]</link>
        <thumbnail>[makelist.param2]</thumbnail>
        ]]></listrepeat>
	<expres><![CDATA[mb">\n<a href="([^"]*).*src="([^"]*).*\n.*\n.*\n[^>]*>([^<]*)]]></expres>
        <page>http://www.kostenloslivetv.com/</page>
        <agent>Mozilla/5.0</agent>
        </regex>
 
Last edited:

turko03

Member
Mar 27, 2018
52
1
8
hi guys help me this code makelist please
hxxps://www.ecanlitvizle.live/tv.php

thanks in advance
 
Last edited:

streamwatcher2013

Well-known member
Oct 24, 2013
818
334
63
USA
Anyone have a idea for this music site ?
Code:
http://red-mp3.su/
Need a cookie ("mp3key=XXXXXXX" in cookie) for playing i think, But I don't know how to do that.
my last try:
Code:
<item>
<title>redmp3</title>
<link>https://www.tvaddons.co/forums/$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><=!=[=C=D=A=T=A=[
<title>[COLOR lightblue][makelist.param2][/COLOR]</title>
<link>http://red-mp3.su[makelist.param1]|Cookie=$get_cookies$</link>
<thumbnail>http://red-mp3.su[makelist.param3]460x460[makelist.param4]</thumbnail>
<info>Album: [makelist.param5]</info>
]=]=></listrepeat>
<expres>data-mp3url="([^"]+)"[^"]+"([^"]+)(?s).*?(\/cover[^"]+)50x50([^"]+)" alt="([^"]+)</expres>
<page>http://red-mp3.su/</page>
<referer>http://red-mp3.su/</referer>
<agent>Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.04</agent>
<cookieJar>$doregex[createCFCookie]</cookieJar>
</regex>
<regex>
	<name>createCFCookie</name>
	<expres></expres>
	<page>$pyFunction:cloudflare.createCookie('http://red-mp3.su/',Cookie_Jar,'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0')</page>
	<cookieJar></cookieJar>
	</regex>
</item>
Thanks
I believed the mp3 stream has "Status Code: 206 Partial Content". We may need the expert to come up with the code to play the stream. I saw a lots of sites start to using it now.
 

Pustule

New member
Mar 2, 2017
20
0
0
Ok thanks streamwatcher2013. Too bad. Site seems easy, but ... not.
Let's find another one (very hard to find a usable music source)...
Thanks again for inspiration ;)
 
Last edited:

doctor4979

New member
Sep 25, 2015
9
0
0
hi all, does anyone have a full makelist or can make a full makelist for these sites?
Code:
https://time2watch.in
https://official-film-illimite.ws/
https://www.ianimes.co
thank you !
 

gujal

Developer
Dec 26, 2013
471
241
43
Anyone have a idea for this music site ?
Code:
http://red-mp3.su/
Need a cookie ("mp3key=XXXXXXX" in cookie) for playing i think, But I don't know how to do that.
my last try:
Thanks
Here is the working code, Enjoy!

Code:
<item>
<title>redmp3</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR lightblue][makelist.param2][/COLOR]</title>
<link>http://red-mp3.su[makelist.param1]|Cookie=mp3key=[makelist.param5]</link>
<thumbnail>http://red-mp3.su[makelist.param3]</thumbnail>
<info>Album: [makelist.param4]</info>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re, requests, HTMLParser
  h = HTMLParser.HTMLParser()
  url = 'http://red-mp3.su/Theme/Styles?v=7vKBz5QcHPxuacJPF0oDUG2MSnkVJ8-dYZZRWOuSHrY1'
  items = re.findall('data-mp3url="([^"]+)"[^"]+"([^"]+)(?s).*?(/cover[^"]+)"\s*alt="([^"]+)',page_data)
  songs = []
  headers = {'User-Agent':'Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/14.0.1'}
  r = requests.get(url,headers=headers)
  mp3key = r.cookies['mp3key']
  for surl,title,thumb,album in items:
    title = h.unescape(title.decode('utf8')).encode('utf8')
    thumb = thumb.replace('50x50','460x460')
    album = h.unescape(album.decode('utf8')).encode('utf8')
    songs.append((surl,title,thumb,album,mp3key))
  return songs
]]></expres>
<page>http://red-mp3.su/</page>
</regex>
</item>
 

MasterT3

New member
Dec 28, 2013
17
0
0
Hi Guys, can you help me with regex for the following site please:

Code:
http://livetv.abroadindia.com/n_loadpage.php?page=&lan=tamil
Code:
http://abroadindia.com/k_loadlist.php?lan=tamil
and maybe this if it is possible:

Code:
https://www.yupptv.com/channels/ktv/live
 
Last edited:

gujal

Developer
Dec 26, 2013
471
241
43
Hi Guys, can you help me with regex for the following site please:

Code:
http://livetv.abroadindia.com/n_loadpage.php?page=&lan=tamil
Code:
http://abroadindia.com/k_loadlist.php?lan=tamil
and maybe this if it is possible:
Code:
https://www.yupptv.com/channels/ktv/live
Abroad India is available in DeccanDelight addon
Yupptv preview is a 5 minute recorded clip pulled from their vod server, no use writing code for it as it is not a live stream
 

MasterT3

New member
Dec 28, 2013
17
0
0
Abroad India is available in DeccanDelight addon
Yupptv preview is a 5 minute recorded clip pulled from their vod server, no use writing code for it as it is not a live stream
In DeccanDelight the Channels are loaded from another link. The stream is buffering and not really useful. Online on abroad India the stream is playing fine. Can you please check and update?
 
Status
Not open for further replies.