http://mypanel.tv:8080/9
where "9" is the value. Servers to keep [k|m|u]. Is there a way to exclude the 9 while maintaining the ability of m?<item>
<title>[COLOR=FF00FFFF]USA Menu [COLOR red]•[/COLOR][COLOR=FF00CCFF] iptvcat.com[/COLOR][/COLOR]</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR=FF00FFFF]$doregex[Hello][COLOR red]•[/COLOR][COLOR=FF00CCFF] iptvcat.com[/COLOR][/COLOR]</title>
<link>[makelist.param2]</link>
]]></listrepeat>
<expres><![CDATA["channel":"([^"]+)","link":"(http://[k|m|u][^?]+)\?.*?"liveliness":"100","status":"online".*?"format":".*?","mbps":".*?","URI"]]></expres>
<page>https://raw.githubusercontent.com/eliashussary/iptvcat-scraper/master/data/countries/united%20states%20of%20america.json</page>
</regex>
<regex>
<name>Hello</name>
<expres>$pyFunction:'[makelist.param1]'.replace('\u0026','&').replace('US','').replace('FHD','').replace('HD','').replace('[B]','').replace('(ENG)','').replace('ENG','').replace('(Geo)','')</expres>
<page></page>
</regex>
</item>
http://m.liveonlinetv.org/external.php?title=Sky%20Movies&stream=skymoviesaction-hq
<item>
<title>5 Singapore</title>
<inputstream>$doregex[getURL]</inputstream>
<thumbnail></thumbnail>
<regex>
<name>getURL</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
import requests
headers = {'User-Agent': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3',
'Referer': 'https://www.mewatch.sg/',
'Origin': 'https://www.mewatch.sg'}
data = {"1":{"service":"ottuser","action":"anonymousLogin","partnerId":"147"},"2":{"service":"asset","action":"get","id":"316288","assetReferenceType":"media","ks":"{1:result:ks}"},"3":{"service":"asset","action":"getPlaybackContext","assetId":"316288","assetType":"media","contextDataParams":{"objectType":"KalturaPlaybackContextOptions","context":"PLAYBACK"},"ks":"{1:result:ks}"},"apiVersion":"5.2.6","partnerId":"147"}
url = 'https://rest-as.ott.kaltura.com/api_v3/service/multirequest'
sources = requests.post(url, headers=headers, json=data).json().get('result')[1].get('sources')
for src in sources:
if src.get('type') == 'DASH_Web':
strurl = src.get('url')
lurl = src.get('drm')[-1].get('licenseURL')
return '{0}$$lic={1}|Origin=https://www.mewatch.sg&Content-Type= |R{{SSM}}|'.format(strurl, lurl)
]]></expres>
<page></page>
</regex>
</item>
hxxps://hqm.es/canales/rock-hqm-directo/
hxxp://stream.pcriot.com/ZyH3/mc.php?ch=rock
<item>
<title>ceskatelevize</title>
<inputstream>$doregex[getURL]</inputstream>
<thumbnail></thumbnail>
<regex>
<name>getURL</name>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
import requests, re
url = "https://www.ceskatelevize.cz/ivysilani/ajax/get-client-playlist/"
payload="playlist%5B0%5D%5Btype%5D=channel&playlist%5B0%5D%5Bid%5D=24&requestUrl=%2Fivysilani%2Fembed%2FiFramePlayer.php&requestSource=iVysilani&type=html&canPlayDRM=false"
headers = {
'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.5 Mobile/15E148 Snapchat/10.77.5.59 (like Safari/604.1)',
'Referer': 'https://www.ceskatelevize.cz/ivysilani/embed/iFramePlayer.php?skinID=3&&tpl=live&multimedia=1&width=100%25&hash=b09f0a7ea88255f22c62098ee281ad74600182d8&videoID=CT24',
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8','x-addr': '127.0.0.1','X-Requested-With': 'XMLHttpRequest','Origin': 'https://www.ceskatelevize.cz'}
tok = requests.request("POST", url, headers=headers, data=payload).json().get('url')
headers = {'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.5 Mobile/15E148 Snapchat/10.77.5.59 (like Safari/604.1)','X-Requested-With': 'XMLHttpRequest','Connection': 'keep-alive',
'Referer': 'https://www.ceskatelevize.cz/ivysilani/embed/iFramePlayer.php?skinID=3&&tpl=live&multimedia=1&width=100%25&hash=b09f0a7ea88255f22c62098ee281ad74600182d8&videoID=CT24',
'Cookie': 'PHPSESSID=71c1jd77m2jok718296rceegh1; CTStatProgrammes=24; videoQuality=auto; PLAYER_CAN_PLAY_DRM={"value":0}'}
tok2 = requests.request("GET", tok, headers=headers, data=payload).json().get('playlist')[0].get('streamUrls').get('main')
headers = {'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.5 Mobile/15E148 Snapchat/10.77.5.59 (like Safari/604.1)','Origin': 'https://www.ceskatelevize.cz','Connection': 'keep-alive','Referer': 'https://www.ceskatelevize.cz/ivysilani/embed/iFramePlayer.php?skinID=3&&tpl=live&multimedia=1&width=100%25&hash=b09f0a7ea88255f22c62098ee281ad74600182d8&videoID=CT24'}
r = requests.request("GET", tok2, headers=headers)
hls=re.findall("(http[^\s]+m3u8)",r.content)[0]
return hls+'|User-Agent=Mozilla/5.0 (iPhone; CPU iPhone OS 13_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.5 Mobile/15E148 Snapchat/10.77.5.59 (like Safari/604.1)'
]]></expres>
<page></page>
</regex>
</item>
BANDWIDTH=628000
When I change at higher quality,ex: bandwidth 1160000,3712000 or higher... it's not working-LSP error.Can you fix it? Tks.<item>
<title>[COLOR=FF00FFFF]Test - static [COLOR=red]•[/COLOR][COLOR=FF00CCFF] iptvcat.com[/COLOR][/COLOR]</title>
<thumbnail>https://iptvcat.com/res/images/logo_iptvcat.png</thumbnail>
<fanart></fanart>
<link>https://service-stitcher.clusters.pluto.tv/stitch/hls/channel/5812b0f2237a6ff45d16c3f9/master.m3u8?terminate=false&deviceType=web&deviceMake=web&deviceModel=web&sid=726&deviceId=5812b0f2237a6ff45d16c3f9&deviceVersion=DNT&appVersion=DNT&deviceDNT=0&userId=&advertisingId=&deviceLat=&deviceLon=&app_name=&appName=web&buildVersion=&appStoreUrl=&architecture=&includeExtendedEvents=false&marketingRegion=US&serverSideAds=false|User-Agent=VLC&Referer=https://iptvcat.com/</link>
</item>
<item>
<title>[COLOR=FF00FFFF]Test - menu [COLOR red]•[/COLOR][COLOR=FF00CCFF] iptvcat.com[/COLOR][/COLOR]</title>
<thumbnail>https://iptvcat.com/res/images/logo_iptvcat.png</thumbnail>
<fanart></fanart>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR=FF00FFFF]$doregex[mTitle][COLOR red]•[/COLOR][COLOR=FF00CCFF] iptvcat.com[/COLOR][/COLOR]</title>
<link>$doregex[m5]|User-Agent=VLC&Referer=http://iptvcat.com/</link>
]]></listrepeat>
<expres><![CDATA["channel":"([^\*"]+)","link":"(h.{6}[acsu][^1od].*?).checkedby.*?ss":"[19]]]></expres>
<page>https://raw.githubusercontent.com/eliashussary/iptvcat-scraper/master/data/countries/united%20states%20of%20america.json</page>
</regex>
<regex>
<name>m5</name>
<expres>$pyFunction:'[makelist.param2]'.replace('/u002','').replace('\u002','').replace('\u0026','&').replace('&','&')</expres>
<page></page>
</regex>
<regex>
<name>mTitle</name>
<expres>$pyFunction:'[makelist.param1]'.replace('\u0026','&').replace('US','').replace('FHD','').replace('HD','').replace('[B]','').replace('(ENG)','').replace('ENG','').replace('(Geo)','').replace('(30A)','').replace('SD','').replace('VIP','').replace('(Opt-1), AlMayadeen TV (Backup)','')</expres>
<page></page>
</regex>
</item>
<item>
<title>Channels</title>
<link>$doregex[makelist]</link>
<thumbnail></thumbnail>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR gold][makelist.param1][/COLOR]</title>
<link>[makelist.param2]|User-Agent=VLC/3.0.11 LibVLC/3.0.11</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
import requests
url = "https://raw.githubusercontent.com/eliashussary/iptvcat-scraper/master/data/countries/united%20states%20of%20america.json"
headers = {
'user-agent': "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36",
'accept': "*/*",
}
resp = requests.get(url, headers=headers).json()
items = [(x['channel'], x['link']) for x in resp]
return items
]]></expres>
<page></page>
</regex>
</item>
from (h.{6}[acsu][^1od].*?) to (h.{6}[acsu][^od].*?)
As stated origanally - I would like to include the static w/ menu. <item>
<title>Streams Online</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[makelist.param1]</title>
<link>[makelist.param2]|user-agent=VLC&referer=[makelist.param2]</link>
<!--<inputstream>[makelist.param2]|user-agent=VLC&referer=[makelist.param2]</inputstream>-->
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
jdata=re.findall('("id"[^\[]+)',page_data);list=[]
for d in jdata:
getd=re.findall('"link":"([^"]+)"',d)
for l in getd:
getl=l.replace('\u0026','&')
d=d.replace(l,getl)
if '"online' in d:
list +=re.findall('"channel":"([^"]+)","link":"([^"]+)',d)
return sorted(list,key=lambda t: (set(t[0])))
]]></expres>
<page>https://raw.githubusercontent.com/eliashussary/iptvcat-scraper/master/data/countries/united%20states%20of%20america.json</page>
</regex>
</item>
==== Just filter the channels you like, example ESP.... channels ====
<item>
<title>ESPN Chammel</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[makelist.param1]</title>
<link>[makelist.param2]|user-agent=VLC&referer=[makelist.param2]</link>
<!-- <inputstream>[makelist.param2]|user-agent=VLC&referer=[makelist.param2]</inputstream>-->
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
def GetLSProData(page_data,Cookie_Jar,m):
data=re.findall('("id"[^\[]+)',page_data);list=[]
for d in data:
if '"online' in d:
if 'ESP' in d:
list +=re.findall('"channel":"([^"]+)","link":"([^"]+)',d)
return sorted(list,key=lambda t: (t[0]))
]]></expres>
<page>https://raw.githubusercontent.com/eliashussary/iptvcat-scraper/master/data/countries/united%20states%20of%20america.json</page>
</regex>
</item>
<item>
<title>Streams</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[makelist.param1]</title>
<link>[makelist.param2]|User-Agent=VLC/3.0.11 LibVLC/3.0.11</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
import requests
def GetLSProData(page_data,Cookie_Jar,m):
l1 = re.findall('"channel":"([^\*"]+)","link":"(h.{6}[acsu][^od].*?).checkedby',page_data)
l2 = re.findall('"channel":"([^\*"]+)","link":"(http*[^"]+(?:playlist|master)\.m3u8.*?)"',page_data)
l3 = l1+l2
items = [(x, y.replace('\u0026','&')) for x, y in l3]
return sorted(items,key=lambda t: (set(t[0])))
]]></expres>
<page>https://raw.githubusercontent.com/eliashussary/iptvcat-scraper/master/data/countries/united%20states%20of%20america.json</page>
</regex>
</item>
.replace('\u0026','&')
for Title in your Code.<item>
<title>Streams - adapted from @RRrorony</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[makelist.param1]</title>
<link>[makelist.param2]|User-Agent=VLC/3.0.11 LibVLC/3.0.11</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re
import requests
def GetLSProData(page_data,Cookie_Jar,m):
l1 = re.findall('"channel":"([^\*"]+)","link":"(h.{6}[acsu][^od].*?).checkedby.*?ss":"[1]',page_data)
l2 = re.findall('"channel":"([^\*"]+)","link":"(https[^z"]+(?:playlist|master)\.m3u8.*?).checkedby.*?ss":"[1]',page_data)
l3 = l1+l2
items = [(x, y.replace('\u0026','&').replace('/u002','')) for x, y in l3]
return sorted(items,key=lambda t: (set(t[0])))
]]></expres>
<page>https://raw.githubusercontent.com/eliashussary/iptvcat-scraper/master/data/countries/united%20states%20of%20america.json</page>
</regex>
</item>
<item>
<title>Channels</title>
<link>$doregex[makelist]</link>
<thumbnail></thumbnail>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>[COLOR gold][makelist.param1][/COLOR]</title>
<link>[makelist.param2]|User-Agent=VLC/3.0.11 LibVLC/3.0.11</link>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
def GetLSProData(page_data,Cookie_Jar,m):
import requests
url = "https://raw.githubusercontent.com/eliashussary/iptvcat-scraper/master/data/countries/united states of america.json"
headers = {
'user-agent': "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36",
'accept': "*/*",
}
resp = requests.get(url, headers=headers).json()
items = [(x['channel'], x['link']) for x in resp]
return items
]]></expres>
<page></page>
</regex>
</item>
<item>
<title>RECHERCHE YOUTUBE</title>
<link>$doregex[makelist]</link>
<regex>
<name>makelist</name>
<listrepeat><![CDATA[
<title>([makelist.param3]) [makelist.param2]</title>
<urlsolve>https://www.youtube.com/watch?v=[makelist.param1]</urlsolve>
<thumbnail>https://i.ytimg.com/vi/[makelist.param1]/hqdefault.jpg</thumbnail>
]]></listrepeat>
<expres><![CDATA[#$pyFunction
import re,requests,urllib,xbmc
def GetLSProData(page_data,Cookie_Jar,m):#streamwatcher2013
def get_SearchQuery():
keyboard=xbmc.Keyboard();keyboard.setHeading('Search Here:');keyboard.doModal()
if keyboard.isConfirmed():
itext=urllib.quote_plus(keyboard.getText())
return itext
gtext=get_SearchQuery()
sUrl= 'https://m.youtube.com/results?search_query=%s'%gtext
jdata=requests.get(sUrl,headers={'user-agent':'Mozilla/5.0 (iPhone; CPU iPhone OS 10_3_2 like Mac OS X) AppleWebKit/603.2.4 (KHTML, like Gecko) FxiOS/7.5b3349 Mobile/14F89 Safari/603.2.4'}).content.replace('\\x22','"').replace('\\x7b','{').replace('\\x5b','[').replace('\\x7d','}').replace('\\x5d',']').replace('\\x27','\'')
list1 = re.findall('VideoRenderer":{"videoId":"([^"]+).+?"title":{"runs":\[{"text":"([^"]+).+?"lengthText":.+?(?:T|t)ext":"([^"]+)',jdata)
return list1
]]></expres>
<page></page>
</regex>
<thumbnail>https://www.wearediagram.com/hubfs/YouTube_Search.jpg</thumbnail>
<item>
hxxp://crackstreams.biz/watch/610
<item>
<title>UFC 257</title>
<link>$doregex[getLink]|User-Agent=Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36&Referer=http://crackstreams.biz/watch/610</link>
<thumbnail></thumbnail>
<fanart></fanart>
<regex>
<name>getLink</name>
<expres><![CDATA[source:\s*"([^"]+)]]></expres>
<page>http://crackstreams.biz/watch/610</page>
<cookieJar></cookieJar>
</regex>
</item>
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
G | LSP | Scraper Development | 0 | |
J | PHP Scraper/regex | Scraper Development | 1 | |
O | UniversalSports.com | Addon Requests | 5 |
Similar threads |
---|
LSP |
PHP Scraper/regex |
UniversalSports.com |