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


Examples on the web (items, makelists ...)

Go down

Examples on the web (items, makelists ...)

Post by Admin on Sun 16 Apr - 13:10

You probably know this adress :

https://www.tvaddons.ag/forums/live-video-stream-link-sharing/17239-livestreams-xml-requests-2-a-2000.html

If not, go urgently there ...  and check the last pages for some (working) examples

This is also the best place to ask for some help
(Remember : Respect ... and use [ code ]  or you won't get any answer ... Thanks)

Admin

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

View user profile http://toolsp.forumactif.com

Back to top Go down

Re: Examples on the web (items, makelists ...)

Post by kabcasa on Mon 17 Apr - 22:52


kabcasa

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

View user profile

Back to top Go down

Re: Examples on the web (items, makelists ...)

Post by vbprofi on Fri 20 Oct - 10:56

tvaddons.ag is offline. tvaddons.co is new, but without Forum for XML questions. have you an other source?

vbprofi

Messages : 45
Date d'inscription : 2017-05-03

View user profile

Back to top Go down

Re: Examples on the web (items, makelists ...)

Post by jujuuj on Fri 20 Oct - 13:50

no my friend ...
I did my best (https://www.tvaddons.co/forums/the-lounge/60278-xml-requests-3-a.html#post423059)
but ...
All this is dead ...
avatar
jujuuj

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

View user profile

Back to top Go down

Re: Examples on the web (items, makelists ...)

Post by jujuuj on Wed 7 Feb - 11:57

Hey ! this page is growing !

Code:
http://livestre  amspro.tk/wiki/index.php?n=LiveStre  amsPro.Examples
avatar
jujuuj

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

View user profile

Back to top Go down

Re: Examples on the web (items, makelists ...)

Post by jujuuj on Fri 16 Nov - 3:08

here an example that is supposed to be more or less generical, for movie sites ...

this one use quazar for p2p .

Code:


   
  <item>V.0.2   <title>  Elite Torrent  ESP  ( FULL )  [QUASAR</title>
   <thumbnail>https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSUxSiY-JgjpR409tH4GhMw0RcFYyqWTLUC16GC7F0yvhQKh5W9iNxlMcQ</thumbnail> 
        <link>$doregex[makelist0]</link>
   
        <regex>
        <name>makelist0</name>  categories
        <listrepeat><![CDATA[
        <title>[makelist0.param2]</title>
   <link>$doregex[makelist]</link>
        ]]></listrepeat>
   <expres><![CDATA[<li>\s*<a href="https:\/\/www\.elitetorrent\.biz\/([^"]+)" title="[^"]+">([^<]+)<\/a>\s*<\/li>]]></expres>
        <page>https://www.elitetorrent.biz/</page>
   <referer></referer>
   </regex>
   
   

<regex>
<name>makelist</name>      movies  (all pages)
 <listrepeat><![CDATA[
<title>[makelist.param2] 
[COLOR brown]  [makelist.param4]. [makelist.param5] [makelist.param6]. [/COLOR]</title>
<info> [makelist.param2]
 [makelist.param4]. [makelist.param5] [makelist.param6].</info>
<thumbnail>https://www.elitetorrent.biz[makelist.param3]</thumbnail>
<link>plugin://plugin.video.quasar/play?uri=$doregex[link]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re, requests
def GetLSProData(page_data,Cookie_Jar,m):#twoguns&JU#

################################################################## FORMULARY #################################################################
 starturl = 'https://www.elitetorrent.biz/'                      ### usually, ~ 'http://website.com/category/' ###
 categorylink = '[makelist0.param1]'                            ### check the number of the param ###
 centerurl = 'page/'                                      ### probably, ~ '/page/' ###
 firstpage = 1                                           ### probably, = 1 ###
 endurl = ''                           ### can be empty ###    ### endurl without final / (SLASH) ###
 pagenumbersregex = 'href=["\'][^["\']]+\D(\d{1,3})' + re.escape(endurl) + '\/*["\'][^>]*>[^<]+<'       ### This one is almost generic ###
 dataregex = '(?s)<div class="imagen">[^<]+<a href="([^"]+)" title="([^"]+)".*?src="(\/wp[^"]+)".*?<i>([^<]+)<\/i>.*?dig1">([^<]+)<.*?dig2">([^<]+)<'  ### This one is variable ###
 headers = {'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0', 'Referer': 'https://www.elitetorrent.biz'}    ### check referer ###
##############################################################################################################################################

############################## GENERIC PART #####################################
 fullurl = starturl + categorylink + centerurl + str(firstpage) + endurl   #
 source = requests.get(fullurl, headers= headers).text            #
 data = []                           #
 try:                              #
  last = sorted(map(int, re.findall(pagenumbersregex, source)))[-1]      #
 except:                           #
  last = 30                           #
 while firstpage <= last:                     #
    try:                           #
        fullurl = starturl + categorylink + centerurl + str(firstpage) + endurl   #
        source = requests.get(fullurl, headers=headers).text         #
        data += re.findall(dataregex, source)               #
        firstpage += 1                        #
    except:                           #
        pass                           #
 return data                           #
#################################################################################
]]></expres>
<page></page>
<referer>https://www.elitetorrent.biz</referer>
<cookieJar>$doregex[createCFCookie]</cookieJar>
</regex>   
     
      
        <regex>
        <name>link</name>
        <expres>$pyFunction:urllib.quote_plus('$doregex[magnet]')</expres>
        <page></page>
        </regex>
   
   <regex>
        <name>magnet</name>
        <expres>"(magnet:.*?)"</expres>
        <page>[makelist.param1]</page>
        <referer>https://www.elitetorrent.biz/</referer>
        <cookieJar>open[elitetorrent.lwp]</cookieJar>
        </regex>
   
        <regex>
        <name>createCFCookie</name>
        <expres></expres>
        <page>$pyFunction:cloudflare.createCookie('https://www.elitetorrent.biz/',Cookie_Jar,'Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/14.0.1')</page>
        <cookieJar></cookieJar>
        </regex>
   
        <regex>
        <name>savecookie</name>
        <expres></expres>
        <page></page>
        <cookieJar>save[elitetorrent.lwp]</cookieJar>
        </regex>
        </item> 
 
avatar
jujuuj

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

View user profile

Back to top Go down

Re: Examples on the web (items, makelists ...)

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