LSP Regex & Makelist Discussion.

gladio

New member
Oct 14, 2018
24
3
3
the regex don't work, thanks:
 

peterpan

Active member
Jul 7, 2013
117
84
28
Try this... It's working for now, but not sure how it'll last!



XML:
<item>
<title>ProTV 1</title>
<link>$doregex[CleanM3U8]|User-Agent=iPad</link>
<regex>
<name>CleanM3U8</name>
<expres>$pyFunction:'$doregex[getM3U8]'.replace('\/','/')</expres>
<page></page>
</regex>
<regex>
<name>getM3U8</name>
<expres>(http.*?m3u8)</expres>
<page>https://media.cms.protvplus.ro/embed/9w1VHN18dnM?autoplay=1</page>
<referer>https://protvplus.ro/tv-live/1-pro-tv</referer>
</regex>
</item>
 

gladio

New member
Oct 14, 2018
24
3
3

the regex d0n't work,thanks


<item>
<title>France 2</title>
<link>$doregex[PlayStream]|User-Agent=Mozilla/5</link>
<regex>
<name>PlayStream</name>
<expres>(?s)(.*)</expres>
<page>http://hdfauthftv-a.akamaihd.net/esi/TA?url=http://livefrancetv.akamaized.net/simulcast/France_2/hls_v1/index.m3u8</page>
</regex>
</item>

 
  • Like
Reactions: franciscotorre

cris_manya

Member
Nov 20, 2016
39
1
8
Could you help me with a regular expression for this page?
Code:
hxxp://asdfasedfhd.blogspot.com/p/tv-uy.html
Thanks in advance
 

gujal

Developer
Dec 26, 2013
591
327
63
Enjoy!

LSP XML:
<item>
<title>TV UY</title>
<link>$doregex[makelist]</link>
<thumbnail></thumbnail>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param1][/COLOR]</title>
  <inputstream>https:[makelist.param2]$$lic=https://sv.tsnt.xyz/cv.php</inputstream>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
  import re, urllib
  def dF(s):
    s1 = urllib.unquote(s[:-1])
    t = ''
    for char in s1:
      t += chr(ord(char) - int(s[-1]))
    return t
  txt = re.findall(r"dF\('([^']+)", page_data)[0]
  txt = urllib.unquote(dF(txt))
  items = re.findall('''value="([^"]+).+?get=([^']+)''', txt)
  items = [(x, y.decode('base64')) for x,y in items]
  return items
]]></expres>
<page>https://asdfasedfhd.blogspot.com/p/tv-uy.html</page>
</regex>
</item>
 
  • Like
Reactions: cris_manya

tnico

New member
May 29, 2015
20
0
1
Need help please. thank you
hxxps://www.africa24tv.com/
 

gujal

Developer
Dec 26, 2013
591
327
63
Enjoy!


LSP XML:
<item>
  <title>Africa 24</title>
  <thumbnail>https://www.africa24tv.com/sites/default/files/logo_a24.png</thumbnail>
  <utube>L5Ppr0JvPws</utube>
</item>
 
  • Like
Reactions: tnico

peterpan

Active member
Jul 7, 2013
117
84
28
Here it is, in case they change the Video id :)

Code:
<item>
<title>Africa24</title>
<link>plugin://plugin.video.youtube/play/?video_id=$doregex[getVidID]</link>
<regex>
<name>getVidID</name>
<expres>405" src=".*?embed.(.*?)"</expres>
<page>https://www.africa24tv.com//</page>
</regex>
</item>
 
  • Like
Reactions: tnico

thingy

Member
May 9, 2018
80
1
8
I need to know if it is no longer possible to extract the signal from this channel with regex
Code:
https://www.repretel.com/envivo-canal6/
 

peterpan

Active member
Jul 7, 2013
117
84
28
Here you go... -- courtesy of @gujal :)



