Page 88 of 88 FirstFirst ... 3878868788
Results 871 to 879 of 879

Thread: Help for Regex

  1. #871
    Junior Member
    Join Date
    Apr 2018
    Posts
    23
    hi master,

    anyone can check where i do mistake. manage to call the link but it give error everytime i play

    Code:
    <item>
    <title>www.goalsarena.org/</title>
    <link>$doregex[makelist]</link>
    
    <regex>
    <name>makelist</name>
    <listrepeat><![CDATA[
    <title>[COLOR dodgerblue]([makelist.param1])[/COLOR][COLOR gold] [makelist.param2][/COLOR]</title>
    <link>http:$doregex[getUrl]</link>
    <thumbnail></thumbnail>
    ]]></listrepeat>
    <expres><![CDATA[title="(\d+.*?)\s-\s(.*?)".href="(.*?)"]]></expres>
    <page>http://www.goalsarena.org/en</page>
    <referer>http://www.goalsarena.org/</referer>
    <agent>Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.04</agent>
    <cookieJar></cookieJar>
    </regex>
    
    <regex>
    <name>getiframe</name>
    <expres><![CDATA[<iframe src="([^"]+)]]></expres>
    <page>[makelist.param3]</page>
    <referer>http://www.goalsarena.org/</referer>
    <cookieJar></cookieJar>
    </regex>
    
    <regex>
    <name>getUrl</name>
    <expres><![CDATA[<a  href="([^"]+)]]></expres>
    <page>$doregex[getiframe]</page>
    <referer>http://www.goalsarena.org/</referer>
    <cookieJar></cookieJar>
    </regex>
    </item>

  2. #872
    Junior Member
    Join Date
    Sep 2016
    Posts
    12
    Thanks Pustule

    Both working like a charm

  3. #873
    Junior Member
    Join Date
    Sep 2016
    Posts
    12
    [QUOTE=Pustule;429326]HI:
    your page:
    Code:
    
    <item>
    <title>http://netcine.us/arranha-ceu-coragem-sem-limite/</title>  
    <link>https://www.tvaddons.co/forums/$doregex[hd]</link>
    <regex>
    <name>hd</name>
    <expres><=!=[=C=D=A=T=A=[#$pyFunction
    import re,requests
    def GetLSProData(page_data,Cookie_Jar,m):#Pustule
     url1 = re.findall('iframe src="([^"]+)',page_data)[0]
     r = requests.get(url1,headers={'Referer':'http://netcine.us/arranha-ceu-coragem-sem-limite/','User-Agent':'Mozilla/5.0','X-Requested-With':'XMLHttpRequest'}).content.decode('ascii','ignore') 
     url2= re.findall('src="([^"]+)',r)[0]
     r = requests.get(url2,headers={'Referer':url1,'User-Agent':'Mozilla/5.0','X-Requested-With':'XMLHttpRequest'}).content.decode('ascii','ignore')
     return re.findall('file: "([^"]+)',r)[-1]
    ]=]=></expres>
    <page>http://netcine.us/arranha-ceu-coragem-sem-limite/</page>
    <agent>Mozilla/5.0</agent>
    </regex>
    </item>
    Pustule
    Thanks again

    This regex only work if is only "legendado" if as "legendado" and "dublado" don't work

    example: hxxp://netcine.us/liga-da-justica/

    I only need the "legendado" if its possible

    Thanks in advance

  4. #874
    Junior Member
    Join Date
    Mar 2017
    Posts
    17
    [QUOTE=Teamblue;429332]
    Quote Originally Posted by Pustule View Post
    HI:
    your page:
    Code:
    
    
    Pustule
    Thanks again

    This regex only work if is only "legendado" if as "legendado" and "dublado" don't work

    example: hxxp://netcine.us/liga-da-justica/

    I only need the "legendado" if its possible

    Thanks in advance
    the site has changed ...:P (movies still working on it ? not for me)
    And i do not have time for the moment sorry, maybe another day.


    EDIT:

    enjoy:
    (take the first link so legendado each time and hd link)
    ALL MOVIES and realy fast
    Code:
    
    <item>
    <title>[COLOR gold]http://netcine.us/?mt[/COLOR] ALL Filmes UPDATE</title>  
    <link>$doregex[makelist]</link>
    <regex>
    <name>makelist</name>
    <listrepeat><![CDATA[
        <title>[makelist.param2]  [COLOR gold]*[makelist.param4]/10*[/COLOR]</title>
        <link>$doregex[hd]</link>
        <thumbnail>[makelist.param1]</thumbnail>
    ]]></listrepeat>
    <expres><![CDATA[#$pyFunction
    import re,requests
    def GetLSProData(page_data,Cookie_Jar,m):
     count=re.findall('paginado\'.*(\d)',page_data)[0];pn=1;data=[]
     while pn <= int(count):
    	page='http://netcine.us/page/'+str(pn)+'/?mt'
    	source=requests.get(page).content.decode('ascii','ignore')
    	list=re.findall('<div id="box_movies">(?s)(.*?)<div id="paginador">',source)[0]
    	data +=re.findall('<img src="([^"]+)" alt="([^"]+).*\n.*\n*.*(http[^"]+).*\n.*\n.*grade"></span> (\d[^<]*)',list);pn +=1
     return data
    ]]></expres>
    <page>http://netcine.us/?mt</page>
    <agent>Mozilla/5.0</agent>
    </regex>
     <regex>
    <name>hd</name>
    <expres><![CDATA[#$pyFunction
    import re,requests
    def GetLSProData(page_data,Cookie_Jar,m):#Pustule
     url1 = re.findall('iframe src="([^"]+)',page_data)[0]
     r = requests.get(url1).content.decode('ascii','ignore') 
     url2= re.findall('src="([^"]+)',r)[0]
     r = requests.get(url2).content.decode('ascii','ignore')
     url3= re.findall('\n<a href ="(http[^"]+)',r)[0]
     r = requests.get(url3).content.decode('ascii','ignore')
     return re.findall('file: "([^"]+)',r)[-1]
    ]]></expres>
    <page>[makelist.param3]</page>
    <agent>Mozilla/5.0</agent>
    </regex>
    </item>
    Last edited by Pustule; Yesterday at 08:44 PM.

  5. #875
    Junior Member
    Join Date
    Mar 2017
    Posts
    17
    Anyone have a idea for this music site ?
    Code:
    http://red-mp3.su/
    Need a cookie ("mp3key=XXXXXXX" in cookie) for playing i think, But I don't know how to do that.
    my last try:
    Code:
    <item>
    <title>redmp3</title>
    <link>$doregex[makelist]</link>
    <regex>
    <name>makelist</name>
    <listrepeat><![CDATA[
    <title>[COLOR lightblue][makelist.param2][/COLOR]</title>
    <link>http://red-mp3.su[makelist.param1]|Cookie=$get_cookies$</link>
    <thumbnail>http://red-mp3.su[makelist.param3]460x460[makelist.param4]</thumbnail>
    <info>Album: [makelist.param5]</info>
    ]]></listrepeat>
    <expres>data-mp3url="([^"]+)"[^"]+"([^"]+)(?s).*?(\/cover[^"]+)50x50([^"]+)" alt="([^"]+)</expres>
    <page>http://red-mp3.su/</page>
    <referer>http://red-mp3.su/</referer>
    <agent>Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.04</agent>
    <cookieJar>$doregex[createCFCookie]</cookieJar>
    </regex>
    <regex>
    	<name>createCFCookie</name>
    	<expres></expres>
    	<page>$pyFunction:cloudflare.createCookie('http://red-mp3.su/',Cookie_Jar,'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0')</page>
    	<cookieJar></cookieJar>
    	</regex>
    </item>
    Thanks
    Last edited by Pustule; Yesterday at 05:12 PM.

  6. #876
    Junior Member
    Join Date
    Mar 2017
    Posts
    17
    @Teamblue : I edit my last answer.

  7. #877
    Junior Member
    Join Date
    Sep 2016
    Posts
    12
    Thanks anyway @Pustule

    The first version works for me not so fast but works

    This version works very fast

  8. #878
    Junior Member
    Join Date
    Feb 2016
    Posts
    26
    Hello experts,
    I can't find the problem. the items don't show. Have someone an idea?
    Code:
    <item>
    <title>[COLOR gold]Deutschland[/COLOR] - [COLOR red]kostenloslivetv.com[/COLOR]</title>
    <link>$doregex[makelist]</link>
    
    <regex>
    <name>makelist</name>
    <listrepeat><![CDATA[
    <title>[COLOR cyan][makelist.param3][/COLOR]</title>
    <link>$doregex[getUrl]</link>
    <thumbnail>[makelist.param2]</thumbnail>
    ]]></listrepeat>
    <expres><![CDATA[#$pyFunction
    import re,requests,base64
    def GetLSProData(page_data,Cookie_Jar,m):
      url='http://www.kostenloslivetv.com/'
      res=re.findall("href='(http://www.kost.*?)'.*?src='(.*?)'.*?title='(.*?)'", requests.get(url, headers={'User-Agent':'Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0'}).content.decode('ascii','ignore'))
      return res
    ]]></expres>
    <page></page>
    <agent>Mozilla/5.0 (iPhone; CPU iPhone OS 9_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/47.0.2526.70 Mobile/13C71 Safari/601.1.46</agent>
    <Referer>[makelist.param1]</Referer>
    </regex>
    
    <regex>
    <name>getUrl</name>
    <expres><![CDATA[#$pyFunction
    import re,requests,base64
    def GetLSProData(page_data,Cookie_Jar,m):
      url='[makelist.param1]'
      res=re.findall('iframe.src="(.*?)"', requests.get(url, headers={'User-Agent':'Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0'}).content.decode('ascii','ignore'))[0]
      source=requests.get(res, headers={'Referer': url,'User-Agent':'Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0'}).content.decode('ascii','ignore')
      link=re.findall('webhdiptv\("(.*?)"',source)[0][::-1]+'=='
      return base64.b64decode(link.replace('_','/')) + '|Referer=' + url + '&User-Agent=Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0'
    ]]></expres>
    <page></page>
    </regex>
    </item>

  9. #879
    Junior Member
    Join Date
    Mar 2017
    Posts
    17
    Quote Originally Posted by vbprofi View Post
    Hello experts,
    I can't find the problem. the items don't show. Have someone an idea?
    Code:
    <item>
    <title>[COLOR gold]Deutschland[/COLOR] - [COLOR red]kostenloslivetv.com[/COLOR]</title>
    <link>$doregex[makelist]</link>
    
    <regex>
    <name>makelist</name>
    <listrepeat><![CDATA[
    <title>[COLOR cyan][makelist.param3][/COLOR]</title>
    <link>$doregex[getUrl]</link>
    <thumbnail>[makelist.param2]</thumbnail>
    ]]></listrepeat>
    <expres><![CDATA[#$pyFunction
    import re,requests,base64
    def GetLSProData(page_data,Cookie_Jar,m):
      url='http://www.kostenloslivetv.com/'
      res=re.findall("href='(http://www.kost.*?)'.*?src='(.*?)'.*?title='(.*?)'", requests.get(url, headers={'User-Agent':'Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0'}).content.decode('ascii','ignore'))
      return res
    ]]></expres>
    <page></page>
    <agent>Mozilla/5.0 (iPhone; CPU iPhone OS 9_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/47.0.2526.70 Mobile/13C71 Safari/601.1.46</agent>
    <Referer>[makelist.param1]</Referer><-- non sense
    </regex>
    
    <regex>
    <name>getUrl</name>
    <expres><![CDATA[#$pyFunction
    ....
    your first express in makelist matches nothing.
    and no need of python here. try:

    Code:
            <regex>
            <name>makelist</name>
            <listrepeat><![CDATA[
            <title>[COLOR cyan][makelist.param3][/COLOR]</title>
            <link>$doregex[getUrl]</link>
            <thumbnail>[makelist.param2]</thumbnail>
            ]]></listrepeat>
    	<expres><![CDATA[mb">\n<a href="([^"]*).*src="([^"]*).*\n.*\n.*\n[^>]*>([^<]*)]]></expres>
            <page>http://www.kostenloslivetv.com/</page>
            <agent>Mozilla/5.0</agent>
            </regex>
    Last edited by Pustule; Today at 10:21 AM.

Page 88 of 88 FirstFirst ... 3878868788

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •