LSP Regex & Makelist Discussion.

juju

New member
Jul 6, 2016
23
2
3
please my questios is if possible regex for this page ,thanks for you help

h..p://futbolitop.online/canales/
 

adrianhn

New member
Mar 20, 2014
25
4
3
some can help me to make this work again .


Code:
<title>chicktv</title>
<link>https://stream-cdn.vaughnsoft.net/play/live_chicktv].flv?s=$doregex[secure]&amp;e=$doregex[expire]|Referer=https://vaughn.live&amp;Origin=https://vaughn.live&amp;User-Agent=Mozilla/5.0 (Windows NT 10.0; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0</link>
<regex>
   <name>secure</name>   
   <expres>secure=(.*?)\&</expres>  
   <page>https://vaughn.live/chicktv</page>
   <referer>https://vaughn.live/chicktv</referer>
   <cookieJar/>
</regex>
<regex>
   <name>expire</name>   
   <expres>expires=(.*?)\&</expres>  
   <page>https://vaughn.live/chicktv</page>
   <referer>https://vaughn.live/chicktv</referer>
   <cookieJar/>
</regex>

thks for adavance.
 

gujal

Developer
Dec 26, 2013
471
241
43
It cannot be done using regex as it has started using Google Invisible recaptcha
the base64 encoded token and expiry is received when the recaptcha token is posted to
Code:
https://vaughn.live/app/google.php
There is no know exploit for Google invisible recaptcha yet. So cannot be done in LSP for the time being
 

umonkey

Member
Sep 18, 2012
70
0
6
can anyone help with this site? or maybe advise of an addon that already does it?

hxxps://kimcartoon.si/CartoonList

many thanks
 

AGAMEN0N

New member
Jul 4, 2019
11
2
3
Hello! Can anyone help me with this site?

hxxp://tv.vera.com.uy/canal/6042

Thanks!
 

juju

New member
Jul 6, 2016
23
2
3
espero te sirva compatriota ,saludos desde atlanta,usa





<item>
<title>TNU</title>
<link>$doregex[get-url]|User-Agent=iPad&amp;Referer=$doregex[get-ifr]</link>
<regex>
<name>get-url</name>
<expres>"hls": "(h[^"]+)</expres>
<page>$doregex[get-ifr]</page>
<referer>http://tv.vera.com.uy/canal/6042</referer>
<cookieJar>$doregex[cookie]</cookieJar>
</regex>
<regex>
<name>get-ifr</name>
<expres>'src'[\w\W]*?'src'.+?'(h[^']+)</expres>
<page>http://tv.vera.com.uy/canal/6042</page>
<referer>http://tv.vera.com.uy</referer>
<cookieJar></cookieJar>
</regex>
<regex>
<name>cookie</name>
<expres></expres>
<page>http://tv.vera.com.uy/canal/6042</page>
<referer>http://tv.vera.com.uy</referer>
<cookieJar></cookieJar>
</regex>
<thumbnail>http://tv.vera.com.uy/dynamic/content_images/6042/default_source.jpg</thumbnail>
</item>
 
  • Like
Reactions: AGAMEN0N

eltorete

New member
Jul 5, 2019
15
9
3
hello good afternoon ... thanks for your help ... I need help with the links of gamovideo for two days that do not work before I had it with this regex but it is no longer useful ... could you help me? thank you very much greetings


Code:
<item>
<title>http://gamovideo.com/fx9vr181niy7</title>
<link>$doregex[torete1]</link>
<regex>
<name>torete2</name>
<expres>$pyFunction:get_unpacked(page_data,'javascript.*?(eval\(function\(p,a,c,k,e,d.*)' )</expres>
<page>http://gamovideo.com/fx9vr181niy7</page>
<agent>Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36</agent>
</regex>


<regex>
<name>torete1</name>
<expres>file:"(h(.*?))"</expres>
<page>$doregex[torete2]</page>
<agent>Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36</agent>
</regex>


</item>
 
Last edited by a moderator:

mustafa19554

Guest
May 17, 2016
28
3
3
Versuche dies:

Code:
<item>

<title> gamovideo.com </ title>

<link> http://ly31.gamovideo.com:8777/obap4qvlmrnv3h2yugs5xzceffn3pu3zrbo7ta2mo22ehfjpsgbqt3mylsrq/v.mp4 </ link>

<thumbnail> </ thumbnail>

<fanart> </ fanart>

</ item>
 
Last edited by a moderator:

AGAMEN0N

New member
Jul 4, 2019
11
2
3
Hello! I need help with this site:

hxxps://vercanalestv.com/ver-vtv-uruguay-en-vivo-online/

Thanks!
 

gujal

Developer
Dec 26, 2013
471
241
43
Enjoy!

Code:
<item>
<title>vtv</title>
<link>https:$doregex[secure]|Referer=https://vergol.com&amp;User-Agent=iPad</link>
<regex>
   <name>secure</name>   
   <expres>source:\s*'(/[^']+)</expres>  
   <page>https://vergol.com/bgjhykdmbtj668/live1/vtv.php</page>
   <referer>https://vergol.com/</referer>
   <post>manzana66:12345</post>
</regex>
</item>
 
  • Like
Reactions: AGAMEN0N and kavan

tobotminer

Member
Jan 26, 2018
49
4
8
hi sir,

can someone help me regex this website. i like to watch turkey movie

Code:
https://dutafilm.com/negara/turkey
 

Beezlo

Member
Mar 17, 2016
31
0
6
Hi all,

can anybod tell me why this not works???
XML:
<item>
  <title>FILME 1</title>
  <link>ignorme</link>
  <premium>True</premium>
  <jsonrpc>plugin://plugin.video.xstream/</jsonrpc>
  <info></info>
  <thumbnail></thumbnail>
  <fanart></fanart>
</item>
Thanks in Advance
 

udomrat

New member
Nov 10, 2016
14
4
3
Hi guru.
help me please.
Code:
hxxx://123tvnow.com/watch/trutv/
 

myosmc

Member
May 18, 2018
56
1
8
This code has stopped working could you give me a hand?
Code:
hxxp://cablegratis.tv/canal-en-vivo/cnn
 

gujal

Developer
Dec 26, 2013
471
241
43
Enjoy!


Code:
<item>
<title>CNN - Cable Gratis</title>
<link>$doregex[main]</link>
<regex>
  <name>main</name>
  <listrepeat><![CDATA[
  <title>[main.param2]</title>
  <link>$doregex[getUrl]|Referer=http://premiumtvchannels.com/&User-Agent=iPad</link>
  <thumbnail>http://cablegratis.tv/logos/cnn.png</thumbnail>
  ]]></listrepeat>
  <expres>loadIframe.+,\s*'([^']+)[^&gt;]+&gt;([^&lt;]+)</expres>
  <page>http://cablegratis.tv/canal-en-vivo/cnn</page>
</regex>
<regex>
  <name>getUrl</name>
  <expres>(?:file|source):\s*"([^"]+)</expres>
  <page>[main.param1]</page>
  <referer>http://cablegratis.tv/</referer>
</regex>
<thumbnail>http://cablegratis.tv/logos/cnn.png</thumbnail>
</item>
 

Oxus

New member
Jul 24, 2014
18
2
3
cez1 - try this:
Code:
<item>
<title>Cable Gratis</title>
<link>$doregex[all]</link>
<regex>
  <name>all</name>
  <listrepeat><![CDATA[
  <title>[all.param3]</title>
  <link>$doregex[main]</link>
  <thumbnail>[all.param2]</thumbnail>
  ]]></listrepeat>
  <expres><![CDATA[(?s)<a href="(.+?)".+?img src="(.+?)" alt="(.+?)">]]></expres>
  <page>http://cablegratis.tv/</page>
</regex>

<regex>
  <name>main</name>
  <listrepeat><![CDATA[
  <title>[main.param2]</title>
  <link>$doregex[getUrl]|Referer=http://premiumtvchannels.com/&User-Agent=iPad</link>
  <thumbnail>[all.param2]</thumbnail>
  ]]></listrepeat>
  <expres>loadIframe.+,\s*'([^']+)[^&gt;]+&gt;([^&lt;]+)</expres>
  <page>[all.param1]</page>
</regex>
<regex>
  <name>getUrl</name>
  <expres>(?:file|source):\s*"([^"]+)</expres>
  <page>[main.param1]</page>
  <referer>http://cablegratis.tv/</referer>
</regex>
<thumbnail></thumbnail>
</item>
some items are not working (4-5 because they have relative urls)
 
  • Like
Reactions: cezi1

kavan

Member
Aug 14, 2016
62
5
8
Hi
Who can this fix that doesn't works more.
Please

Code:
<item>
<title>dvrr</title>
<link>$doregex[url]</link>
<regex>
<name>url</name
<expres><![CDATA[false[\w\W]*?(h[^<]+)]]></expres>
<page>http://dvrrtmp2.giniko.com/xml/gemtv.plist</page>
</regex>
</item>
 

udomrat

New member
Nov 10, 2016
14
4
3
Code:
<item>
<title>GEM TV (Iran)</title>
<link>$doregex[Url]|User-Agent=iPad</link>
<thumbnail></thumbnail>
<regex>
<name>Url</name>
<expres>source:"(.*?)"</expres>
<page>http://www.giniko.com/watch.php?id=353</page>
<referer>http://www.giniko.com</referer>
<cookieJar></cookieJar>
</regex>
</item>
 
  • Like
Reactions: kavan

kavan

Member
Aug 14, 2016
62
5
8
udomrat thank you for reply
but i need help for fix my old regex

for examples :
Code:
http://dvrrtmp2.giniko.com/xml/gemtv.plist
or
Code:
http://dvrrtmp2.giniko.com/xml/manoto1.plist
or
Code:
http://dvrrtmp2.giniko.com/xml/irinn.plist
 

adriansyafiq

New member
Jan 3, 2016
27
2
3
hi all..

pls help regex for this.. need singapore ip fyi..

Code:
https://video.toggle.sg/en/video/channels/icc-ch02/299264
 

streamwatcher2013

Well-known member
Oct 24, 2013
817
334
63
USA
I don't have Singapore's IP but within source code i saw some m3u8 link. Check this to see it works for you

Code:
https://regex101.com/r/3WuiXt/4

https://tglmp03.akamaized.net/out/v1/50db191ef3d440ac91dc600db64227d5/master.m3u8
If it works then use this regex: <expres>var\s*manifestUrl.+?"([^"]+)</expres>
 

vbprofi

Member
Feb 9, 2016
74
3
8
hello streamwatcher2013,
thanks for both ways. the second is working, but the first code don't work. all channels are listed, but can't play. I don't find the problem. do yu have an idea?
 

gujal

Developer
Dec 26, 2013
471
241
43
Enjoy!

Code:
<item>
<title>[B][COLOR white]KARWAN TV[/COLOR][/B]</title>
<thumbnail></thumbnail>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR cyan][makelist.param3][/COLOR]</title>
<link>$doregex[getm3u8]|User-Agent=iPhone</link>
<thumbnail>[makelist.param1]</thumbnail>
]]></listrepeat>
<expres><![CDATA[galleryitem".+?src="([^"]+).+?href="([^"]+)[^>]+>([^<]+)]]></expres>
<page>https://karwan.tv/television.html</page>
</regex>
<regex>
<name>getm3u8</name>
<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':'https://karwan.tv/'}
 strpg = 'https://karwan.tv' + re.findall('<iframe.+?src="([^"]+)',page_data, re.DOTALL)[0]
 page_data = requests.get(strpg,headers=headers).content
 url=re.findall('''(?:file|hls):\s*["']([^"']+)["']''',page_data)[-1]
 return url
]]></expres>
<page>[makelist.param2]</page>
</regex>
</item>
 

vbprofi

Member
Feb 9, 2016
74
3
8
@gujal
thanks for your work. good job! but that isn't work for me. I get this error:
Code:
2019-07-26 12:27:19.670 T:67940   ERROR:   File "...\userdata\addon_data\plugin.video.live.streamspro\LSProdynamicCode1.py", line 7, in GetLSProData
2019-07-26 12:27:19.670 T:67940   ERROR:     strpg = 'https://karwan.tv' + re.findall('<iframe.+?src="([^"]+)',page_data, re.DOTALL)[0]
2019-07-26 12:27:19.670 T:67940   ERROR: IndexError: list index out of range
that is the same error with the first code from streamwatcher2013.
Code:
2019-07-26 12:36:14.907 T:39692   ERROR:     url='https://karwan.tv'+re.findall('data-wpfc-original-src="([^"]+)',page_data)[0]
2019-07-26 12:36:14.907 T:39692   ERROR: IndexError: list index out of range
But the second code (second solution) from streamwatcher2013 is working well. I don't understand the problem from your solution, the first solution from streamwatcher2013 and my solution. Why I get this errors?
 

vbprofi

Member
Feb 9, 2016
74
3
8
here is what I trying with your code. But don't work.
Code:
https://pastebin.com/raw/VdndMyw4
 

goldonx

New member
Mar 30, 2015
8
6
3
Regex streamwatcher2013 and gujal work fine. It's your mistake in makelist regex in the regular expression
Code:
items = re.findall('<a href="(.*?)"><img.*?src="(.*?)".*?alt="(.*?)"', page_data, re.DOTALL)
You have to write
Code:
items = re.findall('<a href="([^"]+)"><img.*?src="(.*?)".*?alt="(.*?)"', page_data, re.DOTALL)
 
  • Like
Reactions: udomrat

vbprofi

Member
Feb 9, 2016
74
3
8
that is right. good job!!! thank you very
much!
I have an other problem in my code. the listed items for my own don't work. I will bring the items from array to the top. but some items don't be. have you an idea?
 

gujal

Developer
Dec 26, 2013
471
241
43
The problem is this line
Code:
for title,url,thumb in sorted(chs):
The regex match line above that is capturing url, thumb and then the title.
So accordingly if you change the line to this it will work
Code:
for url,thumb,title in sorted(chs):
 
Thread starter Similar threads Forum Replies Date
G Scraper Development 0
J Scraper Development 1
O Addon Requests 5