Help for Regex

Status
Not open for further replies.

turko03

Member
Mar 27, 2018
52
1
8
can you help me with this code makelist thanks in advance
hxxp://xxx.matbet6.tv/tr/izle/bein-sport-1
 

MasterT3

New member
Dec 28, 2013
17
0
0
Hello Guys,

can you help me with regex code for the following site please?

Code:
http://www.tamildhool.com/vijay-tv/
 

BymemoLee

Member
Apr 30, 2018
86
13
8
can you help me with this code makelist thanks in advance
hxxp://xxx.matbet6.tv/tr/izle/bein-sport-1
Code:
<item>
                <title>[COLOR red][COLOR white]Server [/COLOR]1-3[/COLOR]</title>
		<link>$doregex[encodedURL]|Referer=http://www.golnet10.tv/tr/channel/watch/bein-sport-1&User-Agent=iPad</link>
		<regex>
		<name>encodedURL</name>
		<expres>source:"([^"]+)</expres>
		<page>$doregex[link]</page>
		</regex>
		<regex>
		<name>link</name>
		<expres>$pyFunction:base64.b64decode("$doregex[getlink]")</expres>
		<page></page>
		</regex>
		<regex>
		<name>getlink</name>
		<expres>atob."([^"]+)</expres>
		<page>http://www.golnet10.tv/tr/channel/watch/bein-sport-1</page>
		<referer>http://www.golnet10.tv/tr/channel/watch/bein-sport-1</referer>
		<agent>Mozilla/5.0</agent>
		<cookieJar></cookieJar>
		</regex>
		</item>
 

streamwatcher2013

Well-known member
Oct 24, 2013
818
334
63
USA
Hello Guys,

can you help me with regex code for the following site please?

Code:
http://www.tamildhool.com/vijay-tv/
Try this. It will take some time to load more than 400 videos

Code:
https://pastebin.com/raw/3J86YMyj
Or the whole 9 yards of Series and TV Shows

Code:
https://pastebin.com/raw/RSVFVECa


 
Last edited:

vbprofi

Member
Feb 9, 2016
74
3
8
Hello experts,
I need an solution for windows, linux and android. If lsp is starting, that will copy the resource_file from home folder to profile folder. this code is working only on windows. please help fix that for other OS:
Code:
addon = xbmcaddon.Addon('plugin.video.live.streamspro.vbprofi')
addon_version = addon.getAddonInfo('version')
profile = xbmc.translatePath(addon.getAddonInfo('profile').decode('utf-8'))
home = xbmc.translatePath(addon.getAddonInfo('path').decode('utf-8'))
### start modification ###
if not os.path.exists(profile):
        os.makedirs(profile)
fo = open(home + '\\resources\\source_file', 'r')
text = fo.read()
fo.close()
fo = open(profile + 'source_file','w')
fo.write(text)
fo.close()
### end modification ###
 

izac-rock

New member
May 2, 2018
32
0
0
hello, my friends.

i need help, please.

i need regex for this site:

hxxp://netcine.us/episode/13r-1x01/

pleaseee.

in this style of regex:

<item>
<title>[COLOR blue]1x01 . Antártida[/COLOR]</title>
<link>$doregex[vida]|Referer=hxxp://netcine.us/</link><regex><name>vida</name><expres>file: "(.*ALTO.*?)"</expres>
<page>$doregex[vida1]</page></regex><regex><name>vida1</name><expres>src="(.*)" fra</expres>
<page>$doregex[vida2]</page></regex><regex><name>vida2</name><expres>src="(.*dub.*?)" fra</expres>
<page>hxxp://netcine.us/episode/atypical-1x01/</page></regex>
<thumbnail>hxxp://i.imgur.com/JJZ0ClY.jpg</thumbnail>
<fanart>hxxps://i0.wp.com/www.burnbook.com.br/wp-content/uploads/2017/08/Atypical-Netflix.jpg?resize=1200%2C675&ssl=1</fanart>
</item>

thankss
 

BymemoLee

Member
Apr 30, 2018
86
13
8
Hello
you are not working properly
Code:
<item>
    <title>[COLOR blue][B]TURKEY IPTV SERVER[/B] [/COLOR]</title>
    <link>$doregex[leg]</link>
    <regex>
        <name>leg</name>
        <listrepeat><![CDATA[
       <title>[leg.param2]</title>
       <link>$doregex[list]</link>
       ]]></listrepeat>
        <expres><![CDATA[(?s)<h2 class="post-title".+?href="http(.+?)">(.+?)</a>]]></expres>
        <page>https://www.dailyiptvlist.com/europe/turkey/</page>
    </regex>
    <regex>
        <name>list</name>
        <listrepeat><![CDATA[
       <title>[list.param2]</title>
       <link>$doregex[m3ulist]</link>
	]]></listrepeat>
        <expres><![CDATA[<a href="(.*?)">Download IpTV(.*?)</a>]]></expres>
        <page>http[leg.param1]</page>
    </regex>
    <regex>
        <name>m3ulist</name>
        <listrepeat><![CDATA[
       <title>[m3ulist.param1]</title>
       <link>$doregex[file]</link>
       ]]></listrepeat>
        <expres><![CDATA[-1,(.*?)\n(.+)]]></expres>
        <page>[list.param1]</page>
        <Referer>[list.param1]</Referer>
    </regex>
    <regex>
        <name>file</name>
        <expres><![CDATA[#$pyFunction
       def GetLSProData(page_data,Cookie_Jar,m,url='[m3ulist.param2]'):
       import urllib
       u = url
       if '.ts' in url:
        u = 'plugin://plugin.video.f4mTester/?streamtype=TSDOWNLOADER&url=' + 

urllib.request.urlopen(url)
       return u
       ]]></expres>
        <page></page>
    </regex>
