Help for Regex

Status
Not open for further replies.

streamwatcher2013

Well-known member
Oct 24, 2013
985
443
63
USA
Thanks. I tried this from the source code but it didn't work
Try this:

Code:
<item>
<title>http://mogpa.org/mogpa-tv/</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  return re.findall('mp4":"(h.*?)"',requests.get('http://mogpa.org/mogpa-tv/').content)[0].replace('\\','')+'|User-Agent=iPad&Referer=http://mogpa.org/mogpa-tv/'
]]></expres>
<page></page>
</regex>
</item>
 

omoobatv

New member
Feb 15, 2018
22
0
1
please I need help with this link.

Code:
http://toxicpatat.com/index.php/live-stream-big-brother-naija-2018-live-stream-bbn-2018/
Thank you so much.
 

1qazwsx12

New member
May 29, 2015
23
0
0
Try this:

Code:
<item>
<title>http://mogpa.org/mogpa-tv/</title>
<link>https://www.tvaddons.co/forums/$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><=!=[=C=D=A=T=A=[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  return re.findall('mp4":"(h.*?)"',requests.get('http://mogpa.org/mogpa-tv/').content)[0].replace('\\','')+'|User-Agent=iPad&Referer=http://mogpa.org/mogpa-tv/'
]=]=></expres>
<page></page>
</regex>
</item>
Thanks it worked
 

streamwatcher2013

Well-known member
Oct 24, 2013
985
443
63
USA
Hallo kann jemand helfen fur makelist
Code:
 hxxp://hasbahca.net
Try this:

Code:
<item>
<title>hxxp://hasbahca.net</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
 return re.findall('file.*?"(.*?)"',requests.get(re.findall('src="(.*?)"',requests.get('http://hasbahca.net').content)[0]).content)[-1]
]]></expres>
<page></page>
</regex>
</item>
 

Alba123

New member
Apr 4, 2018
18
0
0
Try again

Thanks, please what version of SD are you using as it keep saying No Stream available.


Regards
Try again : Kodi 17.6 | Spo*ts De*il 2018.01.18 | URLResolver 5.0.09 | LivestreamPro 2.8.1
XXX://pastebin.com/raw/KZfbBgd1
 

Alba123

New member
Apr 4, 2018
18
0
0
Hi Everyone
please I need help with this Can somebody help me


Code:
XXX://dl20.mihanpix.com/94/series/game.of.throne/
 

streamwatcher2013

Well-known member
Oct 24, 2013
985
443
63
USA
Helfen bitte
Code:
 hxxps://pastebin.com/raw/3ZRU0EqQ
Try this. The latest version with over 300 links

Code:
<item>
<title>https://www.ecanlitvizle.live/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param3]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):# streamwatcher2013
  count=re.findall('.+page/(\d+)/".*\n.*class="ilantahtasi',requests.get('https://www.ecanlitvizle.live/').content)[0];pn=1;data=[]
  while pn <= int(count):
     page='https://www.ecanlitvizle.live/page/'+str(pn)+'/';data +=re.findall('href="(.*?)".*\n.*kanallarlogo".*?src="(.*?)".alt="(.*?)"',requests.get(page).content);pn +=1
  return data
]]></expres>
<page></page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):# streamwatcher2013
  link=re.findall('<p><iframe.*?[\'"](htt.*?embed.*?)[\'"]',requests.get('[makelist.param1]',headers={'Referer':'https://www.ecanlitvizle.live/'}).content)[0];source=requests.get(link,headers={'Referer':'[makelist.param1'}).content
  if 'm3u8' in source:
     return re.findall('[\'"](h.*?wmsAuthSign.*?)[\'"]',source)[0]+'|User-Agent=iPad'
  elif 'token' in source:
     source=requests.get(re.findall('[\'"](h.*(?:token).*?)[\'"]',source)[0],headers={'Referer':link}).content;return re.findall('[\'"](h.*(?:m3u8).*?)[\'"]',source)[0]+'|User-Agent=iPad'
  else:
     return 'plugin://plugin.video.youtube/play/?video_id=%s'%link
]]></expres>
<page></page>
</regex>
<thumbnail>https://www.ecanlitvizle.live/images/logo.png</thumbnail>
</item>
 

lord_froz

New member
Mar 9, 2018
18
0
0
hi guys,

