Help for Regex

Status
Not open for further replies.

streamwatcher2013

Well-known member
Oct 24, 2013
849
350
63
USA
Hi guys, someone has a working regex of hxxp://35.184.9.107/ ???
Try this:

1/ All Pages

Code:
<item>
<title>http://35.184.9.107/index.php</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param4] ([makelist.param5])[/COLOR] - [COLOR dodgerblue][makelist.param3][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>http://[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  count=re.findall('page/(\d+)/.*\n.*?class="next',page_data)[0];pn=1;data=[]
  while pn <= int(count):
     page='http://35.184.9.107/index.php/page/'+str(pn)+'/';source=requests.get(page).content.decode('ascii','ignore')
     data +=re.findall('"TPost B".*\n.*href="(.*?)"[\w\W]*?src="//(.*?)".*\n.*lty">(.*?)<.*\n.*itle">(.*?)\s*\((\d+)',source);pn +=1
  return data
]]></expres>
<page>http://35.184.9.107/index.php</page>
<cookieJar></cookieJar>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,base64
def GetLSProData(page_data,Cookie_Jar,m):
  url=re.findall('src="(.*?)"',base64.b64decode(re.findall('"VideoPlayer".*\n.*?>(.*?)<',page_data)[0]))[0];source=requests.get(url,headers={'Referer':'[makelist.param1]'}).content.decode('ascii','ignore')
  if 'q=720p' in source:
     source=requests.get(url+'&q=720p',headers={'Referer':'[makelist.param1]'}).content.decode('ascii','ignore');return re.findall('src="(h.*?)".type="video/mp4"',source)[0]+'|Referer=%s&User-Agent=iPad'%url
  elif 'q=480p' in source:
     source=requests.get(url+'&q=480p',headers={'Referer':'[makelist.param1]'}).content.decode('ascii','ignore')
     return re.findall('src="(h.*?)".type="video/mp4"',source)[0]+'|Referer=%s&User-Agent=iPad'%url
]]></expres>
<page>[makelist.param1]</page>
</regex>
<thumbnail>http://35.184.9.107/wp-content/uploads/2018/04/bloggif_5ac2db10389ea.png</thumbnail>
</item>
2/ Alphabeticall Order

Code:
<item>
<title>http://35.184.9.107/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param2][/COLOR]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>http://35.184.9.107/wp-content/uploads/2018/04/bloggif_5ac2db10389ea.png</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  return re.findall('href="(.*?)">(.*?)<',re.findall('class="AZList">(?s)(.*?)</ul',page_data)[0])
]]></expres>
<page>http://35.184.9.107/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist2.param3] ([makelist2.param4])[/COLOR] - [COLOR dodgerblue][makelist2.param5][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>http://[makelist2.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  if 'page-numbers' not in page_data:
    return re.findall('src="//(.*?)"[\w\W]*?href="(.*?)".*\n.*>(.*?)\s*\((\d+)[\w\W]*?lty">(.*?)<',page_data)
  elif 'page-numbers' in page_data:
    count=re.findall('page/(\d+)/.*\n.*?class="next',page_data)[0];pn=1;data=[]
    while pn <= int(count):
      page='[makelist.param1]page/'+str(pn)+'/';source=requests.get(page).content.decode('ascii','ignore')
      data +=re.findall('src="//(.*?)"[\w\W]*?href="(.*?)".*\n.*>(.*?)\s*\((\d+)[\w\W]*?lty">(.*?)<',source);pn +=1
    return data
]]></expres>
<page>[makelist.param1]</page>
<cookieJar></cookieJar>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,base64
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  url=re.findall('src="(.*?)"',base64.b64decode(re.findall('"VideoPlayer".*\n.*?>(.*?)<',page_data)[0]))[0];source=requests.get(url,headers={'Referer':'[makelist2.param2]'}).content.decode('ascii','ignore')
  if 'q=720p' in source:
     source=requests.get(url+'&q=720p',headers={'Referer':'[makelist2.param2]'}).content.decode('ascii','ignore');return re.findall('src="(h.*?)".type="video/mp4"',source)[0]+'|User-Agent=iPad&Referer='+url
  elif 'q=480p' in source:
     source=requests.get(url+'&q=480p',headers={'Referer':'[makelist2.param2]'}).content.decode('ascii','ignore');return re.findall('src="(h.*?)".type="video/mp4"',source)[0]+'|User-Agent=iPad&Referer='+url
]]></expres>
<page>[makelist2.param2]</page>
</regex>
<thumbnail>http://35.184.9.107/wp-content/uploads/2018/04/bloggif_5ac2db10389ea.png</thumbnail>
</item>
 

vbprofi

Member
Feb 9, 2016
75
3
8
url://quran.com.kw/

someone can help me make regex
here I give you a exsample:
Code:
<item>
<title>test</title>
<link>$doregex[stream]</link>

<regex>
<name>stream</name>
<expres>controls="controls" src="(.+?)"</expres>
<page>http://quran.com.kw/%d8%a5%d8%b0%d8%a7%d8%b9%d8%a9-%d8%a7%d9%84%d8%b4%d9%8a%d8%ae-%d9%85%d8%ad%d9%85%d8%af-%d8%a7%d9%84%d8%b7%d8%a8%d9%84%d8%a7%d9%88%d9%8a/</page>
</regex>
</item>
 
Last edited:

streamwatcher2013

Well-known member
Oct 24, 2013
849
350
63
USA
url://quran.com.kw/

