Help for Regex

Status
Not open for further replies.

streamwatcher2013

Well-known member
Oct 24, 2013
993
450
63
USA
Hello streamwatcher2013 can you please, I tried to change the page and the referer but it does not work

Code:
<item>
<title>betticket.tv</title>
<link>https://www.tvaddons.co/forums/$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><=!=[=C=D=A=T=A=[
  <title>[makelist.param2]</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):
  list=re.findall('channel-list">(?s)(.*?)</section',page_data)[0]
  return re.findall('"item.*\n.*href=[\'"]([^\'"]+)".title=[\'"]([^\'"]+)',list)
]=]=></expres>
<page>http://betticket.tv/</page>
<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('iframe src.*?[\'"](.*?)[\'"]',page_data)[0]
  source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'http://betticket.tv/[makelist.param1]'}).content
  return re.findall('[\'"](h.*?m3u8.*?)[\'"]',source)[0]+'|user-agent=Mozilla/5.0&referer='+url
]=]=></expres>
<page>http://betticket.tv/[makelist.param1]</page>
<referer>http://betticket.tv/</referer>
</regex>
<thumbnail>http://betticket.tv/tvlogo.png</thumbnail>
<fanart>http://betticket.tv/tvlogo.png</fanart>
</item>
Try this

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

espamer

New member
May 26, 2018
15
0
0
Is it possible to make a rx list that includes schedules? xxx://t*u*m*a*r*c*a*d*o*r.xyz/ (eliminate the *)
 

BymemoLee

Member
Apr 30, 2018
93
20
8
Code:
https://pastebin.com/raw/JzPfZr6k
couldn't help you according to your article but didn't work

Code:
<item>
<title>[COLOR white]WORLD IPTV SERVER [COLOR red](www.ultrabet.tv)[/COLOR]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR yellow][makelist.param2][/COLOR]</title>
  <link>$doregex[getUrl]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('"item.*?[\w\W].*?href="(.+?)" title="(.+?)"',re.findall('channel-list">(?s)(.*?)</section>',page_data)[0])
]]></expres>
<page>https://www.ultrabet.tv/</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,urllib
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  r=requests.get('https://www.ultrabet.tv[makelist.param1]',headers={'Referer':'https://www.ultrabet.tv/','User-Agent':'Mozilla/5.0'},verify=False)
  url=re.findall('id="player"[\w\W]*?src="([^"]+)',r.text)[0]
  source=requests.get(url,headers={'Referer':'https://www.ultrabet.tv[makelist.param1]','User-Agent':'Mozilla/5.0'},cookies=r.cookies).text
  return re.findall('source.+?[\'"]([^\'"]+)',source)[0]+'|User-Agent=iPad&Referer='+url
]]></expres>
<page></page>
<referer></referer>
</regex>
<thumbnail></thumbnail>
</item>
 

Mang Kepweng

New member
Sep 22, 2018
10
0
0
Hi,
Is it possible again to have a code with this
Code:
hxxps://ymovies.tv/film/bayou-caviar-78223/
highly appreciated
note:site has a lot unwanted pop-up(not safe for work and kids :( )
 

kavan

Member
Aug 14, 2016
71
5
8
Hello everybody
could someone help me with this regex
please ?
Code:
http://tvnet.ir/?channel=102
Thanks in advance!
 

aylak

New member
Dec 28, 2017
24
0
0
Hello can any me help please made a makelist for this codes with all episodes please

Code:
www.startv.com.tr/dizi/fazilet-hanim-ve-kizlari/bolumler
Code:
www.atv.com.tr/webtv/ask-ve-mavi/bolum
Code:
www.showtv.com.tr/dizi/tanitim/cukur/2076
thanks you very much
 

streamwatcher2013

Well-known member
Oct 24, 2013
993
450
63
USA
Hello can any me help please made a makelist for this codes with all episodes please

Code:
www.startv.com.tr/dizi/fazilet-hanim-ve-kizlari/bolumler
Code:
www.atv.com.tr/webtv/ask-ve-mavi/bolum
Code:
www.showtv.com.tr/dizi/tanitim/cukur/2076
thanks you very much
3rd Code updates today for ATV to fix the episode 50 and lower

Code:
https://pastebin.com/raw/ge0ztH2W
 
Last edited:

streamwatcher2013

Well-known member
Oct 24, 2013
993
450
63
USA
Code:
https://pastebin.com/raw/JzPfZr6k
couldn't help you according to your article but didn't work

Code:
<item>
<title>[COLOR white]WORLD IPTV SERVER [COLOR red](www.ultrabet.tv)[/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.param2][/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
  return re.findall('"item.*?[\w\W].*?href="(.+?)" title="(.+?)"',re.findall('channel-list">(?s)(.*?)</section>',page_data)[0])
]=]=></expres>
<page>https://www.ultrabet.tv/</page>
</regex>
<regex>
<name>getUrl</name>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import re,requests,urllib
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  r=requests.get('https://www.ultrabet.tv[makelist.param1]',headers={'Referer':'https://www.ultrabet.tv/','User-Agent':'Mozilla/5.0'},verify=False)
  url=re.findall('id="player"[\w\W]*?src="([^"]+)',r.text)[0]
  source=requests.get(url,headers={'Referer':'https://www.ultrabet.tv[makelist.param1]','User-Agent':'Mozilla/5.0'},cookies=r.cookies).text
  return re.findall('source.+?[\'"]([^\'"]+)',source)[0]+'|User-Agent=iPad&Referer='+url
]=]=></expres>
<page></page>
<referer></referer>
</regex>
<thumbnail></thumbnail>
</item>
Try this:

Code:
https://pastebin.com/raw/rV9emTRu
 
Status
Not open for further replies.