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


afromotion

Go down

afromotion

Post by doctor4979 on Thu 9 Nov - 13:59

hi, anyone can help for regex this site please ?
Code:
http://www.afromotion.tv/afrotv/watch/W
thank you !

doctor4979

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

View user profile

Back to top Go down

Re: afromotion

Post by gujal on Wed 11 Apr - 11:05

Enjoy this full site-rip of Afromotion!
Code:
<item>
<title>Afromotion TV</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param1]</title>
  <link>$doregex[url]|User-Agent=iPhone</link>
  <thumbnail>[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m,url='https://www.afromotion.tv/afrotv/all'):
  import re,requests,HTMLParser
  h = HTMLParser.HTMLParser()
  headers = {'User-Agent':'Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/14.0.1'}
  nextpg = True
  channels = []
  while nextpg:
      html = requests.get(url,headers=headers).text
      items = re.findall('<li><div.+?href="([^"]+).+?src="([^"]+).+?title">([^<]+).+?mark">([^<]+)',html)
      for surl,thumb,name,country in items:
        surl = 'https://www.afromotion.tv' + surl
        title = '[COLOR gold]%s[/COLOR] - [COLOR cyan]%s[/COLOR]'%(country,h.unescape(name))
        channels.append((title,thumb,surl))
      if '">»' in html:
        url = 'https://www.afromotion.tv' + re.findall('href="([^"]+)"\s*data-page[^<]+>»',html)[0]
      else:
        nextpg = False
  return sorted(channels)
]]></expres>
<page></page>
<cookieJar></cookieJar>
</regex>
<regex>
<name>url</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re,requests
  token = re.findall('token"\s*content="([^"]+)',page_data)[0]
  id  =re.findall("Tv.play\('([^']+)",page_data)[0]
  headers = {'User-Agent':'Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/14.0.1',
            'Referer':'https://www.afromotion.tv/',
            'X-Requested-With':'XMLHttpRequest',
            'X-CSRF-Token':token}
  data = {'_id':id}
  surl = 'https://www.afromotion.tv/ajax/gettvdata' 
  jd = requests.post(surl,data=data,headers=headers,cookies=Cookie_Jar).json()
  strurl = jd['url'][0]['src']
  return strurl
]]></expres>
<page>[makelist.param3]</page>
<referer>https://www.afromotion.tv/</referer>
<cookieJar></cookieJar>
</regex>
<thumbnail>https://cdn.afromotion.tv/uploads/images/logo-inline.png</thumbnail>
</item>
avatar
gujal

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

View user profile

Back to top Go down

Re: afromotion

Post by doctor4979 on Tue 17 Apr - 10:49

thank you gujal !

doctor4979

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

View user profile

Back to top Go down

Re: afromotion

Post by jujuuj on Tue 17 Apr - 14:21

Marvellous !

Not the streams .. but the Python code ! study
avatar
jujuuj

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

View user profile

Back to top Go down

Re: afromotion

Post by solved on Thu 31 May - 8:52


solved

solved

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

View user profile

Back to top Go down

Re: afromotion

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


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