Skip to content

Commit

Permalink
Merge pull request #18 from gimmeliina/teamskeet
Browse files Browse the repository at this point in the history
Teamskeet
  • Loading branch information
gimmeliina authored Apr 9, 2024
2 parents 4474485 + 3f02b97 commit afba882
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 11 deletions.
2 changes: 1 addition & 1 deletion SCRAPERS-LIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -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|-
Expand Down
4 changes: 3 additions & 1 deletion scrapers/Teamskeet/Teamskeet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
38 changes: 29 additions & 9 deletions scrapers/Teamskeet/TeamskeetAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit afba882

Please sign in to comment.