TOOLSP
"
WELCOME !

Please ! Use [CODE] tags for your LINKS and CODE.
Favor usar balisas [CODE] para sus vínculos y código.
Merci d'utiliser les balises [CODE] pour vos liens et code.

[code]http://Thank.you[/code]
"
*** GITHUB ***
.
.
URL Resolver [GIT]
.
.
.
.
Jx Update [REDIRECT]
.
.
*** Associated ***
.
Pastebin Your list online
.
mediafire Upload Files
.
imgur Upload Pics
lyngsat TV logos collection
transparent .png
.
http://hola.org free? VPN
Hola.apk free? VPN App.
.
hidester- free Proxy
.
webgrabplus EPG - Eng
xmltv EPG - Fr
kazer EPG - Fr
.
.wordreference Traduction
.
mail.com (fast sign-in)
.
.
Latest topics
» SportsDevil back on Mega
Yesterday at 14:38 by skyhigh

» SportsDevil back on Mega
Fri 17 Nov - 5:30 by jairoxyz

» youtube playlists
Tue 14 Nov - 2:43 by jujuuj

» afromotion
Thu 9 Nov - 13:59 by doctor4979

» ? works on VLC, but not on kodi ?
Mon 6 Nov - 13:06 by jujuuj

» how make a request.post to get a repond
Tue 31 Oct - 16:01 by jujuuj

» how to play this in kodi
Tue 31 Oct - 15:21 by jujuuj

FRIENDS / PARTNERS

forum

créer un forum


Help with regex

View previous topic View next topic Go down

Help with regex

Post by valent_0687 on Tue 18 Apr - 20:10

Please help with this regex, i want select option 1 but dont work.

Code:

<item>
<title>[color orange]Series Pelispedia[/color]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
       <title>[color=undefined][makelist.param2][/color]</title>
       <link>$doregex[makelist2]</link>
       <thumbnail>[makelist.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[\<a href\="(.*?)" alt\="(.*?)<[\w\W\s]{0,190}(http.*?)"]]></expres>
<page>http://www.pelispedia.tv/series/all/</page>
<referer></referer>
<cookieJar></cookieJar>
</regex>

<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
<title>[color orange][makelist2.param2][/color]</title>
<link>$doregex[makelist3]</link>
<thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[\<a href\="(.*?)"[\w\W\s]{0,790}<small>(.*?)<]]></expres>
<page>[makelist.param1]</page>
<referer>[makelist.param1]</referer>
<cookieJar></cookieJar>
</regex>

<regex>
<name>makelist3</name>
<listrepeat><![CDATA[
<title>[color orange][makelist3.param2][/color]</title>
<link>$doregex[getUrl]</link>
<thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[<a href="(.*?)"[\w\W\s]{0,190}class="text">(.*?)<]]></expres>
<page>$doregex[page]</page>
<referer>[makelist2.param1]</referer>
<cookieJar></cookieJar>
</regex>


<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):

import requests, re
link = '[makelist3.param1]'
headers = {'User-Agent': 'Mozilla/5.0 (X11 Linux i686 rv:42.0) Gecko/20100101 Firefox/42.0 Iceweasel/42.0', 'Referer': '$doregex[page]'}
source = requests.get(link, headers = headers).text
select = re.findall('<video x-webkit-airplay="allow" webkit-playsinline="" src="(.*?)"', source)
url = select.replace('amp;', '')
return url
]]></expres>
<page></page>
<referer></referer>
<agent>Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36</agent>
<cookieJar></cookieJar>
</regex

<regex>
<name>page</name>
<expres><![CDATA[<iframe src="(.*?)" marginheight]]></expres>
<page>[makelist2.param1]</page>
<referer>[makelist2.param1]</referer>
<cookieJar></cookieJar>
</regex>

</item>




Last edited by valent_0687 on Thu 20 Apr - 16:41; edited 2 times in total

valent_0687

Messages : 7
Date d'inscription : 2017-04-17

View user profile

Back to top Go down

Re: Help with regex

Post by jujuuj on Thu 20 Apr - 13:43

Hello you forgot to use [code ] and [/code ]
Has olvidado las balisas ...

It is not working because it is uncomplete.
there are 5 servers or more ... and there are no regex for them ...
the links you get are intermediary links so you have to finish it, making a regex and finding the final link for every server.

Like it is, I don't think it has worked a day ;
However, it is very well built ... it may be the start of a tutorial ?

