Help for Regex

Status
Not open for further replies.

hassuni

New member
Dec 27, 2013
5
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
472
243
43
The XML with embedded python code posted here will only work on the LiveStreamsPro Kodi addon and will not work with anything else
 

urualf

Member
Jan 19, 2016
40
0
6
hi people need help with this link thanks

hxxps://player.twitch.tv/?channel=juanlineatv_3
 

gujal

Developer
Dec 26, 2013
472
243
43
Twitch is a complex code and has its own addon, just install the addon and call it using plugin:// notation in lsp xml
 
  • Like
Reactions: urualf

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>
 

streamwatcher2013

Well-known member
Oct 24, 2013
818
334
63
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
27
2
3
hi experts..
need your help to regex
Code:
https://www.dailymotion.com/embed/video/k3GVzd2cWbveXyrApah
 

Picapau

Member
Nov 15, 2018
69
9
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
17
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
17
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
20
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.
 

gujal

Developer
Dec 26, 2013
472
243
43
Please use the stickied thread for your requests
 

tnico

New member
May 29, 2015
17
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>
 

tungbeng95

Member
Oct 25, 2018
286
9
18
Hi.Can u help me this regex to stream the kodi:
hxxp://mass.mako.co.il/ClicksStatistics/entitlementsServicesV2.jsp?et=gt&lp=hxxp://keshethlslive-i.akamaihd.net/hls/live/512033/CH2LIVE_HIGH/index_3100.m3u8
 

tungbeng95

Member
Oct 25, 2018
286
9
18
hxxp://mass.mako.co.il/ClicksStatistics/entitlementsServicesV2.jsp?et=gt&lp=hxxp://keshethlslive-i.akamaihd.net/hls/live/512033/CH2LIVE_HIGH/index_3100.m3u8?&rv=AKAMAI
 

gujal

Developer
Dec 26, 2013
472
243
43
Please do not post new requests here.
Use the Stickied thread. Your XML is available there now
 

gujal

Developer
Dec 26, 2013
472
243
43
@RavRob Can you please lock this thread. Even after repeated requests as above to post on the right thread, users are still posting here
 
Status
Not open for further replies.