LSP Regex & Makelist Discussion.

turko03

Member
Mar 27, 2018
45
0
6
hxxps://www.podcast.de/podcasts/verzeichnis/

is it possible to get that?
 

eltorete

New member
Jul 5, 2019
15
9
3
<item>
<title>[COLOR white]https://www.podcast.de/podcasts/verzeichnis/[/COLOR]</title>
<link>$doregex[torete0]</link>


<regex>
<name>torete0</name>
<listrepeat><![CDATA[
<title>[COLOR white][torete0.param3][/COLOR]</title>
<thumbnail>[torete0.param2]</thumbnail>
<fanart>[torete0.param2]</fanart>
<link>$doregex[torete1]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data, Cookie_Jar,m):
return re.findall('(?s)li class="">.*?a href="(.*?)".*?<img src="(.*?)" alt="(.*?)".*?',requests.get('https://www.podcast.de/podcasts/verzeichnis/',headers={'user-agent':'Mozilla/5.0'}).content)
]]></expres>
<page></page>
</regex>


<regex>
<name>torete1</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data, Cookie_Jar,m):
return re.findall('source src="(.*?)".*?',requests.get('[torete0.param1]',headers={'user-agent':'Mozilla/5.0'}).content)[0]
]]></expres>
<page></page>
</regex>

<thumbnail></thumbnail>
<fanart></fanart>
</item>
 
  • Like
Reactions: turko03

gujal

Developer
Dec 26, 2013
291
90
28
@turko03
Enjoy!
LSP Regex:
<item>
  <title>Podcast-Verzeichnis</title>
  <link>$doregex[pages]</link>
  <regex>
    <name>pages</name>
    <listrepeat><![CDATA[
    <title>[COLOR white]Seite [pages.param1][/COLOR]</title>
    <link>$doregex[items]</link>
    ]]></listrepeat>
   <expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re
  pages = []
  lastpg = re.findall('class="pager".+?>Seite\s*(\d+)',page_data, re.DOTALL)[0]
  lastpg = int(lastpg) + 1
  for i in range(1, lastpg):
    pages.append((str(i),))
  return pages
    ]]></expres>
    <page>https://www.podcast.de/podcasts/verzeichnis/aktuell/</page>
    <referer>https://www.podcast.de/</referer>
  </regex>
  <regex>
    <name>items</name>
    <listrepeat><![CDATA[
    <title>[COLOR gold][items.param1] : [COLOR white][I][items.param2][/I] [COLOR cyan][items.param3][/COLOR]</title>
    <thumbnail>[items.param4]</thumbnail>
    <info>[items.param6]</info>
    <link>$doregex[url]</link>
    ]]></listrepeat>
    <expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  from BeautifulSoup import BeautifulSoup, SoupStrainer
  import HTMLParser
  h = HTMLParser.HTMLParser()
  videos = []
  ilink = SoupStrainer('div', {'class': 'channels'})
  idiv = BeautifulSoup(page_data, parseOnlyThese=ilink)
  items = idiv.findAll('li', {'class': 'info'})
  for item in items:
    ptitle = h.unescape(item.find('a').text).encode('utf8')
    thumb = item.find('img')['src']
    ptype = item.find('span').text.encode('utf8')
    info = h.unescape(item.find('p').text.replace(ptype, '')).encode('utf8')
    etitle = h.unescape(item.findAll('p')[-1].find('a').text).encode('utf8')
    url = item.findAll('p')[-1].find('a')['href']
    videos.append((ptitle, ptype, etitle, thumb, url, info))
  return videos
    ]]></expres>
    <page>https://www.podcast.de/podcasts/verzeichnis/aktuell/?podcasts/verzeichnis/aktuell/=&amp;seite=[pages.param1]</page>
    <referer>https://www.podcast.de/</referer>
  </regex>
  <regex>
    <name>url</name>
    <expres>source\s*src="([^"]+)</expres>
    <page>[items.param5]</page>
    <referer>https://www.podcast.de/</referer>
  </regex>
  <thumbnail></thumbnail>
  <fanart></fanart>
</item>
 
  • Like
Reactions: turko03

eltorete

New member
Jul 5, 2019
15
9
3
<item>
<title>[COLOR white]https://www.podcast.de/podcasts/verzeichnis/[/COLOR]</title>
<link>$doregex[torete0]</link>


