Fix GS Domain, Fix AW Scraper, Fix SWa scraper for some series, Updated config

This commit is contained in:
UrloMythus
2025-02-04 19:04:08 +01:00 Unverified
parent 5f1823525e
commit 7b9b9f28d4
5 changed files with 28 additions and 21 deletions
+4 -8
View File
@@ -47,16 +47,12 @@ showname_replace = {
"-": ""
}
async def security_cookie (response):
if "SecurityAW-gl" in 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"
match = re.search(r'SecurityAW-([A-Za-z0-9]{2})=([^;]+)', response.text)
if match:
Security_Cookie = match.group(1).strip()
unknown_chars = match.group(1).strip()
Security_Cookie = match.group(2).strip()
cookies = {
f"SecurityAW-{characters}": Security_Cookie
f"SecurityAW-{unknown_chars}": Security_Cookie
}
return cookies
async def get_mp4(anime_url,ismovie,episode,client):
+9 -8
View File
@@ -50,7 +50,7 @@ async def search(showname,season,episode,date,ismovie,client):
if date == page_date:
href = temp_href['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'))
iframe = soup.find('iframe')
hdplayer = iframe.get('data-lazy-src')
@@ -66,14 +66,15 @@ async def search(showname,season,episode,date,ismovie,client):
data_json = response.text
data = json.loads(data_json)
for entry in data:
if f"stagione-{season}-episodio-{episode}" in entry["slug"] and f"stagione-{season}-episodio-{episode}0" not in entry["slug"]:
content = entry["content"]["rendered"]
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":{
# "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}
start = content.find('src="') + len('src="') #start of url
end = content.find('"', start) #end of url
hdplayer = content[start:end]
return hdplayer
start = content.find('src="') + len('src="') #start of url
end = content.find('"', start) #end of url
hdplayer = content[start:end]
return hdplayer
async def hls_url(hdplayer,client):
response = await client.get(hdplayer, allow_redirects=True, impersonate = "chrome120")
match = re.search(r'sources:\s*\[\s*\{\s*file\s*:\s*"([^"]*)"', response.text)
@@ -117,7 +118,7 @@ async def test_animeworld():
from curl_cffi.requests import AsyncSession
async with AsyncSession() as client:
# 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)
if __name__ == "__main__":
+3
View File
@@ -20,6 +20,7 @@ DDL_DOMAIN = SITE['DDLStream']['domain']
DLHD_DOMAIN = SITE['DaddyLiveHD']['domain']
GS_DOMAIN = SITE['Guardaserie']['domain']
GHD_DOMAIN = SITE['GuardaHD']['domain']
OST_DOMAIN = SITE['Onlineserietv']['domain']
SC = SITE['StreamingCommunity']['enabled']
FT = SITE['Filmpertutti']['enabled']
TF = SITE['Tantifilm']['enabled']
@@ -41,6 +42,7 @@ VX_ForwardProxy = SITE['StreamingCommunity']["VX_ForwardProxy"]
AW_ForwardProxy = SITE['AnimeWorld']["AW_ForwardProxy"]
MX_ForwardProxy = SITE['CB01']["MX_ForwardProxy"]
CB_ForwardProxy = SITE['CB01']["CB_ForwardProxy"]
OST_ForwardProxy = SITE['Onlineserietv']["OST_ForwardProxy"]
GS_PROXY = SITE['Guardaserie']["GS_PROXY"]
GH_PROXY = SITE['GuardaHD']["GH_PROXY"]
TF_PROXY = SITE['Tantifilm']["TF_PROXY"]
@@ -49,6 +51,7 @@ SC_PROXY = SITE['StreamingCommunity']["SC_PROXY"]
VX_PROXY = SITE['StreamingCommunity']["VX_PROXY"]
AW_PROXY = SITE['AnimeWorld']["AW_PROXY"]
MX_PROXY = SITE['CB01']["MX_PROXY"]
OST_PROXY = SITE['Onlineserietv']["OST_PROXY"]
ips4_device_key = SITE['DDLStream']['cookies']["ips4_device_key"]
ips4_IPSSessionFront = SITE['DDLStream']['cookies']["ips4_IPSSessionFront"]
ips4_member_id = SITE['DDLStream']['cookies']["ips4_member_id"]
+2 -1
View File
@@ -855,7 +855,8 @@ extra_sources = {
"dmax": ["https://tvit.leicaflorianrobert.dev/discovery/dmax/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"],
"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 ={
"sky-sport-tennis": f"https://skystreaming.{SKY_DOMAIN}/embed/MKCKP",
+10 -4
View File
@@ -1,7 +1,7 @@
{
"Siti": {
"StreamingCommunity": {
"domain": "prof",
"domain": "paris",
"SC_ForwardProxy": "0",
"SC_PROXY": "0",
"VX_ForwardProxy": "0",
@@ -30,7 +30,7 @@
"enabled":"1"
},
"CB01":{
"domain":"sbs",
"domain":"media",
"CB_PROXY":"0",
"CB_ForwardProxy":"0",
"MX_ForwardProxy":"0",
@@ -48,7 +48,7 @@
"enabled":"1"
},
"Guardaserie":{
"domain":"academy",
"domain":"mom",
"enabled":"1",
"GS_ForwardProxy":"0",
"GS_PROXY":"0"
@@ -59,6 +59,12 @@
"GH_ForwardProxy":"0",
"GH_PROXY":"0"
},
"Onlineserietv":{
"domain":"com",
"enabled":"1",
"OST_ForwardProxy":"0",
"OST_PROXY":"0"
},
"AnimeWorld":{
"domain":"so",
"enabled":"1",
@@ -66,7 +72,7 @@
"AW_PROXY":"0"
},
"SkyStreaming":{
"domain":"my",
"domain":"store",
"enabled":"1"
},
"DaddyLiveHD":{