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


Need makelist for kurdin.eu - Kurdish Drama

Go down

Need makelist for kurdin.eu - Kurdish Drama

Post by gujal on Mon 14 May - 6:54

21091986# wrote:someone can help me make regex for me thanks for help

http://kurdin.eu/

Enjoy!

Code:
<item>
<title>[COLOR white]Kurdish Drama[/COLOR]</title>
<link>$doregex[genre]</link>
<thumbnail>http://kurdin.eu/wp-content/uploads/2017/11/logo-1.png</thumbnail>
<regex>
<name>genre</name>
<listrepeat><![CDATA[
 <title>[B][COLOR white][genre.param2][/B][COLOR white][COLOR white][/COLOR]</title>
 <link>$doregex[pages]<link>
 <thumbnail>http://kurdin.eu/wp-content/uploads/2017/11/logo-1.png</thumbnail>
 ]]></listrepeat>
<expres><![CDATA[id="mega-menu-item.+?href="([^"]+Channel/[^/]+)/">([^<]+)]]></expres>
<page>http://kurdin.eu/</page>
</regex>
<regex>
<name>pages</name>
<listrepeat><![CDATA[
 <title>[B][COLOR white]Page [pages.param1][/B][COLOR white][COLOR white][/COLOR]</title>
 <link>$doregex[makelist]<link>
 <thumbnail>http://kurdin.eu/wp-content/uploads/2017/11/logo-1.png</thumbnail>
 ]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re
  pages = []
  lastpg = 1
  r = re.search('(\d+)/">Last', page_data)
  if r:
    lastpg = r.group(1)
  for i in range(1, int(lastpg)+1):
    pages.append(str(i))
  return pages
]]></expres>
<page>[genre.param1]</page>
</regex>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
    <title>[makelist.param3]</title>
    <link>$doregex[makelist2]</link>
    <thumbnail>[makelist.param2]</thumbnail>
    <fanart>[makelist.param2]</fanart>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re
  thumb = 'http://kurdin.eu/wp-content/uploads/2017/11/logo-1.png'
  links = []
  r = re.findall('<article(.+?)</article>', page_data,re.DOTALL)[0]
  if '<img ' in r:
    items = re.findall('<article.+?href="([^"]+).+?title="([^"]+).+?src="([^"]+)',page_data,re.DOTALL)
    for url,title,thumb in items:
      links.append((url,thumb,title))
  else:
    items = re.findall('<article.+?href="([^"]+).+?title="([^"]+)',page_data,re.DOTALL)
    for url,title in items:
      links.append((url,thumb,title))
  return links
]]></expres>
<page>[genre.param1]/page/[pages.param1]/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
    <title>[makelist2.param2]</title>
    <link>[makelist2.param1]</link>
    <thumbnail>[makelist.param2]</thumbnail>
    <fanart>[makelist.param2]</fanart>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re, requests
  headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/14.0.1',
             'Referer': 'http://kurdin.eu/',
             'X-Requested-With': 'XMLHttpRequest'}
  sid = re.findall('"top_ten_id":"([^"]+)', page_data)
  data = {'action': 'get_video_player',
          'id': sid,
          'link': ''}
  html = requests.post('[makelist.param1]',data=data,headers=headers).content
  srcs = re.findall('''src="([^"]+)"\stype='video/([^']+)''', html)
  return srcs
]]></expres>
<page>[makelist.param1]</page>
</regex>
</item>
avatar
gujal

Messages : 19
Date d'inscription : 2018-04-10

View user profile

Back to top Go down

Re: Need makelist for kurdin.eu - Kurdish Drama

Post by vbprofi on Sun 20 May - 11:24

ui, very complex...

vbprofi

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

View user profile

Back to top Go down

Re: Need makelist for kurdin.eu - Kurdish Drama

Post by solved on Thu 31 May - 9:05


solved

solved

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

View user profile

Back to top Go down

Re: Need makelist for kurdin.eu - Kurdish Drama

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