<regex>
<name>torete0</name>
<listrepeat><![CDATA[
<title>[COLOR white][torete0.param3][/COLOR]</title>
<thumbnail>[torete0.param2]</thumbnail>
<fanart>[torete0.param2]</fanart>
<link>$doregex[torete1]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data, Cookie_Jar,m):
return re.findall('(?s)li class="">.*?a href="(.*?)".*?<img src="(.*?)" alt="(.*?)".*?',requests.get('https://www.podcast.de/podcasts/verzeichnis/',headers={'user-agent':'Mozilla/5.0'}).content)
]]></expres>
<page></page>
</regex>


<regex>
<name>torete1</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data, Cookie_Jar,m):
return re.findall('source src="(.*?)".*?',requests.get('[torete0.param1]',headers={'user-agent':'Mozilla/5.0'}).content)[0]
]]></expres>
<page></page>
</regex>

<thumbnail></thumbnail>
<fanart></fanart>
</item>
 
  • Like
Reactions: altug

eltorete

New member
Jul 5, 2019
15
9
3
<item>
<title>[COLOR white]https://www.podcast.de/podcasts/verzeichnis/[/COLOR]</title>
<link>$doregex[torete0]</link>n

<regex>
<name>torete0</name>
<listrepeat><![CDATA[
<title>[COLOR white][torete0.param3][/COLOR]</title>
<thumbnail>[torete0.param2]</thumbnail>
<fanart>[torete0.param2]</fanart>
<link>$doregex[torete1]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data, Cookie_Jar,m):
return re.findall('(?s)li class="">.*?a href="(.*?)".*?<img src="(.*?)" alt="(.*?)".*?',requests.get('https://www.podcast.de/podcasts/verzeichnis/',headers={'user-agent':'Mozilla/5.0'},verify=False).content)
]]></expres>
<page></page>
</regex>



<regex>
<name>torete1</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data, Cookie_Jar,m):
return re.findall('source src="(.*?)".*?',requests.get('[torete0.param1]',headers={'user-agent':'Mozilla/5.0'},verify=False).content)[0]
]]></expres>
<page></page>
</regex>

<thumbnail></thumbnail>
<fanart></fanart>
</item>



prueba este deveria funcionarte
 
  • Like
Reactions: turko03

jujuuj

