Help for Regex

Status
Not open for further replies.

Rockey

Member
Sep 11, 2018
68
0
6
Happy new year to every one!

Can i get a regex for the following link please and Thank you in advance.
Code:
https://www.liveonlinetv247.info/tvchannels.php
 

izac-rock

New member
May 2, 2018
32
0
0
try this

Code:
<item>
<title>[COLOR lightskyblue]http://www.barretos.eu/player/players.php?canal=tnt[/COLOR]</title>
<link>$doregex[cristal]|Referer=www.barretos.eu/player/players.php?canal=tnt&User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0</link>
<regex>
<name>cristal</name>
<expres>(?s)form>.*?href="(.*?)"</expres>
<page>http://www.barretos.eu/player/aovivo.php?canal=tnt</page>
</regex>
<thumbnail>https://uploaddeimagens.com.br/images/001/725/612/thumb/2.png</thumbnail>
</item>

thankkksssss,
:D :eek:
 

opg2014

New member
Jun 7, 2017
8
0
1
Code:
Quote Originally Posted by opg2014  View Post
Working perfect!
Thanks to streamwatcher2013 and picapau!

Can you help me with another one?

hxxp://hls. gi ize.c om/u n?ch=w wetv
need a referer: hxxp:// phot ocall .tv
(remove spaces)

I tried to regex, but I cant extract the final link...

Thank you again.
this works

Code:
xxx
Sorry, can't make replies with quotes....
Not working for me Picapau....
Are you sure its working?
Can you make a look?
Thank you so much! Very appreciated.
 

Rockey

Member
Sep 11, 2018
68
0
6
oh God i missed this forum so much.. glad to it back...

can i have a regex for this link please?
Thanks in advance

<code>hxxps://cricfree.stream/category/football-live-streaming-1</code>
 

tpoupi

New member
Jan 2, 2016
24
0
1
hi guru please, need help.Thank
<item>
<Title>regex hxxp://www.liketvw.com/embed/fox1 </title>
<link>$doregex[tokN]|User-Agent=Mozilla/5.0&amp;Referer=hxxp://www.liketvw.com</link>
<regex><name>tokN</name>
<expres>"(http.*?m3u8.*?)"</expres>
<page>hxxp://www.liketvw.com/embed/fox1</page>
<referer>hxxp://www.liketvw.com</referer>
<agent>Mozilla/5.0 (iPad; CPU OS 5_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A334 Safari/7534.48.3</agent>
<accept>text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8</accept>
</regex>
 
Last edited by a moderator:

tpoupi

New member
Jan 2, 2016
24
0
1
pls Help regex for this

hxxp://www.liketvw.com/channels/TNT-en-vivo/
 
Last edited by a moderator:

myosmc

Member
May 18, 2018
56
1
8
Hello friends, good to be back here, could anyone help me with a regex for this site?
HTML:
xxxp://www.sintelevisor.com/tv/history2.html
 

streamwatcher2013

Well-known member
Oct 24, 2013
818
334
63
USA
Try this

Code:
<item>
<title>http://www.sintelevisor.com/tv/history2.html</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  from urlresolver.plugins.lib import jsunpack
  url='http://www.sintelevisor.com/tv/'+re.findall('id="player"[\w\W]*?src="([^"]+)',page_data)[0].replace('canal','player')
  link=re.findall('<iframe.src="(h[^"]+)',requests.get(url,headers={'user-agent':'Mozilla/5.0'}).text)[0]
  html=re.findall('<a.href="([^"]+)',requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':url}).text)[0]
  url=re.findall('<iframe.src="([^"]+)',requests.get(html,headers={'user-agent':'Mozilla/5.0','referer':link}).text)[0]
  m3u8=jsunpack.unpack(re.findall('(eval.*m3u8.*)',requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':html}).text)[0]).replace('\\', '')
  return re.findall('Clappr.Player[\w\W]*?(?:src|source).+?[\'"]([^\'"]+)',m3u8)[0]+'|user-agent=ipad&referer='+url
]]></expres>
<page>http://www.sintelevisor.com/tv/history2.html</page>
</regex>
</item>
 

judgie

New member
May 16, 2018
17
0
1
happy to see you again !!

can someone help with making regex for
Code:
hxxp://live.tv5monde.com/europe.html
only available in UK and perahps need proxy

Thanks in advance
 

gujal

Developer
Dec 26, 2013
472
243
43
There is a Sticky thread setup for LSP regex
Please start using it
 
  • Like
Reactions: Rockey

Picapau

Member
Nov 15, 2018
69
9
8
Could someone help me with this website? I do not know why he does not connect with her, hxxps: //tumarcador.xyz, thanks
 

streamwatcher2013

Well-known member
Oct 24, 2013
818
334
63
USA
Next time go HERE to post your request. Try this:

Code:
<item>
<title>https://tumarcador.xyz/</title>          
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold]Canal - Channel [makelist.param2][/COLOR]</title>
  <link>$doregex[getUrl]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data, Cookie_Jar,m):#streamwatcher
  return re.findall('<li><a.href="(.*?)">.+?(\d+)',requests.get('https://tumarcador.xyz/',headers={'user-agent':'Mozilla/5.0'},verify=False).content)
]]></expres>
<page></page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data, Cookie_Jar,m):#streamwatcher
  url='https://tumarcador.xyz/[makelist.param1]'.replace('php','html')
  return re.findall('playerInstance[\w\W]*?(?:src|file):.+?[\'"]([^\'"]+)',requests.get(url,headers={'user-agent':'Mozilla/5.0'},verify=False).content)[0]+'|user-agent=ipad&referer='+url
]]></expres>
<page></page>
</regex>
</item>
 
  • Like
Reactions: Picapau

Lacasitos74

Member
Nov 21, 2016
43
1
8
Hy gurus..

Can you help me with this:
hxxp://cdn.crichd.to/embed2.php?id=sptv1

Thanks in advance
 

streamwatcher2013

Well-known member
Oct 24, 2013
818
334
63
USA
Next time go HERE to post the request. Try this:

Code:
<item>
<title>http://cdn.crichd.to/embed2.php?id=sptv1</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  url=requests.get('http://cdn.crichd.to/embed2.php?id=sptv1',allow_redirects=False).headers['Location']
  inf=re.findall('fid=[\'"]([^\'"]+).+?(\d+).+?(\d+).+?src=[\'"]([^\'"]+)',requests.get(url,headers={'user-agent':'Mozilla/5.0'}).content)[0]
  link='http://'+re.findall('src=.+?//([^\'"]+)',requests.get('http:'+inf[3],headers={'user-agent':'Mozilla/5.0','referer':url}).content)[0]+'desktop&live='+inf[0]+'&vw='+inf[1]+'&vh='+inf[2]
  source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':url}).content.replace('\\','').replace('","','')
  inf=re.findall('player.play[\w\W]*?return\(\["([^"]+).+?\+\s*(\w[^\.]+).+?"(\w[^"]+)',source)[0]
  var2=re.findall('var.%s.+?"([^"]+)'%inf[1],source)[0]
  var3=re.findall('id=%s>([^<]+)'%inf[2],source)[0]
  return 'http:'+inf[0]+var2+var3+'|user-agent=ipad&referer='+link
]]></expres>
<page>http://cdn.crichd.to/embed2.php?id=sptv1</page>
</regex>
</item>
 
  • Like
Reactions: Picapau

streamwatcher2013

Well-known member
Oct 24, 2013
818
334
63
USA
Next time go HERE to post your request. Try this:

Code:
<item>
<title>http://slider.kz/</title>             
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param3][/COLOR]</title>
  <link>$doregex[getUrl]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests,urllib,xbmcgui,xbmc,xbmcaddon,time
def GetLSProData(page_data, Cookie_Jar,m,itxt='Name of Song:'):#streamwatcher
  addon = xbmcaddon.Addon('plugin.video.live.streamspro')
  addon_version = addon.getAddonInfo('version')
  profile = xbmc.translatePath(addon.getAddonInfo('profile').decode('utf-8'))
  solver = InputWindow(txt=itxt);solution= solver.get()
  list=requests.get('http://slider.kz/vk_auth.php?q=%s'%solution,headers={'user-agent':'Mozilla/5.0','referer':'http://slider.kz/','x-requested-with':'XMLHttpRequest'}).content.replace('\\','')
  return re.findall('"id":"(.*?)".+?":(\d+).+?art":"(.*?)".+?":"(.*?)".+?":"([^"]+)',list)
class InputWindow(xbmcgui.WindowDialog):
  def __init__(self, *args, **kwargs):
     self.txt = kwargs.get('txt','')
     xbmcgui.WindowXMLDialog.__init__(self)
     path = xbmcaddon.Addon().getAddonInfo('path')
     self.kbd = xbmc.Keyboard()
     self.kbd.setHeading( self.txt)
  def get(self):
     self.show()
     time.sleep(2)
     self.kbd.doModal()
     if (self.kbd.isConfirmed()):
        text = self.kbd.getText()
        self.close()
        return text
     self.close()
     return False
]]></expres>
<page></page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,urllib
def GetLSProData(page_data, Cookie_Jar,m):#streamwatcher
  title=urllib.quote_plus('[makelist.param3]')
  return 'http://slider.kz/download/[makelist.param1]/[makelist.param2]/[makelist.param4]/%s.mp3?extra=[makelist.param5]'%title
]]></expres>
<page></page>
</regex>
<thumbnail>http://slider.kz/media/images/logo.png</thumbnail>
</item>
 
Status
Not open for further replies.