Fix GS Domain, Fix AW Scraper, Fix SWa scraper for some series, Updated config
This commit is contained in:
@@ -47,16 +47,12 @@ showname_replace = {
|
|||||||
"-": ""
|
"-": ""
|
||||||
}
|
}
|
||||||
async def security_cookie (response):
|
async def security_cookie (response):
|
||||||
if "SecurityAW-gl" in response.text:
|
match = re.search(r'SecurityAW-([A-Za-z0-9]{2})=([^;]+)', response.text)
|
||||||
match = re.search(r'SecurityAW-gl=([^;]+)', response.text)
|
|
||||||
characters = "gl"
|
|
||||||
elif "SecurityAW-Ec" in response.text:
|
|
||||||
match = re.search(r'SecurityAW-Ec=([^;]+)', response.text)
|
|
||||||
characters = "Ec"
|
|
||||||
if match:
|
if match:
|
||||||
Security_Cookie = match.group(1).strip()
|
unknown_chars = match.group(1).strip()
|
||||||
|
Security_Cookie = match.group(2).strip()
|
||||||
cookies = {
|
cookies = {
|
||||||
f"SecurityAW-{characters}": Security_Cookie
|
f"SecurityAW-{unknown_chars}": Security_Cookie
|
||||||
}
|
}
|
||||||
return cookies
|
return cookies
|
||||||
async def get_mp4(anime_url,ismovie,episode,client):
|
async def get_mp4(anime_url,ismovie,episode,client):
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ async def search(showname,season,episode,date,ismovie,client):
|
|||||||
if date == page_date:
|
if date == page_date:
|
||||||
href = temp_href['href']
|
href = temp_href['href']
|
||||||
href = soup.find('a')['href']
|
href = soup.find('a')['href']
|
||||||
response = await client.get(href, allow_redirects=True, impersonate = "chrome120")
|
response = await client.get(href, allow_redirects=True, impersonate = "chrome124")
|
||||||
soup = BeautifulSoup(response.text,'lxml',parse_only=SoupStrainer('iframe'))
|
soup = BeautifulSoup(response.text,'lxml',parse_only=SoupStrainer('iframe'))
|
||||||
iframe = soup.find('iframe')
|
iframe = soup.find('iframe')
|
||||||
hdplayer = iframe.get('data-lazy-src')
|
hdplayer = iframe.get('data-lazy-src')
|
||||||
@@ -66,7 +66,8 @@ async def search(showname,season,episode,date,ismovie,client):
|
|||||||
data_json = response.text
|
data_json = response.text
|
||||||
data = json.loads(data_json)
|
data = json.loads(data_json)
|
||||||
for entry in data:
|
for entry in data:
|
||||||
if f"stagione-{season}-episodio-{episode}" in entry["slug"] and f"stagione-{season}-episodio-{episode}0" not in entry["slug"]:
|
if f"stagione-{season}-episodio-{episode}" in entry["slug"] or f"stagione-{season}-episode-{episode}" in entry["slug"]:
|
||||||
|
if f"stagione-{season}-episodio-{episode}0" not in entry["slug"]:
|
||||||
content = entry["content"]["rendered"]
|
content = entry["content"]["rendered"]
|
||||||
#"content":{
|
#"content":{
|
||||||
# "rendered":"<p><!--baslik:PRO--><iframe loading=\"lazy\" src=\"https:\/\/hdplayer.gives\/embed\/YErLVq64uNTZRNz\" frameborder=\"0\" width=\"700\" height=\"400\" allowfullscreen><\/iframe><\/p>\n","protected":false}
|
# "rendered":"<p><!--baslik:PRO--><iframe loading=\"lazy\" src=\"https:\/\/hdplayer.gives\/embed\/YErLVq64uNTZRNz\" frameborder=\"0\" width=\"700\" height=\"400\" allowfullscreen><\/iframe><\/p>\n","protected":false}
|
||||||
@@ -117,7 +118,7 @@ async def test_animeworld():
|
|||||||
from curl_cffi.requests import AsyncSession
|
from curl_cffi.requests import AsyncSession
|
||||||
async with AsyncSession() as client:
|
async with AsyncSession() as client:
|
||||||
# Replace with actual id, for example 'anime_id:episode' format
|
# Replace with actual id, for example 'anime_id:episode' format
|
||||||
test_id = "tt1431045" # This is an example ID format
|
test_id = "tt1190634:4:8" # This is an example ID format
|
||||||
results = await streamingwatch(test_id, client)
|
results = await streamingwatch(test_id, client)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ DDL_DOMAIN = SITE['DDLStream']['domain']
|
|||||||
DLHD_DOMAIN = SITE['DaddyLiveHD']['domain']
|
DLHD_DOMAIN = SITE['DaddyLiveHD']['domain']
|
||||||
GS_DOMAIN = SITE['Guardaserie']['domain']
|
GS_DOMAIN = SITE['Guardaserie']['domain']
|
||||||
GHD_DOMAIN = SITE['GuardaHD']['domain']
|
GHD_DOMAIN = SITE['GuardaHD']['domain']
|
||||||
|
OST_DOMAIN = SITE['Onlineserietv']['domain']
|
||||||
SC = SITE['StreamingCommunity']['enabled']
|
SC = SITE['StreamingCommunity']['enabled']
|
||||||
FT = SITE['Filmpertutti']['enabled']
|
FT = SITE['Filmpertutti']['enabled']
|
||||||
TF = SITE['Tantifilm']['enabled']
|
TF = SITE['Tantifilm']['enabled']
|
||||||
@@ -41,6 +42,7 @@ VX_ForwardProxy = SITE['StreamingCommunity']["VX_ForwardProxy"]
|
|||||||
AW_ForwardProxy = SITE['AnimeWorld']["AW_ForwardProxy"]
|
AW_ForwardProxy = SITE['AnimeWorld']["AW_ForwardProxy"]
|
||||||
MX_ForwardProxy = SITE['CB01']["MX_ForwardProxy"]
|
MX_ForwardProxy = SITE['CB01']["MX_ForwardProxy"]
|
||||||
CB_ForwardProxy = SITE['CB01']["CB_ForwardProxy"]
|
CB_ForwardProxy = SITE['CB01']["CB_ForwardProxy"]
|
||||||
|
OST_ForwardProxy = SITE['Onlineserietv']["OST_ForwardProxy"]
|
||||||
GS_PROXY = SITE['Guardaserie']["GS_PROXY"]
|
GS_PROXY = SITE['Guardaserie']["GS_PROXY"]
|
||||||
GH_PROXY = SITE['GuardaHD']["GH_PROXY"]
|
GH_PROXY = SITE['GuardaHD']["GH_PROXY"]
|
||||||
TF_PROXY = SITE['Tantifilm']["TF_PROXY"]
|
TF_PROXY = SITE['Tantifilm']["TF_PROXY"]
|
||||||
@@ -49,6 +51,7 @@ SC_PROXY = SITE['StreamingCommunity']["SC_PROXY"]
|
|||||||
VX_PROXY = SITE['StreamingCommunity']["VX_PROXY"]
|
VX_PROXY = SITE['StreamingCommunity']["VX_PROXY"]
|
||||||
AW_PROXY = SITE['AnimeWorld']["AW_PROXY"]
|
AW_PROXY = SITE['AnimeWorld']["AW_PROXY"]
|
||||||
MX_PROXY = SITE['CB01']["MX_PROXY"]
|
MX_PROXY = SITE['CB01']["MX_PROXY"]
|
||||||
|
OST_PROXY = SITE['Onlineserietv']["OST_PROXY"]
|
||||||
ips4_device_key = SITE['DDLStream']['cookies']["ips4_device_key"]
|
ips4_device_key = SITE['DDLStream']['cookies']["ips4_device_key"]
|
||||||
ips4_IPSSessionFront = SITE['DDLStream']['cookies']["ips4_IPSSessionFront"]
|
ips4_IPSSessionFront = SITE['DDLStream']['cookies']["ips4_IPSSessionFront"]
|
||||||
ips4_member_id = SITE['DDLStream']['cookies']["ips4_member_id"]
|
ips4_member_id = SITE['DDLStream']['cookies']["ips4_member_id"]
|
||||||
|
|||||||
@@ -855,7 +855,8 @@ extra_sources = {
|
|||||||
"dmax": ["https://tvit.leicaflorianrobert.dev/discovery/dmax/stream.m3u8"],
|
"dmax": ["https://tvit.leicaflorianrobert.dev/discovery/dmax/stream.m3u8"],
|
||||||
"nove": ["https://tvit.leicaflorianrobert.dev/discovery/nove/stream.m3u8"],
|
"nove": ["https://tvit.leicaflorianrobert.dev/discovery/nove/stream.m3u8"],
|
||||||
"euronews": ["https://amg00882-amg00882c4-wedotv-eu-4536.playouts.now.amagi.tv/playlist/amg00882-euronewsfast-euronewsita-wedotveu/playlist.m3u8?app_bundle=&app_name=wedotv&app_store_url=https://wedotv.com&url=https://wedotv.com&gdpr=1&channel_name=Euronews - Italiano&content_custom_1_param=Euronews - Italiano"],
|
"euronews": ["https://amg00882-amg00882c4-wedotv-eu-4536.playouts.now.amagi.tv/playlist/amg00882-euronewsfast-euronewsita-wedotveu/playlist.m3u8?app_bundle=&app_name=wedotv&app_store_url=https://wedotv.com&url=https://wedotv.com&gdpr=1&channel_name=Euronews - Italiano&content_custom_1_param=Euronews - Italiano"],
|
||||||
"doctor-who": ["https://amg00793-amg00793c17-samsung-it-4577.playouts.now.amagi.tv/playlist/amg00793-bbcstudios-drwhoitaly-samsungit/playlist.m3u8"]
|
"doctor-who": ["https://amg00793-amg00793c17-samsung-it-4577.playouts.now.amagi.tv/playlist/amg00793-bbcstudios-drwhoitaly-samsungit/playlist.m3u8"],
|
||||||
|
"supertennis": ["https://live-embed.supertennix.hiway.media/restreamer/supertennix_client/gpu-a-c0-16/restreamer/outgest/h24_supertennix/manifest.m3u8"]
|
||||||
}
|
}
|
||||||
skystreaming ={
|
skystreaming ={
|
||||||
"sky-sport-tennis": f"https://skystreaming.{SKY_DOMAIN}/embed/MKCKP",
|
"sky-sport-tennis": f"https://skystreaming.{SKY_DOMAIN}/embed/MKCKP",
|
||||||
|
|||||||
+10
-4
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"Siti": {
|
"Siti": {
|
||||||
"StreamingCommunity": {
|
"StreamingCommunity": {
|
||||||
"domain": "prof",
|
"domain": "paris",
|
||||||
"SC_ForwardProxy": "0",
|
"SC_ForwardProxy": "0",
|
||||||
"SC_PROXY": "0",
|
"SC_PROXY": "0",
|
||||||
"VX_ForwardProxy": "0",
|
"VX_ForwardProxy": "0",
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
"enabled":"1"
|
"enabled":"1"
|
||||||
},
|
},
|
||||||
"CB01":{
|
"CB01":{
|
||||||
"domain":"sbs",
|
"domain":"media",
|
||||||
"CB_PROXY":"0",
|
"CB_PROXY":"0",
|
||||||
"CB_ForwardProxy":"0",
|
"CB_ForwardProxy":"0",
|
||||||
"MX_ForwardProxy":"0",
|
"MX_ForwardProxy":"0",
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
"enabled":"1"
|
"enabled":"1"
|
||||||
},
|
},
|
||||||
"Guardaserie":{
|
"Guardaserie":{
|
||||||
"domain":"academy",
|
"domain":"mom",
|
||||||
"enabled":"1",
|
"enabled":"1",
|
||||||
"GS_ForwardProxy":"0",
|
"GS_ForwardProxy":"0",
|
||||||
"GS_PROXY":"0"
|
"GS_PROXY":"0"
|
||||||
@@ -59,6 +59,12 @@
|
|||||||
"GH_ForwardProxy":"0",
|
"GH_ForwardProxy":"0",
|
||||||
"GH_PROXY":"0"
|
"GH_PROXY":"0"
|
||||||
},
|
},
|
||||||
|
"Onlineserietv":{
|
||||||
|
"domain":"com",
|
||||||
|
"enabled":"1",
|
||||||
|
"OST_ForwardProxy":"0",
|
||||||
|
"OST_PROXY":"0"
|
||||||
|
},
|
||||||
"AnimeWorld":{
|
"AnimeWorld":{
|
||||||
"domain":"so",
|
"domain":"so",
|
||||||
"enabled":"1",
|
"enabled":"1",
|
||||||
@@ -66,7 +72,7 @@
|
|||||||
"AW_PROXY":"0"
|
"AW_PROXY":"0"
|
||||||
},
|
},
|
||||||
"SkyStreaming":{
|
"SkyStreaming":{
|
||||||
"domain":"my",
|
"domain":"store",
|
||||||
"enabled":"1"
|
"enabled":"1"
|
||||||
},
|
},
|
||||||
"DaddyLiveHD":{
|
"DaddyLiveHD":{
|
||||||
|
|||||||
Reference in New Issue
Block a user