Help for Regex

Status
Not open for further replies.

makal

Member
Jul 23, 2014
62
16
8
regards
could someone help me with this channel please
by mp if possible
Thanks in advance

Code:
http://ustreamyx.com/stream.php?id=eurosport-2
 
Last edited:

lord_froz

New member
Mar 9, 2018
18
0
0
hi all. anyone can help me regex or any menu or stream from this site. pm me if possible.

Code:
http://hdtvku.com/schedule.html
 
Last edited:

streamwatcher2013

Well-known member
Oct 24, 2013
986
446
63
USA
hi all. anyone can help me regex or any menu or stream from this site. pm me if possible.

Code:
http://hdtvku.com/schedule.html
Try this:

Code:
<item>
<title> http://hdtvku.com/schedule.html</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>([makelist.param2]) [makelist.param1] - [makelist.param3]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>http://hdtvku.com/android-icon-192x192.png</thumbnail>
]]></listrepeat>
<expres><![CDATA[<small><font.*?>(.*?)<.*?br>(.*?)<.*?(?:font></b><br|small><br)>(\d.*?)<.*\n.*href="(.*?)"]]></expres>
<page>http://hdtvku.com/schedule.html</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('(http.*?m3u8)',requests.get('http://hdtvku.com/'+re.findall('src="/(player.*?)"',page_data)[0],headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0','Referer':'[makelist.param4]', 'Accept': '*/*'}).text)[0]+'|User-Agent=iPad'
]]></expres>
<page>[makelist.param4]</page>
<referer>http://hdtvku.com/schedule.html</referer>
<cookieJar></cookieJar>
</regex>
<thumbnail>http://hdtvku.com/android-icon-192x192.png</thumbnail>
</item>
 

lord_froz

New member
Mar 9, 2018
18
0
0
Try this:

Code:
<item>
<title> http://hdtvku.com/schedule.html</title>
<link>https://www.tvaddons.co/forums/$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><=!=[=C=D=A=T=A=[
  <title>([makelist.param2]) [makelist.param1] - [makelist.param3]</title>
  <link>https://www.tvaddons.co/forums/$doregex[getUrl]</link>
  <thumbnail>http://hdtvku.com/android-icon-192x192.png</thumbnail>
]=]=></listrepeat>
<expres><=!=[=C=D=A=T=A=[<small><font.*?>(.*?)<.*?br>(.*?)<.*?(?:font></b><br|small><br)>(\d.*?)<.*\n.*href="(.*?)"]=]=></expres>
<page>http://hdtvku.com/schedule.html</page>
</regex>
<regex>
<name>getUrl</name>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('(http.*?m3u8)',requests.get('http://hdtvku.com/'+re.findall('src="/(player.*?)"',page_data)[0],headers={'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0','Referer':'[makelist.param4]', 'Accept': '*/*'}).text)[0]+'|User-Agent=iPad'
]=]=></expres>
<page>[makelist.param4]</page>
<referer>http://hdtvku.com/schedule.html</referer>
<cookieJar></cookieJar>
</regex>
<thumbnail>http://hdtvku.com/android-icon-192x192.png</thumbnail>
</item>
Thank streamwatcher2013,

it work. but few stream show some error. is it because they use different source?
 

lord_froz

New member
Mar 9, 2018
18
0
0
anyone know how i can play this link on kodi.

i have try calling using plexus and <p2p></p2p> but not working.


Code:
P2p://170.178.181.182:6180/5a5f7dab000aa98117aa124f79c374ee.ts
 

gujal

Developer
Dec 26, 2013
595
327
63
anyone know how i can play this link on kodi.
i have try calling using plexus and <p2p></p2p> but not working.
Code:
P2p://170.178.181.182:6180/5a5f7dab000aa98117aa124f79c374ee.ts
<p2p> tag expects either an Acestream id or a sopcast:// url
It does not support p2p://
 

abynk

New member
Dec 27, 2013
2
0
0
Expers please help

Please any experts help with this
Code:
h**p://mhdtvlive.stream/channel/surya-hd/
or any other channels form this domain

Thanks in advance
 

luhanmcs

New member
Oct 2, 2015
1
0
0
Please regex/makelist for this page.

Some samples, different links to regex.
Code:
hxxp://www.redecanais.info/browse-series-videos-1-title.html
hxxp://www.redecanais.com/browse-fdp-videos-1-date.html
hxxp://www.redecanais.com/browse-24-horas-videos-1-date.html
I use this regex, but the link in "pastebin" needs to be changed every time and some are different.
Code:
<item>
<title>test</title>
<link>$doregex[get-link]24HORAST09EP12.mp4|Referer=hxxp://www.redecanais.com/watch.php</link>
<regex>
<name>get-link</name>
<expres>(.*)</expres>
<page>hxxps://pastebin.com/raw/6PzPNRcT</page>
</regex>
</item>
Thanks in advance.
 

streamwatcher2013