New member
Feb 25, 2015
24
0
1
http
there is a MISSING space at begining of the line, just before
return re.findall(...
it should be
Code:
 return re.findall(
use CODE tag ! Especially when an item contains Python language inside
 

myosmc

Member
May 18, 2018
52
1
8
Could you help me with a regex for this channel?
Code:
h**ps://www.anexiontv.com/crbst_7.html
 

eltorete

New member
Jul 5, 2019
15
9
3
<item>
<title>[COLOR white]hxxs://www.anexiontv.com/crbst_7.html[/COLOR]</title>
<link>$doregex[torete0]</link>


<regex>
<name>torete0</name>
<expres><![CDATA[source: .(.*?m3u8)]]></expres>
<page>hxxs://www.anexiontv.com/crbst_7.html</page>
<agent>Mozilla/5.0 (Windows NT 10.0; rv:69.0) Gecko/20100101 Firefox/69.0</agent>
<x-req>XMLHttpRequest</x-req>
<accept>*/*</accept>
</regex>


<thumbnail></thumbnail>
<fanart></fanart>
</item>
 
  • Like
Reactions: turko03

gujal

Developer
Dec 26, 2013
291
90
28
Enjoy!

LSP Regex:
<item>
  <title>Anexion TV</title>
  <link>$doregex[url]|User-Agent=iPad</link>
  <thumbnail>https://www.anexiontv.com/tv.png</thumbnail>
  <regex>
    <name>url</name>
    <expres>source:\s*'([^']+)</expres>
    <page>https://www.anexiontv.com/crbst_7.html</page>
  </regex>
</item>
 
  • Like
Reactions: turko03

eltorete

New member
Jul 5, 2019
15
9
3
I'm sorry it's the first time I write and even repeated twice I apologize. see if for the next one it will be done well, thanks
 
  • Like
Reactions: turko03

boomski2

New member
Aug 19, 2019
14
1
3
Hola brothers,

anyone can get me this regex. Last time i get the code from @gujal but now the site has change the source.

Code:
https://animeindo.to/anime/overlord/
 

eltorete

New member
Jul 5, 2019
15
9
3
XML:
<item>
<title>[COLOR white]overlord[/COLOR]</title>       
<link>$doregex[makelist]</link>
<thumbnail>https://animeindo.to/wp-content/uploads/2015/07/72748l.jpg</thumbnail>
<fanart>https://animeindo.to/wp-content/uploads/2015/07/72748l.jpg</fanart>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR white][makelist.param2][/COLOR]</title>
<thumbnail>https://animeindo.to/wp-content/uploads/2015/07/72748l.jpg</thumbnail>
<fanart>https://animeindo.to/wp-content/uploads/2015/07/72748l.jpg</fanart>
<link>$doregex[url]</link>
]]></listrepeat>
<expres><![CDATA[(?s)col-12 col-sm-6.*?href="(.*?)".*?text-h4">(.*?)<.*?]]></expres>
<page>https://animeindo.to/anime/overlord/</page>
<referer></referer>
</regex>
 <regex>
<name>url</name>
<listrepeat><![CDATA[
  <title>[COLOR white]server: [COLOR red][url.param2][/COLOR]</title>
<thumbnail>https://animeindo.to/wp-content/uploads/2015/07/72748l.jpg</thumbnail>
<fanart>https://animeindo.to/wp-content/uploads/2015/07/72748l.jpg</fanart>
<link>$doregex[server2]</link>
]]></listrepeat>
<expres><![CDATA[(?s)col col-4 col.*?(http.*?)&.*?class="">(.*?)<]]></expres>
<page>[makelist.param1]</page>
<referer></referer>
</regex>
<regex>
<name>server2</name>
<expres><![CDATA[#$pyFunction
import re,requests,xbmc,resolveurl,urllib,urllib2,cookielib
def GetLSProData(page_data,Cookie_Jar,m,url='[url.param1]'):
  if 'oload' in url:
   def read(url):
       opener = urllib2.build_opener()
       opener.addheaders = [('User-Agent', 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3163.100 Safari/537.36')]
       response = opener.open(url)
       data = response.read()
       return data
   def read_openload(url):
       default_headers = dict()
       default_headers["User-Agent"] = "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3163.100 Safari/537.36"
       default_headers["Accept"] = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"
       default_headers["Accept-Language"] = "es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3"
       default_headers["Accept-Charset"] = "UTF-8"
       default_headers["Accept-Encoding"] = "gzip"
       cj = cookielib.MozillaCookieJar()
       request_headers = default_headers.copy()
       url = urllib.quote(url, safe="%/:=&?~#+!$,;'@()*[]")
       handlers = [urllib2.HTTPHandler(debuglevel=False)]
       handlers.append(NoRedirectHandler())
       handlers.append(urllib2.HTTPCookieProcessor(cj))
       opener = urllib2.build_opener(*handlers)
       req = urllib2.Request(url, None, request_headers)
       handle = opener.open(req, timeout=None)
       return handle.headers.dict.get('location')
   def decode(code, parseInt, _0x59ce16, _1x4bfb36):
       import math
 
       _0x1bf6e5 = ''
       ke = []
 
       for i in range(0, len(code[0:9*8]),8):
           ke.append(int(code[i:i+8],16))
 
       _0x439a49 = 0
       _0x145894 = 0
 
       while _0x439a49 < len(code[9*8:]):
           _0x5eb93a = 64
           _0x896767 = 0
           _0x1a873b = 0
           _0x3c9d8e = 0
           while True:
               if _0x439a49 + 1 >= len(code[9*8:]):
                   _0x5eb93a = 143;
 
               _0x3c9d8e = int(code[9*8+_0x439a49:9*8+_0x439a49+2], 16)
               _0x439a49 +=2
 
               if _0x1a873b < 6*5:
                   _0x332549 = _0x3c9d8e & 63
                   _0x896767 += _0x332549 << _0x1a873b
               else:
                   _0x332549 = _0x3c9d8e & 63
                   _0x896767 += int(_0x332549 * math.pow(2, _0x1a873b))
 
               _0x1a873b += 6
               if not _0x3c9d8e >= _0x5eb93a: break
 
           # _0x30725e = _0x896767 ^ ke[_0x145894 % 9] ^ _0x59ce16 ^ parseInt ^ _1x4bfb36
           _0x30725e = _0x896767 ^ ke[_0x145894 % 9] ^ parseInt ^ _1x4bfb36
           _0x2de433 = _0x5eb93a * 2 + 127
 
           for i in range(4):
               _0x3fa834 = chr(((_0x30725e & _0x2de433) >> (9*8/ 9)* i) - 1)
               if _0x3fa834 != '$':
                   _0x1bf6e5 += _0x3fa834
               _0x2de433 = (_0x2de433 << (9*8/ 9))
 
           _0x145894 += 1
 
 
       url = "https://openload.co/stream/%s?mime=true" % _0x1bf6e5
       return url
 
   class NoRedirectHandler(urllib2.HTTPRedirectHandler):
       def http_error_302(self, req, fp, code, msg, headers):
           infourl = urllib.addinfourl(fp, headers, req.get_full_url())
           infourl.status = code
           infourl.code = code
           return infourl
 
       http_error_300 = http_error_302
       http_error_301 = http_error_302
       http_error_303 = http_error_302
       http_error_307 = http_error_302
 
   url = '[url.param1]'
   data = read(url)
   try:
       try:
           code = re.findall('p style="" id="[^"]+">(.*?)<\/p', data, flags=re.DOTALL)[0]
       except:
           code = re.findall('<p id=\".*?\" style=\"\">(.*?)<\/p', data, flags=re.DOTALL)[0]
       _0x59ce16 = eval(re.findall('_0x59ce16=([^;]+)',data)[0].replace('parseInt', 'int'))
       _1x4bfb36 = eval(re.findall('_1x4bfb36=([^;]+)',data)[0].replace('parseInt', 'int'))
       parseInt  = eval(re.findall('_0x30725e,(\(parseInt.*?)\),',data)[0].replace('parseInt', 'int'))
       url = decode(code, parseInt, _0x59ce16, _1x4bfb36)
       url = read_openload(url)
   except:
       pass
       return ''
      
   header_test = {'user-agent': 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3163.100 Safari/537.36'}
   header_test = '|' + urllib.urlencode(header_test)
   return url + header_test
  else:
    u = resolveurl.resolve(url)
    return u
]]></expres>
<page></page>
</regex>
</item>
 
  • Like
Reactions: turko03

timberwolfsc

New member
Jul 13, 2013
16
0
1
east coast, USA
anyone?

Code:
http://yoursports.stream/live?v=play?s=c2Vj
 

eltorete

New member
Jul 5, 2019
15
9
3
Lsp Regex:
<item>
<title>[COLOR white]yoursports[/COLOR]</title>   
<link>$doregex[get-decode]|Referer=http://yoursports.stream/live?v=play?s=c2Vj&amp;User-Agent=Mozilla/5.0 (Windows NT 10.0; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0</link>
<regex>
<name>base64</name>
 <expres><![CDATA[mustave = atob.'(.*?)']]></expres>
 <page>http://yoursports.stream/ing/play?s=c2Vj</page>
 <cookieJar></cookieJar>
 </regex>
 <regex>
 <name>get-decode</name>
 <expres>$pyFunction:base64.b64decode("$doregex[base64]")</expres>
 <page></page>
 </regex>
<thumbnail>https://pbs.twimg.com/profile_images/888836993748058113/ugLxWzQk.jpg</thumbnail>
<fanart>https://pbs.twimg.com/profile_images/888836993748058113/ugLxWzQk.jpg</fanart> 
</item>
 
  • Like
Reactions: turko03

Picapau

Member
Nov 15, 2018
68
8
8
hello @gujal , it is possible to skip the bitmitigate protection that has set the page. Thank you

Code:
https://dailysport.pw/
 

gujal

Developer
Dec 26, 2013
291
90
28
For now BitMitigate is not doing anything and is just a redirect and easy to bypass.
Enjoy!

LSP XML:
<item>
  <title>Daily Sport</title>
  <link>$doregex[makelist]</link>
  <regex>
    <name>makelist</name>
    <listrepeat><![CDATA[
    <title>[COLOR cyan][makelist.param1] - [COLOR gold][makelist.param2][/COLOR]</title>
    <link>$doregex[getpage]|User-Agent=iPad</link>
    <thumbnail></thumbnail>
    ]]></listrepeat>
    <expres><![CDATA[(?s)<tr>\n<td>([^<]+)<.+?<td>(?:<span.+?span>)?([^<]+).+?href=([^>]+)]]></expres>
    <page>https://dailysport.pw/</page>
    <setcookie>challenge=BitMitigate.com</setcookie>
  </regex>
  <regex>
    <name>getpage</name>
    <expres>source:\s*['"]([^'"]+)</expres>
    <page>https://dailysport.pw/[makelist.param3]</page>
    <setcookie>challenge=BitMitigate.com</setcookie>
    <referer>https://dailysport.pw/</referer>
  </regex>
</item>
 

udomrat

New member
Nov 10, 2016
13
4
3
Hi, help me with this channel

Code:
https://live-sports-stream.net/embed/video.php?channel=43
 

eltorete

New member
Jul 5, 2019
15
9
3
Lsp Regex:
<item>
<title>[B][LOWERCASE][CAPITALIZE][COLOR white]live-sports[/CAPITALIZE][/LOWERCASE][/B][/COLOR]</title>
<thumbnail>https://s3.amazonaws.com/busites_www/witzamfm/pages/meta/live_sports_1522507843.png</thumbnail>
<fanart>https://s3.amazonaws.com/busites_www/witzamfm/pages/meta/live_sports_1522507843.png</fanart>     
<link>https://e04.weplaylive.stream/stream/$doregex[makelist1]/masterm.m3u8|Referer=$doregex[makelist]</link>
<regex>
<name>makelist</name>
<expres><![CDATA[iframe src="(.*?)"]]></expres>
<page>https://live-sports-stream.net/embed/video.php?channel=43</page>[IMG]https://i.imgur.com/Kdb2UbJ.jpg[/IMG]
<Agent>Mozilla/5.0 (Windows NT 10.0; rv:70.0) Gecko/20100101 Firefox/70.0</Agent>
</regex>
<regex>
<name>makelist1</name>
<expres><![CDATA[player","(.*?)"]]></expres>
<page>$doregex[makelist]</page>
<Agent>Mozilla/5.0 (Windows NT 10.0; rv:70.0) Gecko/20100101 Firefox/70.0</Agent>
</regex>
</item>

 
  • Like
Reactions: udomrat

Doom

New member
Sep 16, 2019
7
0
1
Hi can someone help playing this channel and thanks!
hxxp://cablegratis.co/space-en-vivo-online/
 

MaxSpeed

New member
Nov 3, 2019
1
0
1
Hi.My name is MaxSpeed, thank you all for your experiences and help.I want to start with Kodi and Lsp pro, could you recommend me how to start and watch movies? Thank you..
 

cearuchos

New member
Oct 30, 2019
3
0
1
Hi, I am having difficulty to make this code works.
I am trying to see abc channel by accessing hxxp://123tvnow.com/watch/abc/
Thanks in advance.

Code:
<item>
<title>•  [B]123tvnow ABC[/B]</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re, json, pyaes, jscrypto, hashlib
  e = re.findall("E\.d\('([^']+)'",page_data)[0].decode('base64')
  e = json.loads(e)
  iv = e['iv'].decode('hex')
  salt = e['salt'].decode('hex')
  data = e['ciphertext'].decode('base64')
  secret = jscrypto.PBKDF2("ThisKeyIsForEmbedding!", salt, 999, 32, hashlib.sha512)
  decryptor = pyaes.new(secret, pyaes.MODE_CBC, IV=iv)
  surl = decryptor.decrypt(data).strip()
  url surl[:-ord(surl[-1])]
  return e
]]></expres>
<page>http://123tvnow.com/watch/abc/</page>
</regex>
</item>
 

gujal

Developer
Dec 26, 2013
291
90
28
What are you trying to do? I wrote the above code for a different site blackboxsys.net and you have taken that and trying blindly against another site altogether.
 

cearuchos

New member
Oct 30, 2019
3
0
1
Sorry, I am newbie on this codes... as I told before I am trying to access hxxp://123tvnow.com/watch/abc/ to watch straight on Kodi.
I would appreciate if you could help me with that.
 

Download

New member
Jun 16, 2016
8
1
3
Japan
Hi, help me plase regex with this channel
Code:
https://www.ballsoi8.com/live/?ch=foxsporthd
Code:
https://www.ballsoi8.com/allchannel/
 
  • Like
Reactions: thingy
Thread starter Similar threads Forum Replies Date
J Scraper Development 0
D Apple TV 4 44
O Addon Requests 5