LSP Regex & Makelist Discussion.

dantas1990

New member
Apr 10, 2020
29
1
3
<item>
<title> [COR branca] ABC [/ B] [/ COLOR] </title>
<link> $ doregex [getUrl] </link>
<regex>
<name> getUrl </name>
<expres> <! [CDATA [# $ pyFunction
importação re, pedidos
def GetLSProData (page_data, Cookie_Jar, m):
link = 'https: //ustvgo.tv/'+re.findall (' (player.php [^ \ '"] +)', dados de página) [0]
source = orders.get (link, headers = {'user-agent': 'Mozilla / 5.0', 'referer': 'https: //ustvgo.tv/abc-live-streaming-free/'}). conteúdo
player = re.findall ('(?: origem | arquivo): \ s * ([^ \ (] +)', origem) [0]
html_list, gtok, tok2 = re.findall ('(? s)% s. +? return. +? \] = ([^ \ (] +). +? \) \ + ([^ \] \ [] +). +? \] \ ([\ '"] ([^ \'"] +) '% jogador, fonte) [0]
tok = re.findall ('% s. +? \ [("[^ \]] +)'% gtok, origem) [0]; token = ''. join (eval (tok))
token2 = re.findall ('id =% s> ([^ <] +)'% tok2, origem) [0]
ghtml = re.findall ('case. +?: \ s * return \ s * "([^"] +)', re.findall ('% s (? s) (. *?) \} \}; var '% html_list, fonte) [0])
return 'https: //peer%s.ustv24h.live/ABC/myStream/playlist.m3u8? wmsAuthSign =% s% s | user-agent = ipad & origin = https: //ustvgo.tv&referer=%s'% (ghtml [ 8], token, token2, link)
]]> </expres>
<page> https://ustvgo.tv/abc-live-streaming-free/ </page>
<referer> https://ustvgo.tv/ </referer>
<thumbnail> https://imgur.com/RP9PM0S.jpg </thumbnail>
<fanart> https://imgur.com/0cIx7Gv.jpg </fanart>
</regex>
</item>


Olá, por favor, como faço para reproduzir? Dá erro. Eu acho que tenho que colocar um código na base do meu addon (padrão), qual código?
 

dantas1990

New member
Apr 10, 2020
29
1
3
Yes. I did the test on the addon and it did not reproduce, it seems that something I have to do. What code should I put in the base of the addon?
 

Rubi2011

New member
Mar 10, 2017
4
0
1
Code:
Can you help me with this pls

hxxp://voody.online/load/seir/
 

streamwatcher2013

Well-known member
Oct 24, 2013
734
275
63
USA
Try this

LSP XML code:
<item>
<title>http://voody.online/load/seir/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param3]  [COLOR dodgerblue][[makelist.param4]][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>http://voody.online[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  list=re.findall('(?s)itemBody.+?src="([^"]+).+?class="title"><a\s*href="([^"]+).+?>(.*?)\s*\((\d+)',re.findall('"moviesList(?s)(.*?)pagi',page_data)[0].replace('#038;','').replace('&#8211;','-').replace('&#8217;','\''))
  mpage=re.findall('(\d+)</.{15,16}nav_ext',page_data)[0]
  for pn in xrange(2,int(mpage)):
    source=requests.get('http://voody.online/load/seir//page/'+str(pn)+'/',headers={'user-agent':'Mozilla/5.0','referer':'http://voody.online/load/seir/','accept':'*/*'}).content.replace('#038;','').replace('&#8211;','-').replace('&#8217;','\'')
    list +=re.findall('(?s)itemBody.+?src="([^"]+).+?class="title"><a\s*href="([^"]+).+?>(.*?)\s*\((\d+)',re.findall('"moviesList(?s)(.*?)pagi',page_data)[0])
  return list
]]></expres>
<page>http://voody.online/load/seir/</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('var\s*player[\w\W]*?(?:source|src|file)":(?:|\s*)"([^"]+)',page_data)[0]+'|user-agent=ipad&referer=[makelist.param2]'
]]></expres>
<page>[makelist.param2]</page>
</regex>
<thumbnail>http://voody.online/templates/Flymix/images/logo.png</thumbnail>
</item>
 
  • Like
Reactions: Rubi2011

Rubi2011

New member
Mar 10, 2017
4
0
1
Code:
 hey @streamwatcher2013
you can make both seasons and episodes  
https://imgur.com/zvxP58j    https://imgur.com/GnBRWDx   Thank you
 

streamwatcher2013

Well-known member
Oct 24, 2013
734
275
63
USA
Try this:

LSP XML code:
<item>
<title>http://voody.online/load/seir/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param3]  [COLOR dodgerblue][[makelist.param4]][/COLOR]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>http://voody.online[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  list=re.findall('(?s)itemBody.+?src="([^"]+).+?class="title"><a\s*href="([^"]+).+?>(.*?)\s*\((\d+)',re.findall('"moviesList(?s)(.*?)pagi',page_data)[0].replace('#038;','').replace('&#039;','\'').replace('&#8211;','-').replace('&#8217;','\''))
  mpage=re.findall('(\d+)</.{15,16}nav_ext',page_data)[0]
  for pn in xrange(2,int(mpage)):
    source=requests.get('http://voody.online/load/seir//page/'+str(pn)+'/',headers={'user-agent':'Mozilla/5.0','referer':'http://voody.online/load/seir/','accept':'*/*'}).content.replace('#038;','').replace('&#039;','\'').replace('&#8211;','-').replace('&#8217;','\'')
    list +=re.findall('(?s)itemBody.+?src="([^"]+).+?class="title"><a\s*href="([^"]+).+?>(.*?)\s*\((\d+)',re.findall('"moviesList(?s)(.*?)pagi',source)[0])
  return list
]]></expres>
<page>http://voody.online/load/seir/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist2.param1][/COLOR]</title>
  <link>$doregex[makelist3]</link>
  <thumbnail>http://voody.online[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  list=re.findall('\{"playlist":(?s)(.*?)</script',page_data)[0]
  if '"eason' in list:
    return re.findall('\{"comment":"([^"]+).+?\[(?s)(.*?)\]',list)
  else:
    return re.findall('"comment":"([^"]+).+?file":"([^"]+)',list)
]]></expres>
<page>[makelist.param2]</page>
</regex>
<regex>
<name>makelist3</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist3.param1][/COLOR]</title>
  <link>[makelist3.param2]|user-agent=ipad</link>
  <thumbnail>http://voody.online[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,urllib
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  if 'pisode' in page_data:
    return re.findall('"comment":"([^"]+).+?file":"([^"]+)',page_data)
  else:
     source=urllib.urlopen('[makelist.param2]').read()
     list=re.findall('\{"playlist":(?s)(.*?)</script',source)[0]
     return re.findall('"comment":"([^"]+).+?file":"([^"]+)',list)
]]></expres>
<page>[makelist2.param2]</page>
</regex>
<thumbnail>http://voody.online/templates/Flymix/images/logo.png</thumbnail>
</item>
 
  • Friendly
Reactions: Rubi2011

tungbeng95

Member
Oct 25, 2018
181
7
18
Can do make it working on LSP? hxxps://www.1spotmedia.com/index.php/api/vod/get_live_streams
 

streamwatcher2013

Well-known member
Oct 24, 2013
734
275
63
USA
Try this:

LSP XML code:
<item>
<title>https://www.1spotmedia.com</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param1]</title>
  <link>[makelist.param3]|user-agent=ipad</link>
  <thumbnail>[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  list=re.findall('(.*)',page_data)[0].replace('\\','')
  return re.findall('"title":"([^"]+).+?ChannelLogo.+?dUrl":"([^"]+).+?Android.+?Url":"([^"]+)',list)
]]></expres>
<page>https://www.1spotmedia.com/index.php/api/vod/get_live_streams</page>
</regex
</item>
 
  • Like
Reactions: tungbeng95

Doom

Member
Sep 16, 2019
155
20
18
Help for this and thanks!
hxxp://6stream.xyz/video/moloney-vs-franco/
 

streamwatcher2013

Well-known member
Oct 24, 2013
734
275
63
USA
Simple one

LSP XML code:
<item>
<title>ESPN</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  return re.findall('player[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',page_data)[0]+'|user-agent=ipad&referer=http://6stream.xyz/video/moloney-vs-franco/'
]]></expres>
<page>http://6stream.xyz/video/moloney-vs-franco/</page>
<referer>http://6stream.xyz/</referer>
</regex
</item>
 
  • Like
Reactions: Doom

altug

Member
Jul 7, 2016
48
2
8
Can someone help me with this?

[(link remove do not post live links).
 
Last edited by a moderator:

streamwatcher2013

Well-known member
Oct 24, 2013
734
275
63
USA
Simple one

LSP XML code:
<item>
<title>bein-sport-1</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  return 'http://caspertv.com/'+re.findall('source:"([^"]+)',page_data)[0]+'|user-agent=ipad&referer=http://caspertv.com/iframe.php?match=bein-sport-1'
]]></expres>
<page>http://caspertv.com/iframe.php?match=bein-sport-1</page>
<referer>http://caspertv.com/index.php?match=bein-sport-1&amp;type=1</referer>
</regex
</item>
 
  • Like