Well-known member
Oct 24, 2013
986
446
63
USA
Please any experts help with this
Code:
h**p://mhdtvlive.stream/channel/surya-hd/
or any other channels form this domain

Thanks in advance
It only works under Windows, MacOS and Linux (not for Android ATM unless some one @ Nodejs.org precompiled it). You guys need to Google for CFscrape (extract the zip file then rename the __init__py file inside cfscrape folder to cfscrape.py and copy to LSP plugin folder) also install node.js (download from below link) for whatever the OS you are running. Here u go :)

Nodejs download link from their official site:

Code:
https://nodejs.org/en/download/
Code:
<item>
<title> http://mhdtvlive.stream with CFscrape</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title> [makelist.param2]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>http://mhdtvlive.stream/wp-content/uploads/2018/03/coollogo_com-22033422.png</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests,cfscrape
def GetLSProData(page_data,Cookie_Jar,m):
 scraper=cfscrape.create_scraper();source=scraper.get('http://mhdtvlive.stream/channel/').content.decode('ascii','ignore')
 tok=re.findall('"CSRFToken-wppb".value="(.*?)"',source)[0];durl=re.findall('"wppb_request_url".value="(.*?)"',source)[0];link=re.findall('"_wp_http_referer".value="(.*?)"',source)[0]
 data={'log':'mhdtvlive','pwd':'mhdtvlive','wp-submit':'Log+In','redirect_to':durl,'wppb_login':'true','wppb_form_location':'page','wppb_request_url':durl,'wppb_lostpassword_url':'','wppb_redirect_priority':'','wppb_referer_url':'','CSRFToken-wppb':tok,'_wp_http_referer':link,'wppb_redirect_check':'true'}
 source=scraper.post('http://mhdtvlive.stream/wp-login.php',data=data,headers={'Referer':'http://mhdtvlive.stream/login/?redirect_to=http%3A%2F%2Fmhdtvlive.stream%2Fchannel%2F'},allow_redirects=False)
 url=source.headers['Location'];source=scraper.get(url).content.decode('ascii','ignore');list=re.findall('class="resp">(?s)(.*?)</ul',source)[0].replace('#038;','');return re.findall('href="http://mhdtvlive.stream/((?:genre|language)/.*?)">(.*?)<',list)
]]></expres>
<page></page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title> [makelist2.param1]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>http://mhdtvlive.stream/wp-content/uploads/2018/03/coollogo_com-22033422.png</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests,cfscrape
def GetLSProData(page_data,Cookie_Jar,m):
 scraper=cfscrape.create_scraper();source=scraper.get('http://mhdtvlive.stream/[makelist.param1]').content.decode('ascii','ignore')
 if 'pagination' not in source:
    return re.findall('class="poster"><img.src="(.*?)".alt="(.*?)".*?href="(h.*?/channel/.*?)"',source)
 elif 'pagination' in source:
    count=re.findall('"inactive">(\d+)</a></div><div',source)[0];pn=1
    data=[]
    while pn <= int(count):
      page='http://mhdtvlive.stream/[makelist.param1]/page/'+str(pn);source=scraper.get(page).content.decode('ascii','ignore');list=re.findall('class="items">(?s)(.*?)class="pagination"',source)[0]
      data +=re.findall('class="poster"><img.src.*?alt="(.*?)".*?href="(h.*?/channel/.*?)"',list);pn +=1
 return data
]]></expres>
<page></page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,cfscrape,urllib
def GetLSProData(page_data,Cookie_Jar,m):
 scraper=cfscrape.create_scraper();source=scraper.get('[makelist2.param2]').content.decode('ascii','ignore')
 tok=re.findall('"CSRFToken-wppb".value="(.*?)"',source)[0];durl=re.findall('"wppb_request_url".value="(.*?)"',source)[0];link=re.findall('"_wp_http_referer".value="(.*?)"',source)[0]
 data={'log':'mhdtvlive','pwd':'mhdtvlive','wp-submit':'Log+In','redirect_to':durl,'wppb_login':'true','wppb_form_location':'page','wppb_request_url':durl,'wppb_lostpassword_url':'','wppb_redirect_priority':'','wppb_referer_url':'','CSRFToken-wppb':tok,'_wp_http_referer':link,'wppb_redirect_check':'true'}
 source=scraper.post('http://mhdtvlive.stream/wp-login.php',data=data,headers={'Referer':durl},allow_redirects=False);source=scraper.get('[makelist2.param2]').content.decode('ascii','ignore')
 source=scraper.get('http://mhdtvlive.stream/'+re.findall('class="play-box-iframe.+?src="/(.*?)"',source)[0],headers={'Referer':'[makelist2.param2]'}).content.decode('ascii','ignore');return urllib.unquote(re.findall("unescape.*?'(.*?)'.*\n.*else",source)[0])+'|User-Agent=iPad'
]]></expres>
<page></page>
</regex>
<thumbnail>http://mhdtvlive.stream/wp-content/uploads/2018/03/coollogo_com-22033422.png</thumbnail>
</item>




 
Last edited:
Status
Not open for further replies.