someone can help me make regex
Try this. I excluded the language section

Code:
<item>
<title>http://quran.com.kw/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
   <title>[COLOR gold][makelist.param1][/COLOR]</title>
   <link>$doregex[makelist2]</link>
   <thumbnail>http://quran.com.kw/wp-content/uploads/[email protected]</thumbnail>
]]></listrepeat>
<expres><![CDATA[(?:row white|row gray)".id="(?!Asian|Western|African).*?main-title"><h3>(.*?)</h3>(?s)(.*?)</section]]></expres>
<page>http://quran.com.kw/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
   <title>[COLOR gold][makelist2.param3][/COLOR]</title>
   <link>$doregex[getUrl]</link>
   <thumbnail>[makelist2.param2]</thumbnail>
]]></listrepeat>
<expres>radio-item.*?href="(.*?)".*?src="(.*?)".alt="([^"]+)</expres>
<page>[makelist.param2]</page>
</regex>
<regex>
<name>getUrl</name>
<expres>div_radio_player.*?src=[\'"]([^"']+)</expres>
<page>[makelist2.param1]</page>
</regex>
<thumbnail>http://quran.com.kw/wp-content/uploads/[email protected]</thumbnail>
</item>
 

Alba123

New member
Apr 4, 2018
18
0
0
Help me please , this stopped playing can somebody help
Code:
hXXps://pastebin.com/raw/KZfbBgd1
 

vbprofi

Member
Feb 9, 2016
75
3
8
Help me please , this stopped playing can somebody help
Code:
hXXps://pastebin.com/raw/KZfbBgd1
hello, try this
Code:
<item>
<title>TVMak</title>
<thumbnail></thumbnail>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR orange][makelist.param3][/COLOR]</title>
<link>$doregex[m3u8]|User-Agent=Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0</link>
<thumbnail>[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[grid-channel" href="(.*?)".*?src="(.*?)".*?title="(.*?)"]]></expres>
<agent>Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0</agent>
<page>http://tvmak.com/</page>
<cookieJar></cookieJar>
</regex>
<regex>
<name>m3u8</name>
<expres>x-mpegurl", src:"(.*?)"</expres>
<page>[makelist.param1]</page>
<referer>http://tvmak.com/</referer>
<agent>Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0</agent>
<cookieJar></cookieJar>
</regex>
</item>
 

Alba123

New member
Apr 4, 2018
18
0
0
hello, try this
Code:
<item>
<title>TVMak</title>
<thumbnail></thumbnail>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR orange][makelist.param3][/COLOR]</title>
<link>$doregex[m3u8]|User-Agent=Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0</link>
<thumbnail>[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[grid-channel" href="(.*?)".*?src="(.*?)".*?title="(.*?)"]]></expres>
<agent>Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0</agent>
<page>http://tvmak.com/</page>
<cookieJar></cookieJar>
</regex>
<regex>
<name>m3u8</name>
<expres>x-mpegurl", src:"(.*?)"</expres>
<page>[makelist.param1]</page>
<referer>http://tvmak.com/</referer>
<agent>Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0</agent>
<cookieJar></cookieJar>
</regex>
</item>
Not working
 

streamwatcher2013

Well-known member
Oct 24, 2013
849
350
63
USA
Help me please , this stopped playing can somebody help
Code:
hXXps://pastebin.com/raw/KZfbBgd1
It is more options to prevent the code has small changed
Code:
<expres><![CDATA[x-mpegurl[\w\W]*?src.[\'"]([^"']+)]]></expres>
<expres><![CDATA[x-mpegurl[\w\W]*?src.[\'"](.+/tv1[^"']+)]]></expres>
Try either one. You need the "Referer" to get the live stream, if not you only watch the commercial ads

Code:
<item>
<title>TVMak</title>
<thumbnail></thumbnail>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR orange][makelist.param3][/COLOR]</title>
<link>$doregex[m3u8]</link>
<thumbnail>[makelist.param2]</thumbnail>
]]></listrepeat>
<expres>grid-channel".href="(.*?)".*?src="(.*?)".*?title="(.*?)"</expres>
<agent>Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0</agent>
<page>http://tvmak.com/</page>
<cookieJar></cookieJar>
</regex>
<regex>
<name>m3u8</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  list=re.findall('flowplayer.container(?s)(.*?)</script',page_data)[0];return re.findall('[\'"](h.+live.*?)[\'"]',list)[0]+'|Referer=[makelist.param1]&User-Agent=iPad'
]]></expres>
<page>[makelist.param1]</page>
</regex>
</item>

<item>
<title>TVMak 2</title>
<thumbnail></thumbnail>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR orange][makelist.param3][/COLOR]</title>
<link>$doregex[m3u8]|Referer=[makelist.param1]&User-Agent=Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0</link>
<thumbnail>[makelist.param2]</thumbnail>
]]></listrepeat>
<expres>grid-channel".href="(.*?)".*?src="(.*?)".*?title="(.*?)"</expres>
<agent>Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0</agent>
<page>http://tvmak.com/</page>
<cookieJar></cookieJar>
</regex>
<regex>
<name>m3u8</name>
<expres>x-mpegurl[\w\W]*?src.[\'"]([^"']+)</expres>
<page>[makelist.param1]</page>
<referer>http://tvmak.com/</referer>
<agent>Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0</agent>
<cookieJar></cookieJar>
</regex>
</item>
 
Last edited:
Status
Not open for further replies.