anyone can help me with this site,

Code:
http://hdtvku.com/schedule.html
im using code from streamwatcher previously, but most of the link is not work. can anyone help me fix it if possible.

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>
 

streamwatcher2013

Well-known member
Oct 24, 2013
985
443
63
USA
hi guys,

anyone can help me with this site,

Code:
http://hdtvku.com/schedule.html
im using code from streamwatcher previously, but most of the link is not work. can anyone help me fix it if possible.
They added CloudFlare to the code. You need to search in this threat for Clouflare Scrape I did posted previously (How to add the py file to LSP). The CloudFlare just get updates 17 hrs ago.


Code:
<item>
<title>http://hdtvku.com/schedule.html</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param2] - [makelist.param3] ([makelist.param1] - [makelist.param4])</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>http://hdtvku.com/android-icon-192x192.png</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests,cfscrape
def GetLSProData(page_data,Cookie_Jar,m):# streamwatcher2013
 scraper=cfscrape.create_scraper();source=scraper.get('http://hdtvku.com/schedule.html').content.decode('ascii','ignore');list=re.findall('id="mySidenav"(?s)(.*?)id="livechat',source)[0].replace(''','\'')
 return re.findall('<small><font.*?>(.*?)<.*?e94e38\'>(.*?)<.*?e94e38\'>(.*?)<.*?(?:font></b><br|small><br)>(\d.*?)\s.*\n.*href="(.*?)"',list)
]]></expres>
<page></page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,cfscrape
def GetLSProData(page_data,Cookie_Jar,m):# streamwatcher2013
 scraper=cfscrape.create_scraper();source=scraper.get('[makelist.param5]').content.decode('ascii','ignore');ref='http://hdtvku.com/'+re.findall('embed-container.*?src=[\'"]/(.*?)[\'"]',source)[0]
 return re.findall('embed-container.*?live=(.*?)[\'"]',source)[-1]+'|Referer='+ref
]]></expres>
<page></page>
</regex>
<thumbnail>http://hdtvku.com/android-icon-192x192.png</thumbnail>
</item>
 

yigit66

New member
Apr 29, 2016
8
0
0
Warum geiht nicht:(

Code:
<item> <title>https://www.ecanlitvizle.live/</title> <link>$doregex[makelist]</link> <regex> <name>makelist</name> <listrepeat><![CDATA[ <title>[makelist.param3]</title> <link>$doregex[getUrl]</link> <thumbnail>[makelist.param2]</thumbnail> ]]></listrepeat> <expres><![CDATA[#$pyFunction import re,requests def GetLSProData(page_data,Cookie_Jar,m):# streamwatcher2013 count=re.findall('.+page/(\d+)/".*\n.*class="ilantahtasi',requests.get('https://www.ecanlitvizle.live/').content)[0];pn=1;data=[] while pn <= int(count): page='https://www.ecanlitvizle.live/page/'+str(pn)+'/';data +=re.findall('href="(.*?)".*\n.*kanallarlogo".*?src="(.*?)".alt="(.*?)"',requests.get(page).content);pn +=1 return data ]]></expres> <page></page> </regex> <regex> <name>getUrl</name> <expres><![CDATA[#$pyFunction import re,requests def GetLSProData(page_data,Cookie_Jar,m):# streamwatcher2013 link=re.findall('<p><iframe.*?[\'"](htt.*?embed.*?)[\'"]',requests.get('[makelist.param1]',headers={'Referer':'https://www.ecanlitvizle.live/'}).content)[0];source=requests.get(link,headers={'Referer':'[makelist.param1'}).content if 'm3u8' in source: return re.findall('[\'"](h.*?wmsAuthSign.*?)[\'"]',source)[0]+'|User-Agent=iPad' elif 'token' in source: source=requests.get(re.findall('[\'"](h.*(?:token).*?)[\'"]',source)[0],headers={'Referer':link}).content;return re.findall('[\'"](h.*(?:m3u8).*?)[\'"]',source)[0]+'|User-Agent=iPad' else: return 'plugin://plugin.video.youtube/play/?video_id=%s'%link ]]></expres> <page></page> </regex> <thumbnail>https://www.ecanlitvizle.live/images/logo.png</thumbnail> </item>
 
Status
Not open for further replies.