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]
"
*** Doc. Kodi & PYthon ***
.
.
Python & Modules PY
.
.
.
.
(Video) Cache Kodi
.
.
.
Addons Kodi
.
.
.
Addons Kodi
.
.
*** GITHUB ***
.
.
URLresolver (J.S.) [GIT] +
.
.
.
URLresolver (elD.) [GIT] -
.
.
URLresolver (tvA.) [GIT] -
.
.
.
.
Cloudflare (external) [GIT]
.
.
.
*** 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)
.
.
FRIENDS / PARTNERS

£$π community

créer un forum


Multi<page>

Go down

Multi<page>

Post by jujuuj on Thu 23 Nov - 23:04

to run a regex that will search an <expres> in more that one <page>, there is a very short and simple solution using PYthon :
Code:

<item>
<title>multi</title>
<thumbnail></thumbnail>
<link>$doregex[makelist]</link>

<regex>      
<name>makelist</name>        
<listrepeat><![CDATA[
    <title>[makelist.param2] </title>
    <link>....[makelist.param1]</link>   <!-- or call a regex using this param -->
]]></listrepeat>
<expres>href="([^"]+)".*?title="([^"]+)"</expres>
<page>$doregex[multipage]</page>
</regex>
 
<regex>    
<name>multipage</name>
<expres><![CDATA[#$pyFunction
import requests
def GetLSProData(page_data,Cookie_Jar,m):
 myheaders = {'User-Agent': '', 'Referer': ''}
 codepage1 = requests.get('http://website.com/page1', headers= myheaders).text
 codepage2 = requests.get('http://website.com/page2', headers= myheaders). text
 codepage3 = requests.get('http://othersimilar.pw', headers= myheaders). text
 codepage4 = requests.get('http://whatelse.pw', headers= myheaders). text
 code = codepage1 + codepage2 + codepage3+ codepage4
 return code
]]></expres>
  <page></page>
  </regex>
...etc

... note that some sites will request a particular 'User-Agent' and/or 'Referer' ...  and much more dumb protections


IF you wanted to do that for the 50 pages of a category of movies ... bad idea !
run a LOOP intead ( i = 1 to 50 )
avatar
jujuuj

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

View user profile

Back to top Go down

Re: Multi<page>

Post by jujuuj on Thu 23 Nov - 23:19

if you want to check what is inside this ... <link>[makelist.param1]<link>

just change the <title>  !

in the example above,   link is param1  and title is param2
...and I want to know what link will be opened precisely ...

I can makelthe link appear in title (after the title ) , by modifying the <title> line like this :
<title>  [makelist.param2]      " Control of link : [makelist.param1]  "  </title>
avatar
jujuuj

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

View user profile

Back to top Go down

Re: Multi<page>

Post by jujuuj on Thu 7 Dec - 1:23

another solution in Python, by ...

"shamcheani on Tue 5 Dec - 22:06"

if we add code ie:-
url = ''
url + = client.request('http://test.com/film')
url + = client.request('http://test.com/film/page2')
we can grab all the link in both page
avatar
jujuuj

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

View user profile

Back to top Go down

Re: Multi<page>

Post by bhanu4444 on Sat 1 Sep - 8:35

function validateForm() {
// This function deals with validation of the form fields
var x, y, i, valid = true;
x = document.getElementsByClassName("tab");
y = x[currentTab].getElementsByTagName("input");
// A loop that checks every input field in the current tab:
for (i = 0; i < y.length; i++) {
// If a field is empty...
if (y[i].value == "") {
// add an "invalid" class to the field:
y[i].className += " invalid";
// and set the current valid status to false:
valid = false;

Visit Our Site: https://nareshit.in/software-training-institute-bangalore/

bhanu4444

Messages : 3
Date d'inscription : 2018-08-30

View user profile

Back to top Go down

Re: Multi<page>

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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