Reactions: altug

altug

Member
Jul 7, 2016
48
2
8
Hello friends, Makelist no longer works, what needs to be changed? thanks in advance


<item>
<title>SITE EMBED | [COLOR cyan]BETTİCKET[/COLOR]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR lime][makelist.param3] [COLOR white][makelist.param2][/COLOR]</title>
<link>$doregex[getUrl]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):#
import re
return re.findall('(?s)item\s*(?:tv|football).+?href="/(.+?)"[\w\W]+?name">([^"]+)</strong[\w\W]+?class="(?:time|live)">(.*?)</span',re.findall('channel-list">(?s)(.*?)</section>',page_data)[0].replace("CANLI", ""))
]]></expres>
<page>http://betticketcanlimac.com/mac</page>
<referer>http://betticketcanlimac.com/mac/</referer>
<cookieJar></cookieJar>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):#
import re
import requests
link=re.findall('id="player"[\s\S]+?iframe\s*src="/(.+?)"',page_data)[0]
rlink=requests.get('http://betticketcanlimac.com/' +link,headers={'user-agent':'Mozilla/5.0','referer':'http://betticketcanlimac.com/mac/[makelist.param1]','accept':'*/*'}).text
surl=re.findall('source:"([^\'"]+)',rlink)[0]
if 'source' in surl:
surl = 'http://betticketcanlimac.com/mac/' + surl
return surl
elif 'source' not in surl:
return surl+'|User-Agent=Mozilla/5.0 (X11 Linux i686 rv:42.0) Gecko/20100101 Firefox/42.0 Iceweasel/42.0&Origin=https://betticketcanlimac.com&Alt-Used=betticketcanlimac.com:443&Referer=http://betticketcanlimac.com/mac/[makelist.param1]'
]]></expres>
<page>http://betticketcanlimac.com/[makelist.param1]</page>
<referer>http://betticketcanlimac.com/mac/</referer>
<cookieJar></cookieJar>
</regex>
</item>
 
  • Like
Reactions: myosmc

Doom

Member
Sep 16, 2019
155
20
18
Can I get help here get the most possible for boxing replays & thanks guys!
hxxps://www.boxingfightsvideos.com
 

streamwatcher2013

Well-known member
Oct 24, 2013
734
275
63
USA
Try this

LSP XML Code:
<item>
<title>https://www.boxingfightsvideos.com</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param2][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  list=re.findall('(?s)class="item".+?src="([^"]+).+?<h5>.+?(\w.+?)\s*</h5.+?href="([^"]+)',re.findall('id="owl-demo"(?s)(.*?)</section',page_data)[0])
  url='https://www.boxingfightsvideos.com/category/full-fight/page/{}/'
  for i in range(2,6):
    source=requests.post(url.format(i),headers={'user-agent':'Mozilla/5.0','host':'www.boxingfightsvideos.com','referer':'https://www.boxingfightsvideos.com/category/full-fight/','x-requested-with':'XMLHttpRequest','accept':'*/*'}).content
    list +=re.findall('(?s)class="item".+?src="([^"]+).+?<h5>.+?(\w.+?)\s*</h5.+?href="([^"]+)',re.findall('id="owl-demo"(?s)(.*?)</section',source)[0])
  return list
]]></expres>
<page>https://www.boxingfightsvideos.com/category/full-fight/</page>
<referer>https://www.boxingfightsvideos.com/</referer>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,resolveurl
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  stream=re.findall('id=.player2[\w\W]+?src="([^"]+)',page_data)[0];stream='https:'+stream if stream.startswith('//') else stream
  return resolveurl.resolve(stream)
]]></expres>
<page>[makelist.param3]</page>
<referer>https://www.boxingfightsvideos.com/category/full-fight/</referer>
</regex>
</item>
 
  • Like
Reactions: Doom

streamwatcher2013

Well-known member
Oct 24, 2013
734
275
63
USA
Change 1st makelist

LSP XML Code:
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param2][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  list=re.findall('(?s)"post-thumb.+?src="([^"]+).*?"post-des.+?href="([^"]+).>.+?(\w.*?)\s*<',re.findall('id="new-all">(?s)(.*?)pagi',page_data)[0])
  url='https://www.boxingfightsvideos.com/category/full-fight/page/{}/'
  for i in range(2,6):
    source=requests.post(url.format(i),headers={'user-agent':'Mozilla/5.0','host':'www.boxingfightsvideos.com','referer':'https://www.boxingfightsvideos.com/category/full-fight/','x-requested-with':'XMLHttpRequest','accept':'*/*'}).content
    list +=re.findall('(?s)"post-thumb.+?src="([^"]+).*?"post-des.+?href="([^"]+).>.+?(\w.*?)\s*<',re.findall('id="new-all">(?s)(.*?)pagi',source)[0])
  return list
]]></expres>
<page>https://www.boxingfightsvideos.com/category/full-fight/</page>
<referer>https://www.boxingfightsvideos.com/</referer>
</regex>

For 2020/06 It shoule be similar just change the url

Code:
<item>
<title>https://www.boxingfightsvideos.com/2020/06/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param2][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  list=re.findall('(?s)"post-thumb.+?src="([^"]+).*?"post-des.+?href="([^"]+).>.+?(\w.*?)\s*<',re.findall('id="new-all">(?s)(.*?)pagi',page_data)[0])
  url='https://www.boxingfightsvideos.com/2020/06/page/{}/'
  for i in range(2,6):
    source=requests.post(url.format(i),headers={'user-agent':'Mozilla/5.0','host':'www.boxingfightsvideos.com','referer':'https://www.boxingfightsvideos.com/2020/06/','x-requested-with':'XMLHttpRequest','accept':'*/*'}).content
    list +=re.findall('(?s)"post-thumb.+?src="([^"]+).*?"post-des.+?href="([^"]+).>.+?(\w.*?)\s*<',re.findall('id="new-all">(?s)(.*?)pagi',source)[0])
  return list
]]></expres>
<page>https://www.boxingfightsvideos.com/2020/06/</page>
<referer>https://www.boxingfightsvideos.com/</referer>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,resolveurl
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  stream=re.findall('id=.player2[\w\W]+?src="([^"]+)',page_data)[0];stream='https:'+stream if stream.startswith('//') else stream
  return resolveurl.resolve(stream)
]]></expres>
<page>[makelist.param3]</page>
<referer>https://www.boxingfightsvideos.com/2020/06/</referer>
</regex>
</item>
 

streamwatcher2013

Well-known member
Oct 24, 2013
734
275
63
USA
Because the pages is only up to 4 so it will get error when it exceed page # 4. Here is the fix

LSP XML Code:
<item>
<title>https://www.boxingfightsvideos.com/2020/06/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param3][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  list=re.findall('(?s)"post-thumb.+?src="([^"]+).*?"post-des.+?href="([^"]+).>.+?(\w.*?)\s*<',re.findall('id="new-all">(?s)(.*?)pagi',page_data)[0])
  url='https://www.boxingfightsvideos.com/2020/06/page/{}/';pn=re.findall('(\d+)</a></li><li><a.{59,60}Next',page_data)[0]
  for i in range(2,int(pn)):
    source=requests.post(url.format(i),headers={'user-agent':'Mozilla/5.0','host':'www.boxingfightsvideos.com','referer':'https://www.boxingfightsvideos.com/2020/06/','x-requested-with':'XMLHttpRequest','accept':'*/*'}).content
    list +=re.findall('(?s)"post-thumb.+?src="([^"]+).*?"post-des.+?href="([^"]+).>.+?(\w.*?)\s*<',re.findall('id="new-all">(?s)(.*?)pagi',source)[0])
  return list
]]></expres>
<page>https://www.boxingfightsvideos.com/2020/06/</page>
<referer>https://www.boxingfightsvideos.com/</referer>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,resolveurl
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  stream=re.findall('id=.player2[\w\W]+?src="([^"]+)',page_data)[0];stream='https:'+stream if stream.startswith('//') else stream
  return resolveurl.resolve(stream)
]]></expres>
<page>[makelist.param2]</page>
<referer>https://www.boxingfightsvideos.com/2020/06/</referer>
</regex>
</item>
 
  • Like
Reactions: Doom

peterpan

Active member
Jul 7, 2013
103
73
28
@Doom Here you go m8...June 2020 & Full Site by Category - These RegEx's take a while to load but they should retrieve almost all the videos for you :)

XML:
<item>
<title>**https://www.boxingfightsvideos.com/2020/06/**</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param4] - [makelist.param3][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  list=re.findall('class="post-thumb">\s.+?img src="(.*?)"(?s).+?(http.+?com\/)(.*?)"(?s).+?clock-o(?s).+?<span>(.*?)<',page_data)
  source=requests.get('https://www.boxingfightsvideos.com/2020/06/page/2/',headers={'user-agent':'Mozilla/5.0','referer':'page_data','accept':'*/*'}).content
  lastpg=re.findall('<title>.+?Page.+? of (.*?) ',source)[0]
  for pn in xrange(2,int(lastpg)+1):
    source=requests.get('https://www.boxingfightsvideos.com/2020/06/page/'+str(pn),headers={'user-agent':'Mozilla/5.0','referer':'page_data','accept':'*/*'}).content
    list +=re.findall('class="post-thumb">\s.+?img src="(.*?)"(?s).+?(http.+?com\/)(.*?)"(?s).+?clock-o(?s).+?<span>(.*?)<',source)
  return list
]]></expres>
<page>https://www.boxingfightsvideos.com/2020/06/</page>
</regex>

<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,resolveurl
def GetLSProData(page_data,Cookie_Jar,m):
  stream=re.findall('id=.player2[\w\W].+?src="|iframe.+?src="(.+?ok[^"]+)',page_data)[0];stream='https:'+stream if stream.startswith('//') else stream
  return resolveurl.resolve(stream)
]]></expres>
<page>[makelist.param3][makelist.param4]</page>
<referer>[makelist.param2]</referer>
</regex>
</item>

----------------------------------------------------

<item>
<title>**https://www.boxingfightsvideos.com/**</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param3][/COLOR]</title>
  <link>$doregex[makelist1]</link>
  <thumbnail>[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  list=re.findall('img src="(.*?)"(?s).+?href="(.*?)"(?s).+?<h6>.+?">(.*?)<',re.findall('<!-- category carousel -->(?s)(.*?)class="large-12 columns text-center',page_data)[0])
  return list
]]></expres>
<page>https://www.boxingfightsvideos.com/</page>
</regex>

<regex>
<name>makelist1</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist1.param4] - [makelist1.param3] [/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist1.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  list=re.findall('class="post-thumb">\s.+?img src="(.*?)"(?s).+?(http.+?com\/)(.*?)"(?s).+?clock-o(?s).+?<span>(.*?)<',re.findall('fa-film(?s).+?<h4>.*?<\/h4>(?s).+?"next button round"',page_data)[0])
  url='[makelist.param2]'+'page/'
  source=requests.post(url+'2/',headers={'user-agent':'Mozilla/5.0','host':'www.boxingfightsvideos.com','referer':'[makelist.param2]','x-requested-with':'XMLHttpRequest','accept':'*/*'}).content
  lastpg=re.findall('<title>.+?Archives - Page.+? of (.*?) ',source)[0]
  for pn in xrange(2,int(lastpg)+1):
    source=requests.post(url+str(pn),headers={'user-agent':'Mozilla/5.0','host':'www.boxingfightsvideos.com','referer':'[makelist.param2]','x-requested-with':'XMLHttpRequest','accept':'*/*'}).content
    list +=re.findall('class="post-thumb">\s.+?img src="(.*?)"(?s).+?(http.+?com\/)(.*?)"(?s).+?clock-o(?s).+?<span>(.*?)<',re.findall('fa-film(?s).+?<h4>.*?<\/h4>(?s).+?"next button round"',source)[0])
  return list
]]></expres>
<page>[makelist.param2]</page>
</regex>

<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,resolveurl
def GetLSProData(page_data,Cookie_Jar,m):
  stream=re.findall('id=.player2[\w\W].+?src="|iframe.+?src="(.+?ok[^"]+)',page_data)[0];stream='https:'+stream if stream.startswith('//') else stream
  return resolveurl.resolve(stream)
]]></expres>
<page>[makelist1.param2][makelist1.param3]</page>
<referer>[makelist.param2]</referer>
</regex>
</item>
 
  • Like
Reactions: Doom

Doom

Member
Sep 16, 2019
155
20
18
@peterpan appreciate the extra help the first code loads but doesn't play maybe you missed something, the second code does work... thanks very much bud!😊🤙
 

kavan

Member
Aug 14, 2016
61
5
8
Hello guys
I need a makelist for this page
Code:
https://www.gem021.com/country/persian/
Thank you in advance!
 

streamwatcher2013

Well-known member
Oct 24, 2013
734
275
63
USA
Just get time to finish this site. Increase number of pages in this line "for i in range(1,8)". Try this:

LSP XML code:
<item>
<title>https://www.gem021.com/country/persian/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param2][/COLOR]</title>
  <link>$doregex[makelist2]</link>
  <thumbnail>[makelist.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  tok=re.findall('"security":"([^"]+)',page_data)[0];list=[]
  for i in range(1,8):
    data={'action':'blog_ajax_load_post','blog_page':int(i),'template':'template-parts/content','query_vars[vid_series_cat]':'persian','query_vars[error]':'','query_vars[m]':'','query_vars[p]':'0','query_vars[post_parent]':'','query_vars[subpost]':'','query_vars[subpost_id]':'','query_vars[attachment]':'','query_vars[attachment_id]':'0','query_vars[name]':'','query_vars[pagename]':'','query_vars[page_id]':'0','query_vars[second]':'','query_vars[minute]':'','query_vars[hour]':'','query_vars[day]':'0','query_vars[monthnum]':'0','query_vars[year]':'0','query_vars[w]':'0','query_vars[category_name]':'','query_vars[tag]':'','query_vars[cat]':'','query_vars[tag_id]':'','query_vars[author]':'','query_vars[author_name]':'','query_vars[feed]':'','query_vars[tb]':'','query_vars[paged]':'0','query_vars[meta_key]':'','query_vars[meta_value]':'','query_vars[preview]':'','query_vars[s]':'','query_vars[sentence]':'','query_vars[title]':'','query_vars[fields]':'','query_vars[menu_order]':'','query_vars[embed]':'','query_vars[posts_per_page]':'16','query_vars[ignore_sticky_posts]':'false','query_vars[suppress_filters]':'false','query_vars[cache_results]':'true','query_vars[update_post_term_cache]':'true','query_vars[lazy_load_term_meta]':'true','query_vars[update_post_meta_cache]':'true','query_vars[post_type]':'','query_vars[nopaging]':'false','query_vars[comments_per_page]':'50','query_vars[no_found_rows]':'false','query_vars[taxonomy]':'vid_series_cat','query_vars[term]':'persian','query_vars[order]':'DESC','style':'grid-small','archive_query':'','alphabet_filter':'','theme_image_ratio':'','security':tok}
    source=requests.post('https://www.gem021.com/wp-admin/admin-ajax.php',headers={'user-agent':'Mozilla/5.0','referer':'https://www.gem021.com/country/persian/','x-requested-with':'XMLHttpRequest','content-type':'application/x-www-form-urlencoded; charset=UTF-8','accept':'*/*'},data=data).content.replace('&#8211;','-').replace('&#8217;','\'')
    list +=re.findall('href="(.*?)"\s*title="([^"]+).+?data-src="([^\s]+)',source)
  return list
]]></expres>
<page>https://www.gem021.com/country/persian/</page>
<referer>https://www.gem021.com/</referer>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist2.param2][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist2.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('"blog-pic-wrap".+?href="([^"]+).\s*title="([^"]+).+?data-src="([^\s]+)',re.findall('"blog-items\s*blog-items-control\s*site__row(?s)(.*?)<(?:/main|footer)',page_data)[0].replace('&#8211;','-').replace('&#8217;','\''))
]]></expres>
<page>[makelist.param1]</page>
<referer>https://www.gem021.com/country/persian/</referer>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,resolveurl
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  source=requests.get('[makelist2.param1]',headers={'user-agent':'Mozilla/5.0','referer':'[makelist.param1]','accept':'*/*'}).content
  if 'ok.ru' in source:
     stream=re.findall('player-api.>.+?src="([^"]+)',source)[0];stream='https:'+stream if stream.startswith('//') else stream
     return resolveurl.resolve(stream)
  elif 'youtube.com/watch' in source:
     return resolveurl.resolve(re.findall('"og:video:url"\s*content="([^"]+)',source)[0])
  else:
     stream,tok1,tok2=re.findall('player-api.>.+?src="(.*?)player.+?"id":"(\d+).+?"video":"(\d+)',page_data)[0];stream='https:'+stream if stream.startswith('//') else stream
     url='%sservices/get/video/%s/%s.json'%(stream,tok1,tok2)
     jdata=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'[makelist2.param1]','accept':'*/*'}).content.replace('\\','')
     if '"hd' in jdata:
        return re.findall('"hd":"([^"]+)',jdata)[0]
     elif '"sd' in jdata:
        return re.findall('"sd":"([^"]+)',jdata)[0]
     else:
        return re.findall('"ld":"([^"]+)',jdata)[0]
]]></expres>
<page>[makelist2.param1]</page>
<referer>[makelist.param1]</referer>
</regex>
</item>
 

C-3PO

New member
Nov 5, 2015
5
0
1
Hello all

I'm looking for some help with a makelist for this site please?

Code:
hxxp://4kstreams.net/
 

peterpan

Active member
Jul 7, 2013
103
73
28
@C-3PO Links won't open, but this code might work when they're up and running...
XML:
<item>
<title>**http://4kstreams.net/**</title>
<thumbnail></thumbnail>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR gold][makelist.param2][/COLOR]</title>
<link>$doregex[getUrl]|user-agent=iPad</link>
<thumbnail>[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[hidden;" src="(.*?)"(?s).+?span class="font.+?>(.*?)<(?s).+?href="(.*?)"]]></expres>
<page>http://4kstreams.net/</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
 source = requests.get('[makelist.param3]',cookies=Cookie_Jar,headers={'user-agent':'Mozilla/5.0','referer':'http://4kstreams.net/'}).content
 return re.findall("source:\s*window.atob\('(.*?)'",source)[0].decode('base64')
 return url
]]></expres>
<page></page>
</regex>
</item>
 
  • Like
Reactions: C-3PO

tungbeng95

Member
Oct 25, 2018
181
7
18
Can you help me this link:
hxxp://Y*da.az/idmanlive/index.php
 

peterpan

Active member
Jul 7, 2013
103
73
28
Quality not so great...

XML:
<item>
<title>**http://Y*da.az/idmanlive/index.php**</title>
<link>$doregex[PlayStream]</link>
<regex>
<name>PlayStream</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  tok=re.findall('data-token="(.*?)"',page_data)[0]
  ssl=re.findall('data-ssl="(.*?)"',page_data)[0]
  url='http://str.Y*dacdn.net/idman/tracks-v2'+'a'+ssl+'/mono.m3u8?token='+tok
  return url+'|user-agent=iPad'
]]></expres>
<page>http://Y*da.az/idmanlive/index.php</page>
</regex>
</item>
 
  • Like
Reactions: tungbeng95

streamwatcher2013

Well-known member
Oct 24, 2013
734
275
63
USA
Right way may be?

Code:
<item>
<title>Ä°DMAN</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  tok=re.findall('data-token="([^"]+)',page_data)[0]
  source=requests.get('http://Y*da.az/idmanlive/channel.config.js',headers={'user-agent':'Mozilla/5.0','referer':'http://Y*da.az/idmanlive/index.php','accept':'*/*'}).content
  return re.findall('DMAN[\w\W]+?Source:.+?"([^"]+)',source)[0]+'?token=%s|user-agent=ipad&origin=http://Y*da.az&referer=http://Y*da.az/idmanlive/index.php'%tok
]]></expres>
<page>http://Y*da.az/idmanlive/index.php</page>
</regex>
<thumbnail>http://Y*da.az/idmanlive/aztv_logo.png</thumbnail>
</item>
 

judgie

New member
May 16, 2018
17
0
1

streamwatcher2013

Well-known member
Oct 24, 2013
734
275
63
USA
Try this to see it works. Geo-blocked from here

LSP XML code:
<item>
<title>https://allfrtv.com/index.php?chn=VEYxIETDqWNhbMOp&pls=</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,datetime,time
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  list=re.findall('playerInstance(?s)(.*?)</script',page_data)[0]
  ref='|user-agent=ipad&referer=https://allfrtv.com/index.php?chn=VEYxIETDqWNhbMOp&pls='
  if '=5400' in page_data:
     return re.findall('file:\s*[\'"](.*?=5400)[\'"]',page_data)[0]+ref
  elif '=4500' in page_data:
     return re.findall('file:\s*[\'"](.*?=4500)[\'"]',page_data)[0]+ref
  elif '=3600' in page_data:
     return re.findall('file:\s*[\'"](.*?=3600)[\'"]',page_data)[0]+ref
  else:
     return re.findall('file:\s*[\'"](.*?=2700)[\'"]',page_data)[0]+ref
]]></expres>
<page>https://allfrtv.com/index.php?chn=VEYxIETDqWNhbMOp&amp;pls=</page>
</regex>
</item>
 

judgie

New member
May 16, 2018
17
0
1
Hi can somebody help to make list with this website
it is for catchup tv

there is channels and date

a makelist will appreciated thanks in advance

Code:
http://play.telehexagone.to/
 

streamwatcher2013

Well-known member
Oct 24, 2013
734
275
63
USA
Try this:

LSP XML code:
<item>
<title>http://play.telehexagone.to/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param3][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist.param2]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  return re.findall('(?s)<MediaID>([^<]+).+?<Logo>([^<]+).+?<MediaName>([^<]+).+?<Ip>([^<]+)',page_data)
]]></expres>
<page>http://s1.telehexagone.to/loginfrhtml5.txt</page>
<referer>http://play.telehexagone.to/</referer>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,datetime,time
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  now=str(datetime.date.today());ctime=time.strftime('%H:%M:%S',time.localtime())
  return 'http://[makelist.param4]/startplayback+[makelist.param1]+%s_%s.m3u8|user-agent=ipad&referer=http://play.telehexagone.to/'%(now,ctime)
]]></expres>
<page></page>
</regex>
</item>
 

03stevensmi

Member
Sep 12, 2019
43
4
8
Hey guys. I'm Back!
After playing around with json audrey addon, i wan't to give regex with livestreampro a go!
I learn better with visual video tutorials but i am from the uk
and searching for a simple topic on google or even worse on youtube
gets me shite results (most results do not even contain any of my words)

So when i tried to find any regex tutorials on youtube for livestreampro, i got 1 spanish tutorial from like 2010,
And thats it!!

So what i am asking is could someone help me find a video tutorial on regex site scrapping for livestreampro?
I would be very surprised that no one did a video tutorial.
Any help will be appreciated.

If no videos are available, then any tutorial will help as google comes out with sh*t when searching
Regex scraping for livestreampro (nothing to do with anything other than scraping movies like exod***)

Cheers guys
03stevensmi
;)
 

streamwatcher2013

Well-known member
Oct 24, 2013
734
275
63
USA
I did the tutorial for regex on old forum long time ago. I would like to do one on youtube but can't find any spare time. Just let you know the most power tools to use are the Developer Tools (browser's built-in) and Regex101 or RegexR
 

03stevensmi

Member
Sep 12, 2019
43
4
8
@streamwatcher2013 thanks man, i tried looking at chrome plugins for regex scrapping but gave up at the end for obvious reasons of corse.
i will have a look at regex101 & regexR.
But to shortly simplify it,
Could you give me a quick rundown paragraph on what i need to do?
Like just the basics on a simple scrap with one of those tools?
Cheers
 
  • Like
Reactions: myosmc

streamwatcher2013

Well-known member
Oct 24, 2013
734
275
63
USA
@03stevensmi

Most of time F12 will bring up the Developer Tools in major browsers. If not you can use below combine key strokes. From Network tab, you need to trace all the link which contains the html (document) or java (jscript) or something else's source code. Paste it in regex101 or regexr to see the next link need to capture.

Firefox == Ctrl+Shift+E
Chrome & FireFox & Opera == Ctrl+Shift+I


Here is the viewcomics.me regex example


the LSP xml

LSP XML code:
<item>
<title>https://viewcomics.me/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param3]</title>
  <link>$doregex[next_makelist]</link>
  <thumbnail>[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[(?s)"elliptic-box">.+?lazy-src="([^"]+).+?href="([^"]+).+?>([^<]+)]]></expres>
<page>https://viewcomics.me/</page>
</regex>
</item>
 
  • Like
Reactions: 03stevensmi

03stevensmi

Member
Sep 12, 2019
43
4
8
@streamwatcher2013
just to add... the last and most important thing i need to know is this...
I need to know stuff like what is the starting point, middle, etc are.
For example...
I in json, {*} is the start, anything in between {%}_(%) is middle, and {1%} could be url and {2%} could he title or poster.

What im looking at is it looks as (s?) is the starting point.

Could you explain a bit about the other codes such as (+?) etc.?
 

03stevensmi

Member
Sep 12, 2019
43
4
8
Ok, cool. will do some studying. Thanks for all your help man.
Just one question, would a chrome extension help with regex scrapping?
There are a few out there and am wondering if they would help as a starter.
 
  • Like
Reactions: efradncr

03stevensmi

Member
Sep 12, 2019
43
4
8
What we need is a YouTube tutorial like the one for Audrey. Also going through some regex and web scrapping chrome extensions to see if I can find a simple point, highlight, click and export a regex. But all in all, it’s probably better to learn through YouTube as soon as there is a livestreampro tutorial. ;)
 
  • Like
Reactions: efradncr

dantas1990

New member
Apr 10, 2020
29
1
3
Very good
Good night.
How do I show the options that I can choose from which channel to want? For example, I used these codes in the list

<item>
<title> </title>
<link> $ name = HD OP1 </link>
<link> $ name = HD OP2 </link>
</item>

When I joined KODI, I wanted the options to appear, according to my list. I noticed that I have to configure it in def play_playlist, what do I have to do actually, something else I have to do?
 
Thread starter Similar threads Forum Replies Date
J Scraper Development 0
D Apple TV 4 44
O Addon Requests 5