LSP Regex & Makelist Discussion.

undpnd tqucbo

Member
Jan 25, 2021
115
0
16
Can I get help a site & tk!
Code:
https://www.doomovie-hd.com/?r=tv_view&id=22
 

m5Germany

Active member
Mar 20, 2014
280
87
28
Appears to be Protected by Cloudflare - but - the static m3u8 seems to work.
LSP3 XML:
<item>
<title>TRUE SPORT HD1 | doomovie-hd.com</title>
<fanart>https://i.pinimg.com/736x/92/40/0c/92400c1ed375941c572f7f871d973852.jpg</fanart>
<thumbnail>https://cms.dmpcdn.com/livetv/2019/10/28/feddd690-f972-11e9-91cd-2f79be09d2b3_320.png</thumbnail>
<link>https://www.livedoomovie.com/02_2sporthd1_720p/chunklist.m3u8|User-Agent=Mozilla/5.0&amp;Referer=https://www.doomovie-hd.com/</link>
</item>
 
  • Like
Reactions: undpnd tqucbo

thingy

Member
May 9, 2018
69
1
8
Greetings friends, this channel is sometimes online, I extracted the m3u file from the source but it does not run for some reason, I request your help for a regex
Code:
hxxps://mdstrm.com/live-stream/5d88d659120a717cf93ce620?jsapi=true&autoplay=false&volume=70

page: hxxps://www.rpctv.com/endirecto
 

gujal

Developer
Dec 26, 2013
564
311
63
The stream is geo-locked to Panama IP, so unless you are in Panama, dont think it will work without vpn to Panama
https://mdstrm.com/live-stream-playlist/5d88d659120a717cf93ce620.m3u8
 

streamwatcher2013

Well-known member
Oct 24, 2013
954
432
63
USA
Try this. It works at my end without VPN unless the stream is not available

LSP XML:
<item>
<title>https://www.rpctv.com/endirecto</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):
  url='https://www.rpctv.com/check-directo/'+re.findall('data-seccion="(\d+)',page_data)[0]
  sID=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'https://www.rpctv.com/endirecto','accept':'*/*'}).json()['vivo']
  return 'https://mdstrm.com/live-stream-playlist/%s.m3u8'%sID+'|user-agent=ipad&origin=https://mdstrm.com&referer=https://mdstrm.com/'
]]></expres>
<page>https://www.rpctv.com/endirecto</page>
</regex>
</item>
 

undpnd tqucbo

Member
Jan 25, 2021
115
0
16
Can someone help me this site & tk!
Code:
https://ltv.lsm.lv/lv/tieshraide/visiemltv.lv/live.1480/
 

gujal

Developer
Dec 26, 2013
564
311
63
Simple One, Enjoy!

LSP XML:
<item>
<title>Visiem LTV</title>
<link>https:$doregex[getUrl]|User-Agent=iPad&amp;Referer=https://embed.cloudycdn.services/</link>
<regex>
<name>getUrl</name>
<expres>src:\s*'([^']+)</expres>
<page>https://embed.cloudycdn.services/ltvlive/channel/ymc_ltv09-visiem/?player=regular&amp;protocol=hls</page>
<referer>https://ltv.lsm.lv/</referer>
</regex>
<thumbnail>https://ltv.lsm.lv/assets/guide/c92679259815c28841a22b7f192fb4d4.jpg</thumbnail>
</item>
 
  • Like
Reactions: undpnd tqucbo

adriansyafiq

Member
Jan 3, 2016
34
2
8
Hi Experts,
need your help for regex for kodi 18.9.

Code:
https://www.vidio.com/live/204-sctv
 

thingy

Member
May 9, 2018
69
1
8
check post
Code:
<item>

<title>SCTV **https://www.vidio.com/live/204-sctv**</title>

<link>$doregex[makelist]</link>

<regex>

<name>makelist</name>

<expres><![CDATA[#$pyFunction

import re, requests
def GetLSProData(page_data,Cookie_Jar,m):
hls=re.findall('data-vjs-clip-hls-url="(.*?)"',page_data)[0]
url='https://www.vidio.com/live/204/tokens'
source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'page_data'}).content
return hls+'?'+re.findall('"token":"(.*?)"',source)[0].replace('\u0026','&')+'|user-agent=iPad'
]]></expres>

<page>https://www.vidio.com/live/204-sctv</page>

<referer>https://www.vidio.com/</referer>

</regex>

</item>
 

streamwatcher2013

Well-known member
Oct 24, 2013
954
432
63
USA
It should work on either one 18 or 19. Small changed on their code. Try this:

