diff --git a/SCRAPERS-LIST.md b/SCRAPERS-LIST.md index 0ab41ad11..fb44df26d 100644 --- a/SCRAPERS-LIST.md +++ b/SCRAPERS-LIST.md @@ -1507,7 +1507,7 @@ samuelotoole.com|NextDoorStudios.yml|:heavy_check_mark:|:heavy_check_mark:|:x:|: sapphicerotica.com|sapphix.yml|:heavy_check_mark:|:x:|:x:|:x:|-|- sapphix.com|sapphix.yml|:heavy_check_mark:|:x:|:x:|:x:|-|- sarajay.com|VNAGirls.yml|:heavy_check_mark:|:x:|:x:|:x:|-|- -sayuncle.com|Sayuncle.yml|:heavy_check_mark:|:x:|:x:|:x:|-|Gay +sayuncle.com|Teamskeet.yml|:heavy_check_mark:|:x:|:x:|:x:|Python|-Gay scarybigdicks.com|Hustler.yml|:heavy_check_mark:|:x:|:x:|:x:|CDP|- schoolgirlshd.com|Jhdv.yml|:heavy_check_mark:|:x:|:x:|:x:|-|JAV Uncensored schoolpov.com|ItsPOV.yml|:heavy_check_mark:|:x:|:x:|:x:|CDP|- diff --git a/scrapers/Teamskeet/Teamskeet.yml b/scrapers/Teamskeet/Teamskeet.yml index 52cd9f6a6..9994a7e62 100644 --- a/scrapers/Teamskeet/Teamskeet.yml +++ b/scrapers/Teamskeet/Teamskeet.yml @@ -3,9 +3,11 @@ name: Teamskeet sceneByURL: - url: + - sayuncle.com/movies/ - teamskeet.com/movies/ + - mylf.com/movies/ action: script script: - python - TeamskeetAPI.py -# Last Updated March 04, 2024 +# Last Updated March 07, 2024 diff --git a/scrapers/Teamskeet/TeamskeetAPI.py b/scrapers/Teamskeet/TeamskeetAPI.py index 10abbaea9..4a3f69c68 100644 --- a/scrapers/Teamskeet/TeamskeetAPI.py +++ b/scrapers/Teamskeet/TeamskeetAPI.py @@ -44,10 +44,25 @@ def save_json(api_json, url): log.error('You need to set the URL (e.g. teamskeet.com/movies/*****)') sys.exit(1) -if "teamskeet.com/movies/" not in scene_url: - log.error('The URL is not from a Teamskeet URL (e.g. teamskeet.com/movies/*****)') + +# Check the URL and set the API URL +if 'sayuncle.com' in scene_url: + ORIGIN = 'https://www.sayuncle.com' + REFERER = 'https://www.sayuncle.com/' + API_BASE = 'https://store2.psmcdn.net/sau-elastic-00gy5fg5ra-videoscontent/_doc/' +elif 'teamskeet.com' in scene_url: + ORIGIN = 'https://www.teamskeet.com' + REFERER = 'https://www.teamskeet.com/' + API_BASE = 'https://store2.psmcdn.net/ts-elastic-d5cat0jl5o-videoscontent/_doc/' +elif 'mylf.com' in scene_url: + ORIGIN = 'https://www.mylf.com' + REFERER = 'https://www.mylf.com/' + API_BASE = 'https://store2.psmcdn.net/mylf-elastic-hka5k7vyuw-videoscontent/_doc/' +else: + log.error('The URL is not from a Teamskeet, MYLF or SayUncle URL (e.g. teamskeet.com/movies/*****)') sys.exit(1) + scene_id = re.sub('.+/', '', scene_url) if not scene_id: log.error("Error with the ID ({})\nAre you sure that the end of your URL is correct ?".format(scene_id)) @@ -61,11 +76,11 @@ def save_json(api_json, url): scene_api_json = json.load(json_file) else: log.debug("Asking the API...") - api_url = f"https://store2.psmcdn.net/ts-elastic-d5cat0jl5o-videoscontent/_doc/{scene_id}" + api_url = f"{API_BASE}{scene_id}" headers = { 'User-Agent': USER_AGENT, - 'Origin': 'https://www.teamskeet.com', - 'Referer': 'https://www.teamskeet.com/' + 'Origin': ORIGIN, + 'Referer': REFERER } scraper = cloudscraper.create_scraper() # Send to the API @@ -114,10 +129,15 @@ def save_json(api_json, url): for x in scene_api_json.get('models')] scrape['tags'] = [{"name": x} for x in scene_api_json.get('tags')] scrape['image'] = scene_api_json.get('img') -high_res = scene_api_json.get('img').replace('shared/med', 'members/full') -log.debug(f"Image before: {scrape['image']}") -log.debug(f"Image after: {high_res}") -scrape['image'] = high_res +# Highres is not working with sayuncle.com at the moment +if 'sayuncle.com' not in scene_url: + high_res = scene_api_json.get('img').replace('shared/med', 'members/full') + log.debug(f"Image before: {scrape['image']}") + log.debug(f"Image after: {high_res}") + scrape['image'] = high_res +# If the scene is from sayuncle.com, we need to add the gay tag to the tags list +if 'sayuncle.com' in scene_url: + scrape['tags'].append({"name": "Gay"}) if use_local == 0: save_json(scene_api_json, scene_url)