</item>
 

judgie

New member
May 16, 2018
17
0
1
to streamwatcher or to regixman

can you please pm me for tva regex
the first regex you post don't work for me

thanks in advance everyone
good day....
 

izac-rock

New member
May 2, 2018
32
0
0
Hello guys

I have a doubt that I believe is simple for you.

I am building a regex and only one detail is missing

I need to know what the code is to get from that part of the forward link.

examples:

this code (. *?).
grab the .rf behind that link hxxp: //www.cometa.top/.rf


this code (. * link / player. *?)
pick up the whole link hxxp: //www.cometa.top/link/player.php

I need one that takes the t = st = forward of that link
hxxp: //cdn.micetop.us/content/httpdelivery/atypical/01dub/03-BAIXO.mp4? t = st = 1532646493 ~ exp = 1532660893 ~ acl = / content / * ~ hmac = 7e5b5f960f1317922d562e6bb5ef763f

in case to capture only the part
1532646493 ~ exp = 1532660893 ~ acl = / content / * ~ hmac = 7e5b5f960f1317922d562e6bb5ef763f

Can you do that ??

please

thank you so much
 

streamwatcher2013

Well-known member
Oct 24, 2013
818
334
63
USA
Hello guys

I have a doubt that I believe is simple for you.

I am building a regex and only one detail is missing

I need to know what the code is to get from that part of the forward link.

examples:

this code (. *?).
grab the .rf behind that link hxxp: //www.cometa.top/.rf


this code (. * link / player. *?)
pick up the whole link hxxp: //www.cometa.top/link/player.php

I need one that takes the t = st = forward of that link
hxxp: //cdn.micetop.us/content/httpdelivery/atypical/01dub/03-BAIXO.mp4? t = st = 1532646493 ~ exp = 1532660893 ~ acl = / content / * ~ hmac = 7e5b5f960f1317922d562e6bb5ef763f

in case to capture only the part
1532646493 ~ exp = 1532660893 ~ acl = / content / * ~ hmac = 7e5b5f960f1317922d562e6bb5ef763f

Can you do that ??

please

thank you so much
You have several way to capture it. But without source code i guest that link end either with ', " or <. you can try this:

Code:
httpdelivery.*?\?t.*? (\d [^\'"<]+)

\.mp4\?.*? (\d [^\'"<]+)
 

izac-rock

New member
May 2, 2018
32
0
0
You have several way to capture it. But without source code i guest that link end either with ', " or <. you can try this:

Code:
httpdelivery.*?\?t.*? (\d [^\'"<]+)

\.mp4\?.*? (\d [^\'"<]+)
thaankssss, as soon as I get home I will try it.
this is page
source:code
hxxp://www.micetop.us/desktop20.php?n=01&p=youngsheldon/01leg
 

streamwatcher2013

Well-known member
Oct 24, 2013
818
334
63
USA
thaankssss, as soon as I get home I will try it.
this is page
source:code
hxxp://www.micetop.us/desktop20.php?n=01&p=youngsheldon/01leg
From the source. You have these many option:

Code:
<regex>
<name>gettok</name>
<expres><![CDATA[file.+?\?t.+?(\d[^"]+)[\w\W]*?(?:file|</script)]]></expres>
<page>http://www.micetop.us/desktop20.php?n=01&p=youngsheldon/01leg</page>
</regex>


<regex>
<name>gettok</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  return re.findall('httpdelivery.*?\?.*?(\d[^"]+)',page_data)[-1]
]]></expres>
<page>http://www.micetop.us/desktop20.php?n=01&p=youngsheldon/01leg</page>
</regex>


<regex>
<name>gettok</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  return re.findall('mp4\?t.*?(\d[^"]+)',page_data)[-1]
]]></expres>
<page>http://www.micetop.us/desktop20.php?n=01&p=youngsheldon/01leg</page>
</regex>


<regex>
<name>gettok</name>
<expres><![CDATA[BAIXO.*?(\d[^"]+)]]></expres>
<page>http://www.micetop.us/desktop20.php?n=01&p=youngsheldon/01leg</page>
</regex>


<regex>
<name>gettok</name>
<expres><![CDATA[ALTO.*?(\d[^"]+)]]></expres>
<page>http://www.micetop.us/desktop20.php?n=01&p=youngsheldon/01leg</page>
</regex>
 

judgie

New member
May 16, 2018
17
0
1
Hi everyone
can somebody have code for TVA ?? and share to me in PM please?
thanks in advance it will be much appreciated
 
Status
Not open for further replies.