LSP XML:
<item>
<title>SCTV</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  tok=requests.post('https://www.vidio.com/live/204/tokens',headers={'user-agent':'Mozilla/5.0','origin':'https://www.vidio.com','referer':'https://www.vidio.com/live/204-sctv','accept':'*/*'}).json()['token']
  return re.findall('data-vjs-clip-hls-url="(.*?)"',page_data)[0]+'?%s|user-agent=iad&referer=https://www.vidio.com/'%tok
]]></expres>
<page>https://www.vidio.com/live/204-sctv</page>
</regex>
</item>
 

undpnd tqucbo

Member
Jan 25, 2021
115
0
16
Tôi có thể cần sự trợ giúp cho trang web này không và cảm ơn!
Can I get help a site & tk!
Code:
https://vtvgo.vn/xem-truc-tuyen-kenh-vtv3-3.html
 

streamwatcher2013

Well-known member
Oct 24, 2013
954
432
63
USA
Thử xem: # đổi 'id':'3' to '2' cho VTC2, '1' cho VTV1..........

LSP XML:
<item>
<title>VTV 3</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  s=requests.get('https://vtvgo.vn/xem-truc-tuyen-kenh-vtv3-3.html',headers={'user-agent':'Mozilla/5.0','referer':'https://vtvgo.vn/','accept':'*/*'})
  url,gtime,tok=re.findall('(?s)var\s*url.+?\+[\'"](.+?)";.+?time.+?(\d+).+?token.+?[\'"]([^\'"]+)',s.text)[0]
  data={'type_id':'1','id':'3','time':int(gtime),'token':tok}  # đổi 'id':'3' to '2' cho VTC2, '1' cho VTV1..........
  strurl=requests.post('https://vtvgo.vn/%s'%url,headers={'user-agent':'Mozilla/5.0','origin':'https://vtvgo.vn','referer':'https://vtvgo.vn/','x-requested-with':'XMLHttpRequest','accept':'*/*'},cookies=s.cookies,data=data).json()['chromecast_url']
  return '%s|user-agent=ipad&referer=https://vtvgo.vn/'%strurl
]]></expres>
<page></page>
</regex>
<thumbnail>https://upload.wikimedia.org/wikipedia/commons/8/8c/Vtv3.png</thumbnail>
</item>

<item>
<title>VTV 3</title>
<link>$doregex[getUrl]</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  s=requests.get('https://vtvgo.vn/xem-truc-tuyen-kenh-vtv3-3.html',headers={'user-agent':'Mozilla/5.0','referer':'https://vtvgo.vn/','accept':'*/*'})
  url,gtime,tok=re.findall('(?s)var\s*url.+?\+[\'"](.+?)";.+?time.+?(\d+).+?token.+?[\'"]([^\'"]+)',s.text)[0]
  data={'type_id':'1','id':'3','time':int(gtime),'token':tok}  # đổi 'id':'3' to '2' cho VTC2, '1' cho VTV1..........
  strurl=requests.post('https://vtvgo.vn/%s'%url,headers={'user-agent':'Mozilla/5.0','origin':'https://vtvgo.vn','referer':'https://vtvgo.vn/','x-requested-with':'XMLHttpRequest','accept':'*/*'},cookies=s.cookies,data=data).text.replace('\\','')
  return re.findall('stream_url".+?"([^"]+)',source)[0]+'|user-agent=ipad&referer=https://vtvgo.vn/'
]]></expres>
<page></page>
</regex>
<thumbnail>https://upload.wikimedia.org/wikipedia/commons/8/8c/Vtv3.png</thumbnail>
</item>
 

undpnd tqucbo

Member
Jan 25, 2021
115
0
16
@streamwatcher2013 cám ơn nhưng không hoạt động....Tôi ở Việt Nam thì kênh nó bị drm như này:
Code:
https://live-drm.vtvdigital.vn/023b142c9801dfd3373092ba1b4025bf/1626500170026/live/vtv3/720p.m3u8
Có cách nào khác để tôi xem được không.Tk
 
Last edited by a moderator:

jakefromstatefarm

New member
Jun 15, 2015
3
0
1
Hey guys I have a question. Is it possible to pipe two referers to a stream for example

Code:
https://example.com/|Referer=https://example.com/|Referer=https://example2.com/
So if one of the referer fails, the other one works?

Thanks!
 

nkt9911

New member
May 22, 2021
21
0
1
USA
Hi.
Can do I get help for site & tks?
Code:
https://archivum.mtva.hu/m3/
 

urgoz

New member
Oct 21, 2016
1
0
1
This is my thousend year old regex for m3 and still working. Looks like the old api and stream is still up.

Code:
<item>

<title>m3</title>
<link>$doregex[makelist]</link>

<regex>
   <name>makelist</name>
   <listrepeat><![CDATA[
  <title>M3 [makelist.param1]p</title>
  <link>[makelist.param2]</link>
]]></listrepeat>
<expres>RESOLUTION=\d+x(\d+)+\n(.*)</expres>
<page>$doregex[clean-url]</page>
</regex>

<regex>
<name>get-url</name>
<expres>url":"(.*?)"</expres>
<page>https://archivum.mtva.hu/m3/stream?no_lb=1&amp;target=live</page>
</regex>

<regex>
<name>clean-url</name>
<expres>$pyFunction:'$doregex[get-url]'.replace('\/','/')</expres>
<page></page>
</regex>

</item>
 

boomski2

Member
Aug 19, 2019
43
1
8
anyone can help?

Code:
http://fdrama.net/browse/korean/dramas/all/all/all/0
 

streamwatcher2013

Well-known member
Oct 24, 2013
954
432
63
USA
Try this:

LSP XML:
<item>
<title>http://fdrama.net/browse/korean/dramas/all/all/all/0/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param2][/COLOR] - [COLOR dodgerblue][makelist.param4][/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
  data=re.findall('(?s)class="image".+?href.+?/([^"]+).\s*title="([^"]+)\s*-.+?src="([^"]+).+?status">([^<]+)',page_data)
  for pn in xrange(2,5):
    pages='http://fdrama.net/browse/korean/dramas/all/all/all/0/'+str(pn);source=requests.get(pages,headers={'user-agent':'Mozilla/5.0','accept':'*/*'}).text
    data +=re.findall('(?s)class="image".+?href.+?/([^"]+).\s*title="([^"]+)\s*-.+?src="([^"]+).+?status">([^<]+)',source)
  return data
]]></expres>
<page>http://fdrama.net/browse/korean/dramas/all/all/all/0</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param2][/COLOR] - [COLOR dodgerblue] Episode [makelist2.param2][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[(?s)"list-eps".+?href.+?/([^"]+).+?pisode.(\d+[^"]+)]]></expres>
<page>http://fdrama.net/[makelist.param1]</page>
<referer>http://fdrama.net/browse/korean/dramas/all/all/all/0</referer>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  url=re.findall('rel="noopener.+?href="([^"]+)',page_data)[0]
  rUrl=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'http://fastdrama.co/[makelist2.param1]','accept':'*/*'},allow_redirects=False).headers['Location']
  source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'http://fastdrama.co/[makelist2.param1]','accept':'*/*'}).text
  link=re.findall('id=.videoembed.+?src=[\'"]([^\'"]+)',source)[0].replace('https','http')
  source=requests.get(link,headers={'user-agent':'Mozilla/5.0','origin':'http://player.fastdrama.org','referer':link,'accept':'*/*'}).text
  if 'value="2"' in source:
    source=requests.post(link,headers={'user-agent':'Mozilla/5.0','origin':'http://player.fastdrama.org','referer':link,'accept':'*/*'},data={'IdLink':'2'}).text
    return re.findall('sourcesAPI.+?file.:\s*[\'"]([^\'"]+)',source)[0]
  elif 'value="14"' in source:
    source=requests.post(link,headers={'user-agent':'Mozilla/5.0','origin':'http://player.fastdrama.org','referer':link,'accept':'*/*'},data={'IdLink':'14'}).text
    return re.findall('sourcesAPI.+?file.:\s*[\'"]([^\'"]+)',source)[0]
]]></expres>
<page>http://fdrama.net/[makelist2.param1]</page>
<referer>http://fdrama.net/[makelist.param1]</referer>
</regex>
</item>
 

streamwatcher2013

Well-known member
Oct 24, 2013
954
432
63
USA
For movies. You can switch the whole value section up or down. make sure the 1st one only has "if" and second has "elif"

LSP XML:
<item>
<title>Movies</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold][makelist.param2][/COLOR] - [COLOR dodgerblue][makelist.param4][/COLOR]</title>
  <link>$doregex[getUrl]</link>
  <thumbnail>[makelist.param3]</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  data=re.findall('(?s)class="image".+?href.+?/([^"]+).\s*title="(.+?)\s*-.+?src="([^"]+).+?status">([^<]+)',page_data)
  for pn in xrange(2,5):  # increase 5 to higher number to get more movies. it will take longer timw to load
    pages='http://fdrama.net/browse/korean/movies/all/all/all/0/'+str(pn);source=requests.get(pages,headers={'user-agent':'Mozilla/5.0','accept':'*/*'}).text.replace('&#39;','&').replace('&quot;','"')
    data +=re.findall('(?s)class="image".+?href.+?/([^"]+).\s*title="(.+?)\s*-.+?src="([^"]+).+?status">([^<]+)',source)
  return data
]]></expres>
<page>http://fdrama.net/browse/korean/movies/all/all/all/0/</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,jsunpack
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  link=re.findall('id=.videoembed.+?src=[\'"]([^\'"]+)',page_data)[0].replace('https','http')
  source=requests.get(link,headers={'user-agent':'Mozilla/5.0','referer':'http://fdrama.net/watch-online/[makelist.param1]','accept':'*/*'}).text
  if 'value="4"' in source:
    source=requests.post(link,headers={'user-agent':'Mozilla/5.0','origin':'http://player.fastdrama.org','referer':link,'accept':'*/*'},data={'IdLink':'4'}).text
    murl=re.findall('id=.player.+?src=[\'"]([^\'"]+)',source)[0];ori=re.findall('(.+?//.+?)/',murl)[0]
    url=murl.replace('embed-','play/').replace('.html','?auto=1&referer=http://player.fastdrama.org/&')
    source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':murl,'accept':'*/*'},verify=False).text
    msource=jsunpack.unpack(re.findall('(eval.*m3u8.*)',source)[0])
    return re.findall('layer[\w\W]*?(?:source|src|file)(?:\s*|):(?:\s*|)[\'"]([^\'"]+)',msource)[0]+'|user-agent=ipad&referer=%s/'%ori
  elif 'value="2"' in source:
    source=requests.post(link,headers={'user-agent':'Mozilla/5.0','origin':'http://player.fastdrama.org','referer':link,'accept':'*/*'},data={'IdLink':'2'}).text.replace('amp;','')
    url=re.findall('id=.videoembed.+?src=[\'"]([^\'"]+)',source)[0];ori=re.findall('(.+?//.+?)/',url)[0]
    source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'http://player.fastdrama.org/','accept':'*/*'},verify=False).text
    return re.findall('id=.myVideo[\w\W]+?{file:\s*[\'"]([^\'"]+)',source)[0]+'|user-agent=ipad&referer=%s'%ori
]]></expres>
<page>http://fdrama.net/watch-online/[makelist.param1]</page>
<referer>http://fdrama.net/[makelist.param1]</referer>
<cookieJar></cookieJar>
</regex>
</item>
 

mullafabz

New member
Apr 20, 2017
9
0
1
Hello TVA,

Need help with regex for this:

Code:
https://sports24.stream/tv/v?id=nbc
Thanks
 
Last edited by a moderator:

undpnd tqucbo

Member
Jan 25, 2021
115
0
16
I need to help one site & tk!
Code:
http://yrsprts.stream/live?v=olympic2
 

posadka

New member
Jun 10, 2021
14
10
3
Code:
<item>
<title>http://yrsprts.stream/live?v=olympic2</title>
<fanart></fanart>
<thumbnail></thumbnail>
<link>$doregex[m3u8]</link>
<regex>
<name>m3u8</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
    import re,requests,base64
    w = re.findall('(?s)<iframe frameborder=0 height=100% width=100% src="([^"]*)', page_data)[0]
    s = requests.get(w,headers={'user-agent':'iPad','referer':'http://yrsprts.stream/live?v=olympic2'}).text
    e = re.findall('(?s)player">\s*<iframe.*?src="([^"]*)',s)[0]
    d = requests.get(e).text
    t = re.findall('atob\(\'([^\']*)',d)[0]
    t = base64.b64decode(t).decode('utf-8')
    return t + '|User-Agent=Mozilla/5.0&Referer=' + w
]]></expres>
<page>http://yrsprts.stream/live?v=olympic2</page>
</regex>
</item>
 
Jun 6, 2017
33
0
6
Please, help for this.

Code:
hxxps://poscitech.club/tv/ch90.php
 

streamwatcher2013

Well-known member
Oct 24, 2013
954
432
63
USA
Simple code:

LSP XML:
<item>
<title>beIN Sport 2</title>
<link>$doregex[getUrl]|user-agent=ipad&amp;referer=https://www.eplayer.to/</link>
<regex>
<name>getUrl</name>
<expres><![CDATA[Clappr.Player[\w\W]+?(?:source|src|file):\s*[\'"]([^\'"]+)]]></expres>
<page>https://www.eplayer.to/poscitech.php?live=90</page>
<referer>https://poscitech.club/tv/ch90.php</referer>
</regex>
</item>
 
  • Like
Reactions: captainhardlock

Niky90

New member
Oct 11, 2018
10
0
1
Greetings to all the experts, I would need the regex expression for the following channels.
who can help me?
thank you

hxxp://www.canale58.com/streaming-new.php
hxxps://www.garganotv.com/diretta-tv/
hxxps://platform.wim.tv/#/webtv/Telenuova/live/a634d9b6-9e30-4cd9-a21d-307a2fb3b75e
 

Doom

Member
Sep 16, 2019
316
21
18
@streamwatcher2013 Stooped working can you take a look and change the time zone to USA... thanks!
LSP XML:
<item>
<title>https://p2pstreams.live/</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[COLOR gold] [makelist.param2][/COLOR]</title>
  <link>$doregex[makelist2]</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  list=re.findall('class="takoheddo".+?Upcoming Schedule</span>(?s)(.*?)</section',page_data)[0]
  return re.findall('class="takoheddo".+?Upcoming Schedule</span>|class="takos".+?href.+?live/(?!Upcoming)([^"]+).+?<span>([^<]+)',list)
]]></expres>
<page>https://p2pstreams.live/</page>
</regex>
<regex>
<name>makelist2</name>
<listrepeat><![CDATA[
  <title>[COLOR white][makelist2.param1][/COLOR][COLOR gold]  [makelist2.param3][/COLOR][COLOR blue]  [makelist2.param4][/COLOR]</title>
  <link>$doregex[getUrl]</link>
]]></listrepeat>
<expres><![CDATA[<h3><strong>([^<]+)</strong></h3>\s*<div|class="takos".+?href="([^"]+).+?>([^<]+)</span.+?value="([^"]+)]]></expres>
<page>https://p2pstreams.live/[makelist.param1]</page>
</regex>
<regex>
<name>getUrl</name>
<expres><![CDATA[#$pyFunction
import re,requests,jsunpack
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
  url=re.findall('"embed-responsive.+?src=[]\'"]([^\'"]+)',page_data)[0];ref=re.findall('(.+?)embed',url)[0]
  source=requests.get(url,headers={'user-agent':'Mozilla/5.0','referer':'http://p2pstreams.live/','accept':'*/*'}).text.replace('\\','')
  pUrl=re.findall('player.load.+?:\s*([^\W]+)',source)[0]
  html,gtok1,gtok2=re.findall('(?s)function\s*%s.+?\[([^\]]+).+?\+\s*([^\.]+).+?"(\w[^"]+)'%pUrl,source)[0]
  html=''.join(eval(html))
  tok1=re.findall('%s.+?\[("[^\]]+)'%gtok1,source)[0];tok1=''.join(eval(tok1))
  tok2=re.findall('%s>([^<]+)'%gtok2,source)[0]
  return '%s%s%s|user-agent=ipad&referer=%s'%(html,tok1,tok2,ref)
]]></expres>
<page>[makelist2.param2]</page>
</regex>
</item>
 

urualf

Member
Jan 19, 2016
42
0
6
please need help for this link ,i have regex but no more work in kodi 18.9,thanks for you help


Code:
hxxps://www.youtube.com/c/piscuajo/videos
 

Minde95s

New member
Mar 19, 2021
2
1
3
Works with kodi 19.
XML:
<item>
<title>piscuajo</title>
<thumbnail>https://yt3.ggpht.com/ytc/AKedOLQFAEtvVbeVgzQIRZqvYJFCZhnuLorUy9zl4O2f</thumbnail>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
  <title>[makelist.param2]</title>
  <urlsolve>https://www.youtube.com/watch?v=[makelist.param1]</urlsolve>
  <info>[makelist.param2]</info>
  <thumbnail>https://i.ytimg.com/vi/[makelist.param1]/hqdefault.jpg</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
  try:
    import urllib
    page_data=urllib.urlopen('https://www.youtube.com/c/piscuajo/videos').read().decode('utf-8')
  except:
    import urllib.request
    page_data=urllib.request.urlopen('https://www.youtube.com/c/piscuajo/videos').read().decode('utf-8')
  jdata=re.findall('"sectionListRenderer":{"contents"(?s)(.*?)id="container"',page_data)[0].replace('\\u0026','&')
  YTid=re.findall('"gridVideoRenderer":{"videoId":"([^"]+)',jdata)
  title=re.findall('"gridVideoRenderer":{"videoId":[\w\W]+?"accessibilityData":{"label":"(.+?)(?:\s*by|"})',jdata)
  return list(zip(YTid,title))
]]></expres>
<page></page>
</regex>
</item>
 
  • Like
Reactions: urualf
Thread starter Similar threads Forum Replies Date
G Scraper Development 0
J Scraper Development 1
O Addon Requests 5