Please try to keep on (with option 1), and show us your results, for help.

Y Favor agregar las balisas [code ] ...
avatar
jujuuj

Messages : 115
Date d'inscription : 2017-03-28

View user profile

Back to top Go down

Re: Help with regex

Post by jujuuj on Sat 22 Apr - 2:19

Que hacemos entonces?
Me gasto 3 horas para hacertelo, y mañana vuelves con otro ?
O intentamos hacerlo entre todos ?

Como esto podria funcionar ? El regex get-url "me parece incompleto" ... a caso ha funcionado algun dia ?

Mira :

Hay que empezar por esto :
el ultimo makelist funcionando es el makelist3

<regex>
<name>makelist3</name>
<listrepeat><![CDATA[
<title>[makelist3.param2]</title>
<link>$doregex[getUrl]</link>
<thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[<a href="(.*?)"[\w\W\s]{0,190}class="text">(.*?)<]]></expres>
<page>$doregex[page]</page>
<referer>[makelist2.param1]</referer>
<cookieJar></cookieJar>
</regex>
y si miras el regex get-url (=buscame-la-url)
ves que saca la informacion (la unica variable) del "link" [makelist3.param1]

basicamente hay que mirar QUE ES EL [makelist3.param1]
mas precisamente, hay que mirar si es un link hacia una pagina web cualquiera (en donde se encontraria el final-link, o si es directamente el FINAL link (=el de la video =el que se puede copiar y pegar en VLC para averiguar si se abre ...)

como ?  muy facil : este  [makelist3.param1]  que quieres leer ... pues ponlo en el titulo del ultimo makelist (el 3) ... y lo veras, al lado del titulo !

asi :  
<regex>
<name>makelist3</name>
<listrepeat><![CDATA[
<title>[makelist3.param2]    [makelist3.param1]</title>
...

Si quieres terminar el item, te tocara' buscar el FINAL link en el source-code de las paginas  (esas : [makelist3.param1]) y adaptar el ultimo regex get-url (el que no "funciona")


otra manera de encontrar al [makelist3.param1], Firefox, Ctrl+u, y seguir en el codigo fuente de la(s) pagina(s) web el mismo camino (mklist1, 2, 3, regex get-url) hasta encontrar este parametro
avatar
jujuuj

Messages : 115
Date d'inscription : 2017-03-28

View user profile

Back to top Go down

Re: Help with regex

Post by valent_0687 on Mon 24 Apr - 20:53

el problema viene al sacar el ultimo link, por ejemplo: de este link
Code:
www.pelispedia.tv/pelicula/lucifer-season-1-episode-13/
obtengo este:
Code:
http://www.pelispedia.tv/api/iframes.php?id=10422&update1.1
y luego el ultimo link que obtengo es este:
Code:
http://player.pelispedia.tv/ver?v=962
y al final no se como formar el link del video con el codigo fuente que obtengo que es este:
Code:

<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Pelispedia Play</title>
<meta name="referrer" content="no-referrer"/>
<meta name="robots" content="NOINDEX, NOFOLLOW" />
<meta name="referrer" content="never"/>
<meta name="csrf-token" content="1493059642">
<script type="text/javascript">
//<![CDATA[
try{if (!window.CloudFlare) {var CloudFlare=[{verbose:0,p:0,byc:0,owlid:"cf",bag2:1,mirage2:0,oracle:0,paths:{cloudflare:"/cdn-cgi/nexp/dok3v=1613a3a185/"},atok:"a48ed993d6a88bf7849b0b54a53e5f11",petok:"f9ff0c6c2093136daede41a5a960bc705c4ac960-1493059617-1800",adblock:1,betok:"482cc862e0938474e5732f3b13508df1145105a0-1493059617-120",zone:"pelispedia.tv",rocket:"0",apps:0}];!function(a,b){a=document.createElement("script"),b=document.getElementsByTagName("script")[0],a.async=!0,a.src="//ajax.cloudflare.com/cdn-cgi/nexp/dok3v=85b614c0f6/cloudflare.min.js",b.parentNode.insertBefore(a,b)}()}}catch(e){};
//]]>
</script>
</head>
<body cz-shortcut-listen="true" style=" margin: 0; background: black; ">
<script data-cfasync="false" type="text/javascript" src="http://www.yieldtraffic.com/a/display.php?r=1525835"></script>
<script type="text/javascript" data-cfasync="false">(function(){if (window.atob) { eval(window.atob('KGZ1bmN0aW9uKCl7IHZhciB3YXNfaW5pdCA9IGZhbHNlOyBmdW5jdGlvbiBpbml0X215c2NyaXB0KCkgeyBpZiAod2FzX2luaXQpIHJldHVybiA7IHdhc19pbml0ID0gdHJ1ZTsgdmFyIGM9ZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgiZGl2Iik7Yy5pbm5lckhUTUw9IiZuYnNwOyI7Yy5jbGFzc05hbWU9ImFkc2J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CwxMCk7dmFyIG09ITEsbj17XzA6IkFCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5Ky89IixlbmNvZGU6ZnVuY3Rpb24oYil7Zm9yKHZhciBlPSIiLGEsYyxmLGQsayxnLGg9MDtoPGIubGVuZ3RoOylhPWIuY2hhckNvZGVBdChoKyspLGM9Yi5jaGFyQ29kZUF0KGgrKyksZj1iLmNoYXJDb2RlQXQoaCsrKSxkPWE+PjIsYT0oYSYzKTw8NHxjPj40LGs9KGMmMTUpPDwyfGY+PjYsZz1mJjYzLGlzTmFOKGMpP2s9Zz02NDppc05hTihmKSYmKGc9NjQpLGU9ZSt0aGlzLl8wLmNoYXJBdChkKSt0aGlzLl8wLmNoYXJBdChhKSt0aGlzLl8wLmNoYXJBdChrKSt0aGlzLl8wLmNoYXJBdChnKTtyZXR1cm4gZX19fSwxMDApIH0gZG9jdW1lbnQuYWRkRXZlbnRMaXN0ZW5lcigiRE9NQ29udGVudExvYWRlZCIsIGZ1bmN0aW9uICgpIHsgaW5pdF9teXNjcmlwdCgpOyB9ICk7IHdpbmRvdy5zZXRUaW1lb3V0KGluaXRfbXlzY3JpcHQsIDEyMCkgfSkoKTs=')) } })();</script>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="/template/css/player.css">
<style>.seccion_tit{font-size: 22px;margin: 15px auto;text-align: center;}.pestanacontenedor,.pestanacontenedorfalse {width: 96px;position: absolute;text-align: center;right: 30px;top: 80px;}.pestana,.pestanafalse {max-height: 36px;overflow: hidden;display: block;width: 83%;cursor: pointer;font-size: 12px;line-height: 14px;padding: 2px 0px 2px 10px;text-align: center;position: relative;border: 1px solid rgba(212, 212, 212, 0.36);text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);margin: 3px 0px;
color: #D3D3D3;z-index: 6;background-color: rgba(51, 130, 161, 0.74);border-radius: 5px;opacity: 0.8;box-shadow: inset 7px 0px 14px 1px rgba(255, 255, 255, 0.78);border-bottom-right-radius: 0px;border-top-right-radius: 0px;
}.pestana span{width: 78px;display: block;}#pestana_hs, #pestana_hsfalse {height: 100%;width: 12px;position: absolute;right: -10px;
top: 0px;display: block;background-color: rgba(0, 163, 255, 0.53);border-radius: 3px;box-shadow: 0px 0px 3px 1px #CFCBCB;z-index: 6;}#pestana_hs:before, #pestana_hsfalse:before{height: 10px;width: 100%;display: block;color: #fff;position: relative;
content: ">";top: 50%;opacity: 0.5;font-size: 12px;margin-top: -6px;}#pestana_hs.show:before{content:"<";
}.pestana_selected{background-color: #24394E;}#player_dock div.button{border-radius:0px;-webkit-box-shadow: none;-moz-box-shadow: none;box-shadow: none;}body #allplayers{margin:0;padding:0;color:#222}.todo{display:none;position:absolute;width:100%;height:100%;top:0;left:0}.todo.centered{width:60%;margin-left:20%}#box iframe{text-align:center;width:100%;margin:0;height:100%;overflow:hidden;border:0}#box #cuenta,#box #errorborrado,#box #error{font-size:24px;color:#009AD2;margin-top:120px;text-align:center;width:60%;left:0}#captchaForm,#captchaForm3{text-align:center;margin-top:70px}#captchaResponse,#captchaImgS #recaptcha_response_field,#captchaResponse3{background-color:#363636;color:#EBEBEB!important;margin:10px;display:inline-block;border:1px solid rgba(194,194,194,0.36);padding:4px;border-radius:3px}#captchaImg,#captchaImgS #recaptcha_challenge_image,#captchaImg3{margin:auto;text-align:center;height:auto;width:auto;border-radius:3px}#submitCaptcha,#submitCaptchaS,#submitCaptcha3{background-color:rgba(40,40,40,0.6);color:#FFF;font-family:Ubuntu;border-radius:3px;border:1px solid rgba(238,238,238,0.6);margin-right:5px;padding:4px}#formText,#formText3{margin:auto;text-align:center;position:relative;color:#ccc;margin-bottom:5px}#bufferingmsg{width:100%;color:#fff;position:absolute;z-index:3;font-weight:700;text-shadow:0 0 5px #000;text-align:center;top:50%;margin-top:50px;height:1px;overflow:visible}#player_sharingp input{color:#000!important}body #box #player_wrapper,body #box #player{margin:auto}#qualityChange{width:100%;color:#fff;position:absolute;z-index:3;font-size:60px;font-weight:700;text-shadow:0 0 5px #000;text-align:center;top:50%;margin-top:80px}#flash_warning{color:red;position:absolute;font-weight:700;text-align:center;width:50%;margin-left:25%;top:50%;margin-top:50px;text-shadow:0 0 5px #000}#swfAP3 > div{height:100%}#swfAP3 img{opacity:.6;background-color:#000;cursor:pointer;border:solid 1px #ccc;border-radius:4px;padding:20px;position:absolute;left:50%;top:50%;margin-left:-39px;margin-top:-39px}#box object#player{height:100%}#applet{opacity:.3}#box div.jwplayerDialog{overflow-x:hidden;overflow-y:hidden;overflow:auto;position:absolute;top:0;right:0;bottom:0;left:0;z-index:1041;background:rgba(0,0,0,0.84)}.jwplayerDialog .boxDialog{position:absolute;width:200px;margin-right:auto;margin-top:-55px;margin-left:-100px;height:110px;top:50%!important;left:50%!important;background:rgba(0,0,0,0.74);border:rgba(204,204,204,0.3) solid 1px;padding:8px;box-shadow:0 0 6px 2px #fff;color:#EBEBEB!important;box-sizing:border-box}.boxDialog #subName{float:left;padding-left:5px;color:#111!important;height:25px;width:105px;font-size:.8em;border-left-width:0;border-left-style:solid;box-sizing:border-box}.boxDialog #subCharset{position:absolute;right:8px;color:#FFF!important;height:25px;width:70px;font-size:.8em;background:rgba(49,49,49,0.82)}.boxDialog .dialogBoton{height:25px;width:60px;font-size:.8em;color:#111!important;bottom:10px;position:absolute}.boxDialog .dialogBotonLeft{left:10px}.boxDialog .dialogBotonRight{right:10px}.boxDialog .fileInputContainer{position:relative;height:25px;line-height:25px;top:32px}.boxDialog .fileInputOver{position:absolute;top:0;left:0;width:100%;height:100%;vertical-align:middle;text-align:center;background:rgba(204,204,204,0.09);border:1px solid rgba(207,207,207,0.5)}.boxDialog .fileInputOver .fileInputText{display:inline-block;vertical-align:middle;text-align:center;white-space:nowrap;overflow:hidden;width:100%;text-overflow:ellipsis;color:#EBEBEB!important}.boxDialog .fileInput{position:absolute;top:0;left:0;opacity:0;height:100%;width:100%;background:#ccc}.subs-dalog-button{margin-top:9px;background-color:rgba(40,40,40,0.6);color:#FFF;font-family:Ubuntu;border-radius:3px;border:1px solid rgba(238,238,238,0.6);margin-right:5px;max-width:300px}li.selected{background-color:#09F}#player_wrapper{margin:0;margin-top:-11px}.toast{background-color:rgba(30,32,39,0.67);position:absolute;right:20px;bottom:5px;z-index:10000;border-radius:5px;padding:15px;color:#fff;position:fixed;border:solid 1px rgba(255,255,255,0.51)}.jwplayerDialog .boxDialogElastic{position:absolute;top:12%!important;left:10%!important;right:10%!important;bottom:12%!important;background:rgba(0,0,0,0.74);border:rgba(204,204,204,0.3) solid 1px;padding:8px;box-shadow:0 0 6px 2px #fff;color:#A9A9A9!important}div.sublist{display:block;top:30px;overflow-y:auto;overflow-x:hidden;right:10px;left:10px;bottom:20px;z-index:9000;padding:5px;position:absolute}.search-open{position:absolute;right:10px;bottom:0;color:#244788!important}#userLangList{background:#222;color:#A9A9A9!important}.sublist li{cursor:pointer;padding:2px;list-style-type:none;text-align:left;padding-left:5px}.sublist li:hover{background:rgba(45,45,58,0.72)}li.selected{background-color:#09F}.dialog-close{background:0 0;border:0 transparent;background-image:url(../images/close.png);position:absolute;top:-30px;right:-25px;cursor:pointer;z-index:1080;width:35px;height:35px;outline:0;outline-offset:0}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{margin:0;padding:0;font-family:Dosis,Arial,sans-serif;color:#FFF}#box{background-color:#000;float:left;width:100%;margin:0}#box #floatright{margin:100px 0 0;text-align:center;font-family:'Lucida Sans Unicode';margin:10px auto 0;color:#fff}#box #cuenta{font-size:50px;color:#009AD2;float:left;width:640px;text-align:center;display:none;margin:auto}#box #cuenta span{font-size:20px;font-family:'Lucida Sans Unicode';color:#FFF}.fileError{padding:1px;text-align:center}#box #download{font-size:25px;text-align:center}#box #download a{text-decoration:none;color:#0090C6}#box #download a:hover{text-decoration:none;color:orange}#box #download div{margin-top:20px}#box #captchaForm #formText{font-size:20px;font-family:'Lucida Sans Unicode';margin-bottom:10px}#box #captchaForm{text-align:center;margin-top:90px}#box #captchaForm #captchaImg{border:medium none;clear:both;height:95px;margin:0 auto;width:325px;background-color:#fff;border-image:initial}#box #captchaForm #captchaResponse{display:block;margin:5px 202px;font-size:20px;text-align:center}#box #captchaForm #submitCaptcha{font-size:18px;margin-top:10px;padding:5px}#box .download{font-size:25px;margin-top:105px;text-align:center}#mox .download div{margin-top:20px}.jspContainer{overflow:hidden;position:relative}.jspPane{position:absolute;margin-left:0;padding-left:0;top:0;left:0}.jspVerticalBar{position:absolute;top:0;right:0;width:6px;height:100%;background:red}.jspHorizontalBar{position:absolute;bottom:0;left:0;width:100%;height:10px;background:red}.jspVerticalBar *,.jspHorizontalBar *{margin:0;padding:0}.jspCap{display:none}.jspHorizontalBar .jspCap{float:left}.jspTrack{background:#333;position:relative}.jspDrag{background:#aaa;position:relative;top:0;left:0;cursor:pointer}.jspHorizontalBar .jspTrack,.jspHorizontalBar .jspDrag{float:left;height:100%}.jspArrow{background:#50506d;text-indent:-20000px;display:block;cursor:pointer}.jspArrow.jspDisabled{cursor:default;background:#80808d}.jspVerticalBar .jspArrow{height:16px}.jspHorizontalBar .jspArrow{width:16px;float:left;height:100%}.jspVerticalBar .jspArrow:focus{outline:none}.jspCorner{background:#eeeef4;float:left;height:100%}* html .jspCorner{margin:0 -3px 0 0}.hdLabel{background:none repeat scroll 0 0 #2345D7;border-radius:2px 2px 2px 2px;box-shadow:-1px -1px 1px rgba(0,0,0,0.5);color:#FFF;font-family:Arial,sans-serif;font-size:20px;font-weight:700;height:15px;left:105px;line-height:15px;padding:3px 6px 3px 3px;position:absolute;text-align:center;text-shadow:0 1px 0 #000;top:0;width:24px}.viewOption{float:left;height:128px;width:150px}#selAction p{margin:auto;padding-top:10px;cursor:pointer}#divSource img{margin-top:3px;padding-left:5px;padding-right:5px;margin-bottom:3px}.todo{display:none;position:absolute;width:100%;top:0;left:0}.todo img{cursor:pointer}.todo .seccion_tit img{cursor:default}.seccion_tit{font-size:22px;margin:15px auto;text-align:center}.seccion_tit img{height:42px;padding:5px;vertical-align:middle}.sourceimg{width:125px;position:relative;margin:auto;margin-bottom:10px;margin-top:5px;height:60px;background-position:center;border-radius:5px;background-repeat:no-repeat;cursor:pointer}.minisourceimg{height:20px;width:20px;float:left;margin:2px}.hdLag{position:absolute;top:-2px;left:100px;box-shadow:#706C6C -2px 2px 2px;width:30px;height:20px;border-radius:4px;background-position:center;background-image:url(../images/hd_thumb.png)}.javaLag{opacity:.85;position:absolute;top:32px;left:100px;width:32px;height:32px;background:url(../images/java.png) no-repeat}.invisible{display:none}table .sourceitem{cursor:pointer;vertical-align:middle}table .sourceitem:hover{background:#2B3035}table .sourceitem:nth-child(even){background-color:#1D1A1A}table .sourceitem:nth-child(even):hover{background:#2B3035}table .sourceitem:nth-child(odd){background-color:#000}table .sourceitem:nth-child(odd):hover{background:#2B3035}.col1{width:130px;font-size:18px;overflow:hidden}.col2{width:40px;overflow:hidden}.col3{width:50px;overflow:hidden}.col4{width:60px;overflow:hidden}.colscroll{width:3px;overflow:hidden}tr{width:100%;display:block;position:relative}#player_subs input{color:#000} </style>
<script src="/template/jwplayer6.11.10/jwplayer/jwplayer.js"></script>
<script type="text/javascript">jwplayer.key="cbPZjCLEJ+O5oZl0AvaDQqyb50+ydDAD5kEqJuS10Zg=";</script>
<script src="/template/funciones.js?v=1.6.6"></script>
<br>
<script type="text/javascript">
sub_settings_enable = true;
playerPath = actualPath + "jwplayer6.11.10/";
var parametros = "?pic=962&id=/subs/2/Lucifer.1x13.srt&sub=ES";
function on_Link_Error(){
 //broken_link =  sources[sourceSelected]['valor'];
 $('#cuenta').html('<div id="cuenta" class="todo centered" style="display: block;"><span class="fileError" style="font-size: 20px;font-family: \'Lucida Sans Unicode\';color: #FFFFFF;">El Enlace de video esta caido.<br><br>Elije otra opcion!<br><br><br></span></div>');
 ShowDiv('cuenta'); //hide all others div except #cuenta
}
$(document).ready(function () {
 mostrarOpciones();
 setTimeout(function(){$("#playerSWF").css({"height":"1px"}).animate({"width":"100%","height":"100%"},700);},1000);
});
function reproducir(){
 setTimeout(function(){
   reproducir2(0);
 },100);
 return "si";
}
function setEsp(){
 jwplayer().onCaptionsList( function(){
   var levels = jwplayer().getCaptionsList();
   for (var i=0; i < levels.length; i++) {
     if(levels[i].label=="Spanish"){
       jwplayer().setCurrentCaptions(i);
     }
   }
 })
}
onPlayerSetup.push(setEsp);
window.onload = function() {
reproducir();
}

valent_0687

Messages : 7
Date d'inscription : 2017-04-17

View user profile

Back to top Go down

Re: Help with regex

Post by jujuuj on Tue 25 Apr - 2:06

pues para mi hay que seguir buscando en el ultimo codigo ...
pero admito que no es para nada facil ...

Ahora que tienes el link de cada servidor,
hay que seguir trabajando (no vas sino en la mitad ...)

Lo mas usual es de utilizar a urlresolver (el mas reciente/ updated)
para abrir estos ... ya que urlresolver sabe abrir estos servidores famosos ...

Honestamente, no tengo el nivel suficiente para terminar tu makelist ... Para mi serian noches enteras de intentos ...

Lo que puedo hacer para ayudarte es darte ejemplos de makelists que llaman a varios servidores, igual. Talvez tu tendras la patiencia y abnegacion para reproducir esto ...

Code:


<item>
<title> FilmenStreamingHD  Fr    ( updated urlresolver required )
  FILMS A L'AFFICHE</title>
<link>$doregex[makelist2]</link>
<thumbnail>http://www.filmenstreaminghd.com/uploads/yildiz_logo2.png</thumbnail>

<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
<title>[COLOR lightblue]A L'AFFICHE  -[/COLOR]  page [makelist2.param1] </title>
<link>$doregex[makelist3]</link>
<referer></referer>
]]></listrepeat>
<expres>([0-9]+),?</expres>
<page>$doregex[get-list-page]</page>
<cookieJar></cookieJar>
</regex>

