This commit is contained in:
Christoph Califice
2025-10-09 20:05:31 -03:00
parent ed22ef22bc
commit 0a5f88d75a
1442 changed files with 101562 additions and 0 deletions

View File

@@ -0,0 +1,76 @@
import json
import sys
from typing import Any
from py_common import log
from py_common.util import dig, replace_all, replace_at
from AyloAPI.scrape import (
gallery_from_url,
scraper_args,
scene_from_url,
scene_search,
scene_from_fragment,
performer_from_url,
performer_from_fragment,
performer_search,
movie_from_url,
)
studio_map = {
"lpi": "Let's Post It",
"Lets Try Anal": "Let's Try Anal",
}
def mofos(obj: Any, _) -> Any:
# Rename certain studios according to the map
fixed = replace_at(
obj, "studio", "name", replacement=lambda x: studio_map.get(x, x)
)
domain = None
match dig(fixed, "studio", "name"):
case "I Know That Girl":
domain = "iknowthatgirl.com"
case _:
domain = "mofos.com"
fixed = replace_all(
fixed,
"url",
lambda x: x.replace("mofos.com", domain),
)
return fixed
if __name__ == "__main__":
domains = [
"mofos",
]
op, args = scraper_args()
result = None
match op, args:
case "gallery-by-url" | "gallery-by-fragment", {"url": url} if url:
result = gallery_from_url(url, postprocess=mofos)
case "scene-by-url", {"url": url} if url:
result = scene_from_url(url, postprocess=mofos)
case "scene-by-name", {"name": name} if name:
result = scene_search(name, search_domains=domains, postprocess=mofos)
case "scene-by-fragment" | "scene-by-query-fragment", args:
result = scene_from_fragment(
args, search_domains=domains, postprocess=mofos
)
case "performer-by-url", {"url": url}:
result = performer_from_url(url, postprocess=mofos)
case "performer-by-fragment", args:
result = performer_from_fragment(args)
case "performer-by-name", {"name": name} if name:
result = performer_search(name, search_domains=domains, postprocess=mofos)
case "movie-by-url", {"url": url} if url:
result = movie_from_url(url, postprocess=mofos)
case _:
log.error(f"Operation: {op}, arguments: {json.dumps(args)}")
sys.exit(1)
print(json.dumps(result))

View File

@@ -0,0 +1,94 @@
name: Mofos
# requires: py_common, AyloAPI
# scrapes: Busted Babysitters, Don't Break Me, Drone Hunter, Girls Gone Pink, I Know That Girl, In Gang We Bang, Latina Sex Tapes, Let's Post It, Let's Try Anal, Milfs Like It Black, Mofos B Sides, MOFOS Lab, Mofos World Wide, Pervs On Patrol, Pornstar Vote, Project RV, Pubic Pickups, Real Slut Party, Share My BF, She's A Freak, Stranded Teens, The Sex Scout
galleryByURL:
- action: script
url:
- mofos.com/scene/
- mofosnetwork.com/scene/
- iknowthatgirl.com/scene/
- publicagent.com/scene/
- letstryanal.com/scene/
script:
- python
- Mofos.py
- gallery-by-url
galleryByFragment:
action: script
script:
- python
- Mofos.py
- gallery-by-fragment
sceneByURL:
- action: script
url:
- mofos.com/scene/
- mofosnetwork.com/scene/
- iknowthatgirl.com/scene/
- publicagent.com/scene/
- letstryanal.com/scene/
script:
- python
- Mofos.py
- scene-by-url
sceneByFragment:
action: script
script:
- python
- Mofos.py
- scene-by-fragment
sceneByName:
action: script
script:
- python
- Mofos.py
- scene-by-name
sceneByQueryFragment:
action: script
script:
- python
- Mofos.py
- scene-by-query-fragment
performerByName:
action: script
script:
- python
- Mofos.py
- performer-by-name
performerByURL:
- action: script
url:
- mofos.com/model/
- mofosnetwork.com/model/
- iknowthatgirl.com/model/
- publicagent.com/model/
- letstryanal.com/model/
script:
- python
- Mofos.py
- performer-by-url
performerByFragment:
action: script
script:
- python
- Mofos.py
- performer-by-fragment
movieByURL:
- action: script
url:
- mofos.com/movie/
- mofosnetwork.com/movie/
- iknowthatgirl.com/movie/
- publicagent.com/movie/
- letstryanal.com/movie/
# Since scenes link to the movie we can scrape movies from scenes
- mofos.com/scene/
- mofosnetwork.com/scene/
- iknowthatgirl.com/scene/
- publicagent.com/scene/
- letstryanal.com/scene/
script:
- python
- Mofos.py
- movie-by-url
# Last Updated January 14, 2024

View File

@@ -0,0 +1,10 @@
id: Mofos
name: Mofos
metadata: {}
version: c2abfdf
date: "2024-02-03 17:45:33"
requires: []
source_repository: https://stashapp.github.io/CommunityScrapers/stable/index.yml
files:
- Mofos.py
- Mofos.yml