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


show results from several sites

Go down

show results from several sites Empty show results from several sites

Post by adrianhn on Tue 17 Jul - 0:47


a doubt,
How can I do the following?
through a regex

store the obtained data I have seen in example in pagination I can save data. but all of the same page. but if I wanted to do it from several pages .. example:

hxxp://pagina1.com/pelicula.html from here i get the streamlinks (some hxxp://openload.co/....)
hxxp://pagina2.com/pelicula.html from here i get more streamlinks (some hxxp://openload.co/....)
hxxp://pagina3.com/pelicula.html from here i get even more streamlinks (some hxxp://openload.co/....)

then show it all

thks for any heklp

adrianhn

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

View user profile

Back to top Go down

show results from several sites Empty Re: show results from several sites

Post by jujuuj on Wed 18 Jul - 0:21

u can try this : ?


MULTIPAGE

#multipage
url = ''
url + = client.request('http://test.com/film')
url + = client.request('http://test.com/film/page2')

jujuuj
jujuuj

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

View user profile

Back to top Go down

show results from several sites Empty Re: show results from several sites

Post by jujuuj on Wed 18 Jul - 0:25

and this :

Code:


<!--V0  MULTI-IPTV-SITES (1-webpage-per-site)  /  1-collective-EXPRES   (data-in-1st-regex)   -->
<item>
<title>V0a  MULTI-IPTV-SITES   (only .ts)</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
 <title> [makelist.param1] </title>
 <link>plugin://plugin.video.f4mTester/?streamtype=TSDOWNLOADER&amp;url=[makelist.param2]</link>
 <thumbnail>NA</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re, requests
def GetLSProData(page_data,Cookie_Jar,m):
headers = {'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0'}
data = []
sites = ['http://bla/1', 'http://bla /dos']
for site in sites:
   source = requests.get(site, headers=headers).text
   data += re.findall('#EXTINF:.*?,(.*?)\n(http.*?)\n', source)
return data
]]></expres>
<page></page>
</regex>
</item>



Last edited by jujuuj on Wed 18 Jul - 0:33; edited 1 time in total
jujuuj
jujuuj

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

View user profile

Back to top Go down

show results from several sites Empty Re: show results from several sites

Post by jujuuj on Wed 18 Jul - 0:28

or this one if the <expres> is not unique

Code:


  <item>
<title>v1d22    MULTI-SITE  /  MULTI-EXPRES  no empty ('', '', '')  </title>
<link>$doregex[makelist]</link>
    <regex>
    <name>makelist</name>
    <listrepeat><![CDATA[
    <title> [makelist.param1] </title>
    <link>$doregex[file]</link>
    ]]></listrepeat>
    <expres><![CDATA[#$pyFunction
import re, requests
def GetLSProData(page_data,Cookie_Jar,m):
 headers = {'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0'}
 data = []
 sites = [('http://www.dailyiptvlist.com/europe/france/', 'h2 class="post-title".+?href="https(.+?)"', '<blockquote><p><a href="(https:\/\/.+?)">Download', '#EXTINF:.*?,(.*?)\n(http.*?)\n'), ('http://www.dailyiptvlist.com/europe/spain/', 'h2 class="post-title".+?href="https(.+?)"', '<blockquote><p><a href="(https:\/\/.+?)">Download', '#EXTINF:.*?,(.*?)\n(http.*?)\n')]
 for site, reg1listname, reg2listurl, reg3listlinks in sites:
    sitesource = requests.get(site, headers=headers).text
    url1listname = 'http' + re.findall(reg1listname, sitesource)[0]
    url1listnamesource = requests.get(url1listname, headers=headers).text
    url2listurl = re.findall(reg2listurl, url1listnamesource)[0]
    url2listurlsource = requests.get(url2listurl, headers=headers).text
    data += re.findall(reg3listlinks, url2listurlsource)
   
 return data
]]></expres>
<page></page>
</regex>
</item>
 
jujuuj
jujuuj

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

View user profile

Back to top Go down

show results from several sites Empty Re: show results from several sites

Post by adrianhn on Wed 18 Jul - 1:01

thks i will try some of this

adrianhn

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

View user profile

Back to top Go down

show results from several sites Empty Re: show results from several sites

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