<regex>
<name>get-list-page</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
 liste = list(range(102))
 return liste
]]></expres>
<page></page>
</regex>

<regex>
<name>makelist3</name>
<listrepeat><![CDATA[
      <title>  [makelist3.param2] </title>
      <info>[makelist3.param3]. [makelist3.param5]</info>
      <link>$doregex[serveur]</link>      
      <thumbnail>http://www.filmenstreaminghd.com[makelist3.param4]</thumbnail> 
]]></listrepeat>
<expres>a href="(.*?)" title="(.*?)">.*?\n.*?\n.*?kalite">(.*?)&lt;\/div>\n.*?img src="(.*?jpg)".*?\n.*?\n.*?\n.*?\n.*?\n.*?\n(.*?)\n</expres>
<page>http://www.filmenstreaminghd.com/films/page-[makelist2.param1]</page>       
<referer>http://www.filmenstreaminghd.com/index.php</referer>             
<cookieJar></cookieJar>
</regex>

<regex>
  <name>serveur</name> 
<listrepeat><![CDATA[
   <title>[COLOR snow]  [serveur.param1]-[serveur.param2][/COLOR]</title>
   <link>$doregex[final-url]</link>
   <thumbnail>http://www.filmenstreaminghd.com[makelist3.param4]</thumbnail>
]]></listrepeat>
<expres><![CDATA[(?s)class="parttab ">.*?[\s\S\W].*?"partsec" id="(.*?)".*?[\s\S\W].*?class="pikon".*?url.*?images/(.*?)\.png\).*?(?=</span)]]></expres>
<page>http://www.filmenstreaminghd.com[makelist3.param1]</page>
<agent>Mozilla/5.0 (X11; Linux i686; rv:42.0) Gecko/20100101 Firefox/42.0 Iceweasel/42.0</agent>
</regex>

