Help for Regex

hassuni

New member
Dec 27, 2013
4
0
1
Hello all,
can you help me please
it possible to save regex as M3U8 file and save in dropbox to play it in SmartIPTV App,

the session changed every Day.
here is the links hxxp://www.elahmad.com/tv/embed.php?id=egypt_channel1
this code changing (session=8bf2eb11c0bf997c80d8920e9fc363b5e7e98a0b5b536fdac72ac03393e1a78fa299017ce29bf1aa)
thanks alot
 

gujal

Developer
Dec 26, 2013
195
9
18
The XML with embedded python code posted here will only work on the LiveStreamsPro Kodi addon and will not work with anything else
 

tpoupi

New member
Jan 2, 2016
14
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>
 

streamwatcher2013

Active member
Oct 24, 2013
408
58
28
USA
Try this:

Code:
<item>
<title>regex hxxp://www.liketvw.com/embed/fox1</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   # If you have urlresolver
#  from resolveurl.plugins.lib import jsunpack   # If you have resoleUrl
  source=requests.get('http://www.liketvw.com/embed/fox1',headers={'user-agent':'Mozilla/5.0','referer':'http://www.liketvw.com/'}).content
  source=requests.get(re.findall('id="player"[\w\W]*?src="([^"]+)',source)[0],headers={'user-agent':'Mozilla/5.0','referer':'http://www.liketvw.com/embed/fox1'}).content
  packed=re.findall('(eval.*m3u8.*)',source)[0];gm3u8=jsunpack.unpack(packed)#.replace('\\', '')
  return re.findall('src:\s*[\'"]([^\'"]+)',gm3u8)[0]+'|user-agent=Mozilla/5.0&referer=http://www.liketvw.com/embed/fox1'
]]></expres>
<page></page>
</regex>
</item>
 

adriansyafiq

New member
Jan 3, 2016
14
0
1
hi experts..
need your help to regex
Code:
https://www.dailymotion.com/embed/video/k3GVzd2cWbveXyrApah
 

Picapau

Member
Nov 15, 2018
54
5
8
Here I leave it, now we are in the forum in this other address


Code:
<item>
<title>https://www.dailymotion.com/embed/video/k3GVzd2cWbveXyrApah</title>
<link>$doregex[url2]</link>
<regex>
<name>url2</name>
<expres>$pyFunction:'$doregex[url3]'.replace('\/','/')</expres>
<page></page>
</regex>
<regex>
<name>url3</name>
<expres>mpegURL","url":"(.*?)"</expres>
<page>https://www.dailymotion.com/embed/video/k3GVzd2cWbveXyrApah</page>
</regex>
</item>
 

mohanned

New member
Aug 27, 2013
10
0
1
hi guys

could you please help with this thanks hXXps://acestreamsearch.com/en/
 

tnico

New member
May 29, 2015
9
0
1
this regex stop, please need help
<item>
<Title>regex-hxxp://ustvgo.net/tnt/</title>
<link>$doregex[tokN]|User-Agent=Mozilla/5.0</link>
<regex><name>tokN</name>
<expres><![CDATA[file: '(.*?)']]></expres>
<page>hxxp://ustvgo.net/tnt/</page>
<referer>hxxp://ustvgo.net</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>
</item>
 

tnico

New member
May 29, 2015
9
0
1
Thank streamwatcher2013, I trie like this, itsnt work. thank

<item>
<Title>regex-hxxp://ustvgo.tv/tnt/</title>
<link>$doregex[tokN]|User-Agent=Mozilla/5.0</link>
<regex><name>tokN</name>
<expres><![CDATA[file: '(.*?)']]></expres>
<page>hxxp://ustvgo.tv/tnt/</page>
<referer>hxxp://ustvgo.tv</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>
</item>
 

baboonie

New member
Oct 9, 2016
19
1
3
Hey streamwatcher2013 or someone can you see if can scrape the channels from this site. Its a site that has legit ota stations but I can't get to the hidden code to do it. Would like to have the indivitual stations if possible. Is set up like Stirr and Pluto.


also if possible this site was in the clear till 2 days ago. It has 15 ota stations on it.

Thanks ahead of time

P.S. I was trying to learn regex when the first addons.com went down.
 

tnico

New member
May 29, 2015
9
0
1
Thank streamwatcher2013, I trie like this, itsnt work. thank

<item>
<Title>regex-hxxp://ustvgo.tv/tnt/</title>
<link>$doregex[tokN]|User-Agent=Mozilla/5.0</link>
<regex><name>tokN</name>
<expres><![CDATA[file: '(.*?)']]></expres>
<page>hxxp://ustvgo.tv/tnt/</page>
<referer>hxxp://ustvgo.tv</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>
</item>