Code:
<item>
<title>Canal 6</title>
<inputstream>$doregex[getUrl]|User-Agent=iPad&amp;Referer=https://www.repretel.com/</inputstream>
<thumbnail></thumbnail>
<regex>
<name>getUrl</name>
  <expres><![CDATA[#$pyFunction
def GetLSProData(page_data, Cookie_Jar,m):
  import re, requests, time
  def rsk(s):
    def decrypt(v1, v2):
      lv2 = len(v2)
      sv2 = list(v2)
      for i in range(lv2-1, -1, -1):
        t1 = i * v1 % lv2
        t2 = sv2[i]
        sv2[i] = sv2[t1]
        sv2[t1] = t2
      s1 = ''.join(sv2)
      s2 = s1[0:lv2 - 2] if s1[lv2 - 2:lv2] == 'OK' else None
      return s2
    tval = int(time.time()/3600)
    t = decrypt(tval, s) or decrypt(tval-1, s)
    return t
  hdr = {'User-Agent': 'iPad'}
  surl = re.findall(r"var\s*LIVE_URL\s*=\s*'([^']+)", page_data)[0]
  key = re.findall(r"3600000\),'([^']+)", page_data)[0]
  turl = re.findall(r"jQuery\.get\('([^']+)", page_data)[0]
  turl += rsk(key)
  token = requests.get(turl, headers=hdr).json()['token']
  surl += '?iut={}'.format(token)
  return surl
]]></expres>
<page>https://www.repretel.com/envivo-canal6/</page>
</regex>
</item>
 

m5Germany

Active member
Mar 20, 2014
328
105
43
Greetings, Working on this and it seems like a hit or miss. I probably am not seeing correctly. The links (beside FS2) work sporadically and FS2 does not work at all. Sometimes I have to click multiple times for streams to work. Is it my Code or the site/combo? Not really important but would like to know where I went wrong.
LSP XML:
<item>
<title>[COLOR=FF00FFFF]Big Ten Network [COLOR=red]•[/COLOR][COLOR=FF00CCFF] newdmn.icu, box-live.stream, sportsbay.org, live-golf.stream[/COLOR][/COLOR]</title>
<link>$doregex[getM3u8]|user-agent=Mozilla/5.0&amp;origin=https://newdmn.icu/&amp;referer=https://newdmn.icu/</link>
<regex>
<name>getM3u8</name>
<expres><![CDATA[e:\s'([^']+)]]></expres>
<page>https://newdmn.icu/stream/45629.html</page>
<referer>https://newdmn.icu/</referer>
</regex>
</item>

Channels:
BIG 10: https://newdmn.icu/stream/45629.html
ESPN: https://newdmn.icu/stream/43572.html
ESPN2: https://newdmn.icu/stream/45351.html
ESPNU: https://newdmn.icu/stream/45457.html
FS1: https://newdmn.icu/stream/45459.html
FS2: https://newdmn.icu/stream/45460.html NOT WORKING
Any help is always appreciated,
m5
 
  • Happy
Reactions: franciscotorre

gujal

Developer
Dec 26, 2013
591
327
63
It is using encrypted hls, but the key uri is not absolute FQDN, so kodi player may not play correctly
Code:
#EXTM3U
#EXT-X-VERSION:5
#EXT-X-MEDIA-SEQUENCE:93950
#EXT-X-TARGETDURATION:5
#EXT-X-DISCONTINUITY-SEQUENCE:6565
#EXT-X-PROGRAM-DATE-TIME:2020-12-19T21:43:22.451000+00:00
#EXT-X-KEY:METHOD=AES-128,URI="/ingestk/123/hehe/espnch/keys/T3RVZG13aGNxV1BkS2VN/QjgvQmdTbmt0Rk91MWZv/MHd2M0g0dDB5MzRDbWln/bTM5R1p2cGxkZzF1RXpR/Qk9vRUhVb0xLMXMrbSsy/RjZ2SjJYRkJyRnpVLzFk/NHJLNDl0cXE0MXJ3ODUw/Tnp1eVlzUDhZY3RwQnBI/NnJ4ZEtaQVVnVUJiMyt3/MHZxcXVCRlZyRkk3Mmto/RTVwWm0xazZxTTM0Uktx/VmFCQzkzS1loZTQ4M2N2/Z2UxSkN1dm1MQmJmNVpa/S2J3UlpDNTE0cUw2eGxr/dVQyKzNhQzIyZzZ0c25v/RGVNa25xVS9NMklqNnFF/ai93SzE0bmNlV3hkMTQ5/WA==",IV=0x00000000000000000000000000000215
#EXTINF:4.0960,
https://x-live-espn-stgec.uplynk.com/ausw/slices/fa8/06b4a36349624051a9ba52ac3a91d268/fa8b34bd7d084473a87ec34cd216dd0e/D00000215.ts
SL proxy can handle this and play correctly. Use it this way
LSP XML:
<item>
<title>FS2</title>
<slproxy>hls://$doregex[getUrl]|User-Agent=iPad&amp;Referer=https://newdmn.icu/</slproxy>
<thumbnail></thumbnail>
<regex>
<name>getUrl</name>
<expres>source:\s*'([^']+)</expres>
<page>https://newdmn.icu/stream/45460.html</page>
</regex>
</item>
 

m5Germany

Active member
Mar 20, 2014
328
105
43
Thanks for taking a look. I am using Kodi 18.5, service.streamlink.proxy-4.1.2.zip, LSPro 2.9.7 on Windows 7. Not working on my side. I think you stated that it may not work. If/When it connects it shows a static page similar to https://sportsbay.org/ home page - but - it is actually a stream - and - not FS2.
Not too concerned about 1 link. I'll find a different source - but - if you think there is a quick fix - I'll try it.
It's more of the challenge to Code the stream/learn than actual need.
As Always, Thanks for your time.
m5
 

streamwatcher2013

Well-known member
Oct 24, 2013
986
446
63
USA
@m5Germany

You just use lower stream instead of 720 stream. On the below code It changes the master.m3u8 to d.m3u8 for 540 or c.m3u8 for 360 and the stream will play.

LSP XML:
<item>
<title>[COLOR=FF00FFFF]Fox Sport 2[/COLOR]</title>
<link>$doregex[getM3u8]</link>
<regex>
<name>getM3u8</name>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  stream=re.findall('id=.vid[\w\W]*?(?:source|src|file):\s*[\'"]([^\'"]+)',page_data)[0]
#  c=360; d=540 (both play); f=720  (not play)
  return stream.replace('/master','/d')+'|user-agent=ipad&origin=https://newdmn.icu&referer=https://newdmn.icu/'
]]></expres>
<page>https://newdmn.icu/stream/45460.html</page>
<referer>https://newdmn.icu/</referer>
</regex>
</item>
 

m5Germany

Active member
Mar 20, 2014
328
105
43
Tried the c, d, f already. Here's a screen shot with your Code.:

Thanks for taking a look.
The link is not worth everyone's time and when it does connect - see photo.
Really, it's no big deal - if it can be Coded - Great! If not - in the scope of Life - it doesn't matter.
Enjoy Life,
m5
 

Douxami

New member
Dec 19, 2020
3
0
0
Hi guys,
I'm so happy to find you back again since 4 years now I knew your forum I'm wondering if anyone could be helping me with this French canadian channel please. I seem to be stuck for making working the channel from the license url...I don't know how to write the write headers for making it work!

Please and thank you so much for the help!

Code:
<item>
  <title>TVA MTL</title>
  <inputstream>$doregex[get-session]$$lic=https://vcm-origin.nscreen.iptv.bell.ca/api/license/v1/widevine/request|X-Bell-Play-Token=$doregex[get-play]|R{SSM}|</inputstream>
<regex>
<name>get-session</name>
<expres>"cdnUrl":"(.+?)"</expres>
<page>https://vcm-origin.nscreen.iptv.bell.ca/api/playback/v3/tvAccounts/8455700531562484/streamings|Accept=application/json&amp;X-Bell-UDID=49619fb4-5280-4d1d-9a0c-9a59e87055e7&amp;X-Bell-CToken=H4sIAAAAAAAAAAHAAD//Zf1r63lu0fRHTwIhVWizoqQxiiMoUmN3aVJxm2jI9C7NfFUQTSEP1rWIVW4tyfhspBaAFLuig/7Ooygw2ZXU9159IlRhgRF8qQyRMSY5iryu06bocQOHl415qnw6PSoBTIuGxx02PmFX2+8ciGgWliYlblC19K1RwUimN0g9BzzMFRA8ToqwOeRSMdbt2SxLyS3PYt/ryEKdz7q2FMSBVQiR50vjt+LLNINTBFzEBXKy4lUZxvD/HkGvlphEIoc2Bb6hzsAAAAA=&amp;X-Bell-API-Key=fonse-web-2d842ffc&amp;User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36&amp;X-Bell-Player-Agent=fonse-web/8.5.80 Native/8.43.0 (dynamicAdInsertion;livePause;widevine)&amp;Content-Type=application/json; charset=utf-8&amp;Origin=https://tv.bell.ca&amp;Sec-Fetch-Site=same-site&amp;Sec-Fetch-Mode=cors&amp;Sec-Fetch-Dest=empty&amp;Accept-Encoding=gzip, deflate, br&amp;Accept-Language=fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7&amp;Content-Length=79</page>
<rawpost>{"assetId":"TVAML","type":"LIVE","mergedTvAccounts":[],"outputTarget":"DEVICE"}</rawpost>
<agent>Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36</agent>
<cookieJar></cookieJar>
</regex>
<regex>
<name>get-play</name>
<expres>"playToken":"(.+?)"</expres>
<page>https://vcm-origin.nscreen.iptv.bell.ca/api/playback/v3/tvAccounts/8455700531562484/streamings|Accept=application/json&amp;X-Bell-UDID=49619fb4-5280-4d1d-9a0c-9a59e87055e7&amp;X-Bell-CToken=H4sIAAAAAAAAAAHAAD//Zf1r63lu0fRHTwIhVWizoqQxiiMoUmN3aVJxm2jI9C7NfFUQTSEP1rWIVW4tyfhspBaAFLuig/7Ooygw2ZXU9159IlRhgRF8qQyRMSY5iryu06bocQOHl415qnw6PSoBTIuGxx02PmFX2+8ciGgWliYlblC19K1RwUimN0g9BzzMFRA8ToqwOeRSMdbt2SxLyS3PYt/ryEKdz7q2FMSBVQiR50vjt+LLNINTBFzEBXKy4lUZxvD/HkGvlphEIoc2Bb6hzsAAAAA=&amp;X-Bell-API-Key=fonse-web-2d842ffc&amp;User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36&amp;X-Bell-Player-Agent=fonse-web/8.5.80 Native/8.43.0 (dynamicAdInsertion;livePause;widevine)&amp;Content-Type=application/json; charset=utf-8&amp;Origin=https://tv.bell.ca&amp;Sec-Fetch-Site=same-site&amp;Sec-Fetch-Mode=cors&amp;Sec-Fetch-Dest=empty&amp;Accept-Encoding=gzip, deflate, br&amp;Accept-Language=fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7&amp;Content-Length=79</page>
<rawpost>{"assetId":"TVAML","type":"LIVE","mergedTvAccounts":[],"outputTarget":"DEVICE"}</rawpost>
<agent>Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36</agent>
<cookieJar></cookieJar>
</regex>
 

peterpan

Active member
Jul 7, 2013
117
84
28
@Douxami Tout d'abord il faut avoit un compte avec "Bell", en plus t'as pas inclu the lien direct de la chaine "TVA". A mon avis, t'as pas besoin de tous ca!
Tu peux utilizer le code au-dessous pur avoir accès a la chaine TVA en direct :)



Code:
<item>
<title>TVA --https://www.qub.ca/tvaplus/tva/en-direct-- </title>
<link>https://tvalive.akamaized.net/hls/live/2012413/tva01/high_1080p/high_1080p.m3u8|User-Agent=iPad</link>
</item>
 
  • Like
Reactions: Doux ami

Doux ami

New member
Oct 25, 2015
5
1
3
Canada
Oui merci beaucoup mais j'ai effectivement un compte Bell, je voulais commencer par un regex pour faire fonctionner TVA et ensuite d'avoir les autres des chaînes spécialisées. Le lien direct de TVA a un token donc c'est pourquoi dans le regex il doit chercher comme sur cette section.
Code:
<regex>
<name>get-session</name>
<expres>"cdnUrl":"(.+?)"</expres>
<page>https://vcm-origin.nscreen.iptv.bell.ca/api/playback/v3/tvAccounts/8455700531562484/streamings|Accept=application/json&amp;X-Bell-UDID=49619fb4-5280-4d1d-9a0c-9a59e87055e7&amp;X-Bell-CToken=H4sIAAAAAAAAAAHAAD//Zf1r63lu0fRHTwIhVWizoqQxiiMoUmN3aVJxm2jI9C7NfFUQTSEP1rWIVW4tyfhspBaAFLuig/7Ooygw2ZXU9159IlRhgRF8qQyRMSY5iryu06bocQOHl415qnw6PSoBTIuGxx02PmFX2+8ciGgWliYlblC19K1RwUimN0g9BzzMFRA8ToqwOeRSMdbt2SxLyS3PYt/ryEKdz7q2FMSBVQiR50vjt+LLNINTBFzEBXKy4lUZxvD/HkGvlphEIoc2Bb6hzsAAAAA=&amp;X-Bell-API-Key=fonse-web-2d842ffc&amp;User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36&amp;X-Bell-Player-Agent=fonse-web/8.5.80 Native/8.43.0 (dynamicAdInsertion;livePause;widevine)&amp;Content-Type=application/json; charset=utf-8&amp;Origin=https://tv.bell.ca&amp;Sec-Fetch-Site=same-site&amp;Sec-Fetch-Mode=cors&amp;Sec-Fetch-Dest=empty&amp;Accept-Encoding=gzip, deflate, br&amp;Accept-Language=fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7&amp;Content-Length=79</page>
<rawpost>{"assetId":"TVAML","type":"LIVE","mergedTvAccounts":[],"outputTarget":"DEVICE"}</rawpost>
<agent>Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36</agent>
<cookieJar></cookieJar>
</regex>
 

Doux ami

New member
Oct 25, 2015
5
1
3
Canada
Parce que sur la section VIP de sports24 il y a cette source en question de bxxx et j'ai pu voir qu'il serait aussi possible de le faire fonctionner sur Kodi mais c'est à la partir de la licence que j'arrive pas à mettre les bons headers...
 

Doux ami

New member
Oct 25, 2015
5
1
3
Canada
@peterpan Finalement le lien du stream n'a pas de token, mais bon c'est dommage qu'on ne puisse s'envoyer des messages en privé au risque de voir le lien être désactivé car si je le mets il va se retrouver sur le web. Le seul hic maintenant est au niveau de la clé de licence que j'arrive pas à mettre les bons headers pour le faire fonctionner sur Kodi.
 

Douxami

New member
Dec 19, 2020
3
0
0
Here are the last headers I got for making work the license url, from the website but the only problem is that I have to make it work through the regex

Code:
POST /api/license/v1/widevine/request HTTP/1.1
Host: vcm-origin.nscreen.iptv.bell.ca
Connection: keep-alive
X-Bell-Play-Token: H4sIAAAAAAAAAAGwAE//i7WtxyTxPopw8XsF6AK4QqqnkKMGtsHEH2ECgye4/T4Tk2XJ9rOnPHy24IqzH7ASAWUncLUfuVyGNjktiGRvlmDyiNUGCyo3tnnj/njtXUhPKzCfMS7VcHEY+xDvzW+vZUFJ2tvesV5lKEQJNbll5PVvQ5OnWIqiq6seHaE+hN+RcBMqcWqWg0gF0OXPR8qsu1AR7AtalOOD22kQW2JxINsnEbKb680/IM40UXKxdfIPWZa6sAAAAA==
X-Bell-UDID: 49619fb4-5280-4d1d-9a0c-9a59e87055e7
X-Bell-CToken: H4sIAAAAAAAAAAHAAD//Zf1r63lu0fRHTwIhVWizoqQxiiMoUmN3aVJxm2jI9C7NfFUQTSEP1rWIVW4tyfhspBaAFLuig/7Ooygw2ZXU9159IlRhgRF8qQyRMSY5iryu06bocQOHl415qnw6PSoBTIuGxx02PmFX2+8ciGgWliYlblC19K1RwUimN0g9BzzMFRA8ToqwOeRSMdbt2SxLyS3PYt/ryEKdz7q2FMSBVXmDma5PgcgrF7tUBnACX3Ep139GeI0zdzsdSlZpVelmrqOKQ8AAAAA=
X-Bell-API-Key: fonse-web-2d842ffc
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
X-Bell-Player-Agent: fonse-web/8.5.80 Native/8.43.0 (dynamicAdInsertion;livePause;widevine)
Accept: */*
Origin: https://tv.bell.ca
Sec-Fetch-Site: same-site
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Accept-Encoding: gzip, deflate, br
Accept-Language: fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7
Content-Length: 2
 

arslion84

New member
Dec 31, 2015
8
0
1
Hi all,

can you please help me to make regex for this
thanks in Advance...
makelist:
https://www.fox.com.tr/Kefaret/bolumler
 

Doux ami

New member
Oct 25, 2015
5
1
3
Canada
There you go! ;)

Code:
<item>
<title>Bolumler</title>
<thumbnail></thumbnail>
<link>$doregex[getUrl]|User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36</link>
<regex>
<name>getUrl</name>
<expres>'(https://foxtv-vod.ercdn.net/Kefaret/.+?/playlist.m3u8.+?)'</expres>
<page>https://www.fox.com.tr/Kefaret/bolumler</page>
<referer>https://www.fox.com.tr/</referer>
</regex>
</item>
 
  • Like
Reactions: altug

asiantv

New member
Jul 12, 2020
12
0
1
Hi, anyone can help me with this

Movie

Code:
http://dramaz.se/movies/
Drama

Code:
http://dramaz.se/hong-kong-drama/
thank you in advance
 

meiga

New member
Dec 21, 2020
1
0
1

gujal

Developer
Dec 26, 2013
591
327
63
I thought you guys would figure it out!
LSP XML:
<item>
<title>canal 9</title>
<inputstream>$doregex[getUrl]|User-Agent=iPad&amp;Referer=https://www.elnueve.com.ar/</inputstream>
<thumbnail>https://www.elnueve.com.ar/wp-content/themes/elnueve-ned-theme/img/logo.png</thumbnail>
<regex>
  <name>getUrl</name>
  <expres><![CDATA[#$pyFunction
def GetLSProData(page_data, Cookie_Jar,m):
  import re, requests, time
  def rsk(s):
    def decrypt(v1, v2):
      lv2 = len(v2)
      sv2 = list(v2)
      for i in range(lv2-1, -1, -1):
        t1 = i * v1 % lv2
        t2 = sv2[i]
        sv2[i] = sv2[t1]
        sv2[t1] = t2
      s1 = ''.join(sv2)
      s2 = s1[0:lv2 - 2] if s1[lv2 - 2:lv2] == 'OK' else None
      return s2
    tval = int(time.time()/3600)
    t = decrypt(tval, s) or decrypt(tval-1, s)
    return t
  hdr = {'User-Agent': 'iPad'}
  surl = re.findall("LIVE_URL\s*=\s*'([^']+)", page_data)[0]
  turl = re.findall("jQuery\.get\('([^']+)", page_data)[0]
  key = re.findall(r"3600000\),'([^']+)", page_data)[0]
  turl += rsk(key)
  token = requests.get(turl, headers=hdr).json()['token']
  surl += '?iut={}'.format(token)
  if surl.startswith('//'):
    surl = 'https:' + surl
  return surl
]]></expres>
  <page>https://www.elnueve.com.ar/en-vivo/</page>
</regex>
</item>
 

m5Germany

Active member
Mar 20, 2014
328
105
43
Greetings, Need some clarification.
If I look at the Code below and see 'cloudflare' I can stop trying to Code further and if I do try to Code further - it is/would be futile?
Info:
http://720pstream.tv/nfl-network-live-stream/
https://www.plytv.me/sdembed?v=nflnethd~nflnettv

GET https://key.seckeyserv.me/?stream=klIizm6uM2g1U57fHDJC&scode=7nKWFsLCdUuF4XDsB28wrQ&expires=1608639078 HTTP/1.1
Host: key.seckeyserv.me
Connection: keep-alive
Accept: application/json, text/javascript, */*; q=0.01
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Origin: https://www.plytv.me
Sec-Fetch-Site: cross-site
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://www.plytv.me/sdembed?v=nflnethd~nflnettv
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9

and

HTTP/1.1 200 OK
Date: Tue, 22 Dec 2020 12:10:54 GMT
Content-Type: application/json
Connection: keep-alive
Set-Cookie: __cfduid=d5878732e00be3d6ce984ce0bd17fa5f11608639053; expires=Thu, 21-Jan-21 12:10:53 GMT; path=/; domain=.seckeyserv.me; HttpOnly; SameSite=Lax; Secure
k-auth-type: extend
ser-loc-id: loc-002
Access-Control-Allow-Origin: https://www.plytv.me
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET
Access-Control-Allow-Headers: Cache-Control,Content-Type,Range
Access-Control-Expose-Headers: Content-Length,Content-Range
CF-Cache-Status: DYNAMIC
cf-request-id: 072bf5189d0000294f919d3000000001
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report?s=OFfwKWB8E49GgSb5alpXpbOtsJ3pbBBa194%2FN34kUsgRrp0W1X7eWOyVZ5ILRsSr%2FIoBl0l4u0rkrs3ElLZ6JfyJQxeduP0NIMpBbhKtNX0oMQ%3D%3D"}],"group":"cf-nel","max_age":604800}
NEL: {"report_to":"cf-nel","max_age":604800}
Strict-Transport-Security: max-age=0; includeSubDomains; preload
X-Content-Type-Options: nosniff
Server: cloudflare
CF-RAY: 6059be076b2d294f-IAD
Content-Length: 65

{"ts":1608639684,"success":true,"scode":"huaBAKz72AlbKf132VPNXw"}
Still trying to reinvent the wheel.
m5
 

m5Germany

Active member
Mar 20, 2014
328
105
43
Well, It seems that the site changed their Code - so - the above example will not work - but - If I see Server: cloudflare CF-RAY: 6059be076b2d294f-IAD from above - it can't be Coded in LSPro?
m5
 

tpoupi

Member
Jan 2, 2016
38
0
6
this regex stop, please need helps guru.
Thank so muck

<item>
<title>SERIES TV5</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[makelist.param3]</title>
<link>$doregex[makelist2]</link>
<thumbnail>https://afrique.tv5monde.com[makelist.param2]</thumbnail>
<fanart>https://afrique.tv5monde.com[makelist.param2]</fanart>
]]></listrepeat>
<expres><![CDATA[<a href="([^"]+)" class="tv5-videoList.*\n.*\s+<img src="([^"]+)".*\n.*\n.*\n.*\n.*?white">([^<]+)<]]></expres>
<page>https://afrique.tv5monde.com/videos/series?order_by=popularity|User-Agent=Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36&amp;Accept=text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8</page>
<referer>https://afrique.tv5monde.com</referer>
<cookieJar></cookieJar>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
<title>[makelist2.param2] [makelist2.param3]</title>
<link>$doregex[get-hls]|Cookie=$get_cookies$&amp;Referer=$doregex[get-replace]&amp;User-Agent=Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0&amp;X-Requested-With=ShockwaveFlash/20.0.0.286</link>
<thumbnail>https://afrique.tv5monde.com[makelist.param2]</thumbnail>
<fanart>https://afrique.tv5monde.com[makelist.param2]</fanart>
]]></listrepeat>
<expres><![CDATA[(?s)<a href="([^"]+)" class="tv5-videoList.*?<figure class="tv5-videoList-content">.*?tv5-highlight--white">(.*?)<.*?(Epis.*?) -]]></expres>
<page>https://afrique.tv5monde.com[makelist.param1]|User-Agent=Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36&amp;Accept=text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8</page>
<referer>https://afrique.tv5monde.com</referer>
<cookieJar></cookieJar>
</regex>
<regex>
<name>get-hls</name>
<expres>RESOLUTION=1280.*\s(http.*)</expres>
<page>$doregex[get-replace]</page>
<referer>https://afrique.tv5monde.com[makelist2.param1]</referer>
<agent>Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0</agent>
<cookieJar></cookieJar>
</regex>
<regex>
<name>get-replace</name>
<expres>$pyFunction:'$doregex[get-vid]'.replace('\/','/')</expres>
<page></page>
</regex>
<regex>
<name>get-vid</name>
<expres><![CDATA[format":"m3u8","url":"(.*?)"]]></expres>
<page>https://afrique.tv5monde.com[makelist2.param1]|User-Agent=Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36&amp;Accept=text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8</page>
<referer>https://afrique.tv5monde.com[makelist.param1]</referer>
<cookieJar></cookieJar>
</regex>
<thumbnail>https://ahp.li/fcb4cf5cbcbfd4f60007.png</thumbnail>
<fanart>http://ahp.li/082ddf8e71f396e076d9.jpg</fanart>
</item>
 
Thread starter Similar threads Forum Replies Date
G Scraper Development 0
J Scraper Development 1
O Addon Requests 5