<regex>
<name>getPost</name> 
<expres><![CDATA[(?s)tab-embed">.*?[\s\S\W].*?src="(.*?)"]]></expres>
<page>http://www.filmenstreaminghd.com[makelist3.param1]</page>
<agent>Mozilla/5.0 (X11; Linux i686; rv:42.0) Gecko/20100101 Firefox/42.0 Iceweasel/42.0</agent>
<referer></referer>
<cookieJar></cookieJar>
<x-req>XMLHttpRequest</x-req>
<accept>*/*</accept>
<rawpost>pid=[serveur.param1]</rawpost>
<includeheaders/>
<connection>keep-alive</connection>
</regex>

<regex>
<name>final-url</name>
<expres><![CDATA[#$pyFunction
import re , urlresolver
def GetLSProData(page_data,Cookie_Jar,m,url='$doregex[getPost]'):
 vid_url=urlresolver.resolve(url)
 return vid_url
]]></expres>
<page></page>
<cookieJar></cookieJar>
</regex>
      
</item>



Code:

<item>
  <title> [COLOR blue]Peliculas Rey  (ESP)  [/COLOR]
  ( updated urlresolver )</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[makelist.param2]</title>
<link>$doregex[makelist1]</link>
<referer></referer>
<thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[a href="(.*?)"  class="box-link genero" title="(.*?)">]]></expres>
<page>$doregex[select]</page>
<cookieJar></cookieJar>
</regex>

<regex>
<name>select</name>
<expres><![CDATA[<section class="generos">(?s)(.*?)</section>]]></expres>
<page>http://www.peliculasrey.com/</page>
<agent></agent>
<cookieJar></cookieJar>
</regex>

<regex>
<name>makelist1</name>
<listrepeat><![CDATA[
<title>page  [makelist1.param1]</title>
<link>$doregex[makelist2]</link>
<referer></referer>
<thumbnail></thumbnail>
]]></listrepeat>
<expres> (.*?),</expres>
<page>$doregex[number-pages]</page>
<cookieJar></cookieJar>
</regex>

<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
<title>[makelist2.param3]</title>
<link>$doregex[makelist3]</link>
<referer></referer>
 <thumbnail>$pyFunction: urllib.quote('[makelist2.param1]').replace('%3A',':').replace('%2F','/')</thumbnail>
]]></listrepeat>
<expres><![CDATA[img src="(.*?)".*?<a href="(.*?)".*?\n.*?\n.*?span class="frame-title">(.*?)<]]></expres>
<page>$doregex[sources]</page>
<cookieJar></cookieJar>
</regex>

<regex>
<name>makelist3</name>
<listrepeat><![CDATA[
<title>[COLOR orange][makelist3.param2][/COLOR]    [COLOR red][makelist3.param3][/COLOR]    [makelist3.param4]</title>
<link>$doregex[get-link]</link>
<referer></referer>
<thumbnail></thumbnail>
]]></listrepeat>
<expres><![CDATA[style="cursor:pointer; cursor: hand" rel="(.*?)".*?title="(.*?)".*?\n.*?\n.*?<span>(.*?)<.*?\n.*?class="q">(.*?)<]]></expres>
<page>[makelist2.param2]</page>
</regex>

<regex>
<name>sources</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):

 import requests
 import HTMLParser
 import re
 pages = '[makelist1.param1]'
 genre = '[makelist.param1]'
 url= genre + 'page/' + pages + '/'
 headers = {'User-Agent': 'Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Firefox/45.0', 'Referer': ''}
 page_data = requests.get(url, headers=headers).text

 page_data = HTMLParser.HTMLParser().unescape(page_data)

 page_data = page_data.encode('utf8')

 return page_data
]]></expres>
<page></page>
</regex>

<regex>
<name>number-pages</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m,url='[makelist.param1]'):
 import requests
 import re

 headers = {'User-Agent': 'Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Firefox/45.0', 'Referer': ''}
 page_data = requests.get(url, headers=headers).text

 pages= '1'
 try:
  pages = re.findall('gina 1 de (.*?)<', page_data)[0]
  pages = str(pages)
 except:
  pass
 if pages == '1':
  pages = int(float(pages)) + 2
  liste = list(range(pages))
  return liste
 else:
  pages = int(float(pages)) + 2
  liste = list(range(pages))
  return liste
]]></expres>
<page></page>
</regex>

<regex>
<name>get-link</name>
<expres><![CDATA[#$pyFunction
import urlresolver,requests,re
def GetLSProData(page_data,Cookie_Jar,m):


 url = '[makelist3.param1]'
 if 'spruto.tv' in url:
  headers = {'User-Agent': 'Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Firefox/45.0', 'Referer': ''}
  page_data = requests.get(url, headers=headers).text
  mp4 = re.findall('file:"(.*?)"', page_data)[0]
  return mp4
 else:
  streamLink = urlresolver.resolve(url)
  return streamLink
]]></expres>
<page></page>
</regex>
</item>

y aun asi ... no funcionaran todos los servidores, y abra' que update(ar) urlresolver siempre ...


avatar
jujuuj

Messages : 115
Date d'inscription : 2017-03-28

View user profile

Back to top Go down

Re: Help with regex

Post by jujuuj on Tue 25 Apr - 2:11

TRANSLATION :
you need a super-geek ... to finish the job ...
from : your makelist3.param1 that is the link to each server
to : the final link (using urlresolver)
avatar
jujuuj

Messages : 115
Date d'inscription : 2017-03-28

View user profile

Back to top Go down

Re: Help with regex

Post by jujuuj on Tue 25 Apr - 2:18



visitar firefox / menu / herramientas / ~web~developM~
mirar url host referer ...
avatar
jujuuj

Messages : 115
Date d'inscription : 2017-03-28

View user profile

Back to top Go down

Re: Help with regex

Post by valent_0687 on Tue 25 Apr - 3:44

Si hay links que me van con url resolver como los openlo y los thevide pero de esta pagina los que mas funcionan son la opcion 1 que es la que puse, aunque estaba viendo que los subtitulos van por separado y habria que buscarlos manualmente en cada video, igual estaria bien que pusieran que paginas son buenas para obtener links, por ejemplo yo he podido obtener regex de varias paginas en audio latino que suben archivos en la nube pero he batallado como con esta pagina de
[code]
peliepedia y tambien con doomtv
[\code]
soy nuevo en esto y no se nada de programacion ni regex, asi que apenas voy aprendiendo de esto de los referer. Gracias por la información y estare intentando sacar estos links.

valent_0687

Messages : 7
Date d'inscription : 2017-04-17

View user profile

Back to top Go down

Re: Help with regex

Post by solved on Tue 27 Jun - 0:44

... digamos que Solved ...

solved

Messages : 35
Date d'inscription : 2017-06-27

View user profile

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum