Help for Regex

Status
Not open for further replies.

can

New member
Oct 25, 2016
2
0
0
Hello, can you help me please for this channel?

thanks
Code:
hxxp://www.minikacocuk.com.tr/webtv/canli-yayin
 

BymemoLee

Member
Apr 30, 2018
88
16
8
<item>
<title>[COLOR white]MINIKA COCUK ᴴᴰ[/COLOR]</title>

<link>$doregex[getsxURL]</link>

<regex>
<name>getsxURL</name>
<expres><![CDATA[#$pyFunction
import requests, re
def GetLSProData(page_data,Cookie_Jar,m,url = 'hxxp://videotoken.tmgrup.com.tr/webtv/secure?url=hxxp://trkvz-live.ercdn.net/minikagococuk/minikagococuk_576p.m3u8'):
headers = {'User-Agent': 'Mozilla/5.0','Referer': 'hxxp://www.atv.com.tr/webtv/canli-yayin'}
source = requests.get(url, headers=headers)
m3u8 = re.findall('Url".*?"(.*?)",', source.text)[0]
return m3u8 + '|User-Agent' + '|Referer'
]]></expres>
<page></page>
<cookieJar></cookieJar>
</regex>

<thumbnail></thumbnail>
<genre> </genre>
<info></info>
<fanart></fanart>
</item>
 

vbprofi

Member
Feb 9, 2016
75
3
8
have someone an idea?
Hello friens,
I need regex for this video. please try help.
Code:
https://bs.to/serie/24/1/1-Tag-1-24-00-01-00-Uhr/Streamango
I had tried this without working solution.
Code:
<item>
<title>test</title>
<urlsolve>$doregex[getstream]</urlsolve>

<regex>
<name>getstream</name>
<expres>iframe.*src='(.*?)'</iframe></expres>
<page>https://bs.to/serie/24/1/1-Tag-1-24-00-01-00-Uhr/Streamango</page>
</regex>

<cookieJar></cookieJar>
<agent>Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0</agent>
</item>
 

vbprofi

Member
Feb 9, 2016
75
3
8
I think, the fallback method makes it possible to get it working.
Code:
http://livestreamspro.pe.hu/wiki/index.php?n=Functions.Captcha
Can we use that for bs.to? What do you think about?
@vbprofi

bs.to is using Google Recaptcha v2, nothing can be done about it
 

urualf

Member
Jan 19, 2016
40
0
6
please need help with this link thank you

Code:
hxxps://www.americatv.com.ar/?1528131836145
 

Beezlo

Member
Mar 17, 2016
32
0
6
Hi all,

can any body help me creat a makelist for this..
Code:
https://www.trt.tv/dirilis-ertugrul/bolumler/20196
Thanks in Advance
 

makal

Member
Jul 23, 2014
62
16
8
please need help with this link thank you

Code:
hxxps://www.americatv.com.ar/?1528131836145
try this
Code:
<item>
<title>americatv</title>
<link>https://dai.google.com/linear/hls/event/OY2i_lL4SMyXE5Zaj4ULEg/master.m3u8|User-Agent=Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.79 Mobile Safari/537.36</link>
</item>
 

streamwatcher2013

Well-known member
Oct 24, 2013
849
352
63
USA
Hi all,

can any body help me creat a makelist for this..
Code:
https://www.trt.tv/dirilis-ertugrul/bolumler/20196
Thanks in Advance
Here u go :)

Code:
<item>
<title>https://www.trt.tv/dirilis-ertugrul/bolumler/20196</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold]Diriliş Ertuğrul [makelist.param3].Bölüm[/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>https://img.trt.tv/erimage/320x180/ItemImage/[makelist.param1]/Thumbnail.jpg</thumbnail>
  <info>[makelist.param4]</info>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  pcount=re.findall('totalCount.*?(\d+)',page_data)[0]
  source=requests.post('https://api.trt.tv/api/GetFilteredVideos',headers={'Referer':'https://www.trt.tv/dirilis-ertugrul/bolumler/20196'},data={'categories':'20196','genres':'1','direction':'DESC','type':'Custom','CustomSortField':'bolum_sirasi','pageIndex':'0','count':pcount}).text
  return re.findall('"Id":(\d+)."EncodedURL":"(.*?)"."Name".*?(\d+).*?<p>(.*?)</',source)
]]></expres>
<page>https://www.trt.tv/dirilis-ertugrul/bolumler/20196</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,urllib
def GetLSProData(page_data,Cookie_Jar,m):
  ua='Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0'
  source=requests.get('https://www.trt.tv/izle/[makelist.param1]/[makelist.param2]',headers={'Referer':'https://www.trt.tv/dirilis-ertugrul/bolumler/20196','User-Agent':ua,'Cache-Control':'no-cache'})
  inf=re.search('RequestVerificationToken".*?value="(.*?)"[\w\W]*?var.link.*?"(.*?)"',source.content.decode('ascii','ignore'))
  source=requests.post('https://www.trt.tv/Web/Watch/GetToken',headers={'Referer':'https://www.trt.tv/izle/[makelist.param1]/[makelist.param2]','Host':'www.trt.tv','User-Agent':ua,'X-Requested-With':'XMLHttpRequest','Accept':'application/json, text/javascript, */*; q=0.01','Cache-Control':'no-cache'},cookies=source.cookies,data={'baseurl':urllib.quote_plus(inf.group(2)),'__RequestVerificationToken':inf.group(1)}).content.decode('ascii','ignore')
  return re.findall('"url":"([^\'"]+)',source)[0].replace('\/u0026','&')+'|User-Agent=iPad&Referer=https://www.trt.tv/izle/[makelist.param1]/[makelist.param2]'
]]></expres>
<page></page>
</regex>
<thumbnail>https://www.trt.tv/Content/img/trt-logo.png</thumbnail>
</item>


 
Last edited:

izac-rock

New member
May 2, 2018
32
0
0
Hi, I need help, I want a regex for:

hxxp: //www.thenightfilmes.net/terminal/

it's possible?

thank you so much
 

streamwatcher2013

Well-known member
Oct 24, 2013
849
352
63
USA
Hi, I need help, I want a regex for:

hxxp: //www.thenightfilmes.net/terminal/

it's possible?

thank you so much
Here u go :)

Code:
<item>
<title>http://www.thenightfilmes.net/terminal/</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('http://www.thenightfilmes.net/player/?t=0&v='+re.findall('class="lbp_float".*?v3=(nc.*?)"',page_data)[0]).text)[0]
]]></expres>
<page>http://www.thenightfilmes.net/terminal/</page>
</regex>
</item>
It play with Kodi 17.x

 
Last edited:

izac-rock

New member
May 2, 2018
32
0
0
thanks, but
did not work on kodi 17
How can I make this style from mmfilmes?

<item>
<title> [COLOR silver] [/ COLOR] </ title>
<link> $ doregex [life] </ link>
<regex>
<name> life1 </ name>
<express> <! [CDATA [addiframe \ ([\ '"] (. *? player [^"'] +)]]> </ expres>
<page> </ page>
<referer> </ referer>
</ regex>
<regex>
<name> life </ name>
</ div> </ div> </ div> </ div> </ div> <div class =
<page> $ doregex [life1] </ page>
<referer> </ referer>
</ regex>
</ item>

thanksssss
 
Status
Not open for further replies.