mirror of
https://github.com/stashapp/CommunityScrapers.git
synced 2025-12-11 03:08:29 -06:00
Add scraper for BlackMaleMe (blackmaleme.com) (#1785)
* Create BlackMaleMe.py New python scraper for Black Male Me (blackmaleme.py), using AyloAPI. * Create BlackMaleMe.yml Scene scrapers for Black Male Me (blackmaleme.com). * Update SCRAPERS-LIST.md Added blackmaleme.com to the scrapers list, using BlackMaleMe.yml. * Update SCRAPERS-LIST.md Added Gay tag to blackmaleme.com entry.
This commit is contained in:
parent
646d9eed6a
commit
86aa9e39ec
@ -271,6 +271,7 @@ blacked.com|vixenNetwork.yml|:heavy_check_mark:|:x:|:x:|:x:|Python|-
|
||||
blackedraw.com|vixenNetwork.yml|:heavy_check_mark:|:x:|:x:|:x:|Python|-
|
||||
blackfoxbound.net|Shopmaker.yml|:heavy_check_mark:|:x:|:x:|:x:|-|-
|
||||
blackgodz.com|PaperStreetMedia.yml|:heavy_check_mark:|:x:|:x:|:x:|-|Gay
|
||||
blackmaleme.com|BlackMaleMe.yml|:heavy_check_mark:|:x:|:x:|:x:|Python|Gay
|
||||
blackmarketxxx.com|CombatZone.yml|:heavy_check_mark:|:x:|:x:|:x:|-|-
|
||||
blackmassivecocks.com|AdultEmpireCash.yml|:heavy_check_mark:|:x:|:heavy_check_mark:|:x:|-|-
|
||||
blackmeatwhitefeet.com|Dogfartnetwork.yml|:heavy_check_mark:|:x:|:x:|:heavy_check_mark:|Python|-
|
||||
|
||||
37
scrapers/BlackMaleMe/BlackMaleMe.py
Normal file
37
scrapers/BlackMaleMe/BlackMaleMe.py
Normal file
@ -0,0 +1,37 @@
|
||||
import json
|
||||
import sys
|
||||
from typing import Any
|
||||
from py_common import log
|
||||
from py_common.util import replace_at
|
||||
from AyloAPI.scrape import (
|
||||
scraper_args,
|
||||
scene_from_url,
|
||||
scene_search,
|
||||
scene_from_fragment,
|
||||
)
|
||||
|
||||
|
||||
def blackmaleme(obj: Any, _) -> Any:
|
||||
# Flatten all studios to just "Black Male Me"
|
||||
return replace_at(obj, "studio", replacement=lambda _: {"name": "Black Male Me"})
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
domains = ["blackmaleme"]
|
||||
op, args = scraper_args()
|
||||
result = None
|
||||
|
||||
match op, args:
|
||||
case "scene-by-url", {"url": url} if url:
|
||||
result = scene_from_url(url, postprocess=blackmaleme)
|
||||
case "scene-by-name", {"name": name} if name:
|
||||
result = scene_search(name, search_domains=domains, postprocess=blackmaleme)
|
||||
case "scene-by-fragment" | "scene-by-query-fragment", args:
|
||||
result = scene_from_fragment(
|
||||
args, search_domains=domains, postprocess=blackmaleme
|
||||
)
|
||||
case _:
|
||||
log.error(f"Operation: {op}, arguments: {json.dumps(args)}")
|
||||
sys.exit(1)
|
||||
|
||||
print(json.dumps(result))
|
||||
30
scrapers/BlackMaleMe/BlackMaleMe.yml
Normal file
30
scrapers/BlackMaleMe/BlackMaleMe.yml
Normal file
@ -0,0 +1,30 @@
|
||||
name: BlackMaleMe
|
||||
# requires: py_common, AyloAPI
|
||||
# scrapes: BlackMaleMe (blackmaleme.com)
|
||||
sceneByURL:
|
||||
- action: script
|
||||
url:
|
||||
- blackmaleme.com/scene/
|
||||
script:
|
||||
- python
|
||||
- BlackMaleMe.py
|
||||
- scene-by-url
|
||||
sceneByFragment:
|
||||
action: script
|
||||
script:
|
||||
- python
|
||||
- BlackMaleMe.py
|
||||
- scene-by-fragment
|
||||
sceneByName:
|
||||
action: script
|
||||
script:
|
||||
- python
|
||||
- BlackMaleMe.py
|
||||
- scene-by-name
|
||||
sceneByQueryFragment:
|
||||
action: script
|
||||
script:
|
||||
- python
|
||||
- BlackMaleMe.py
|
||||
- scene-by-query-fragment
|
||||
# Last Updated April 25, 2024
|
||||
Loading…
x
Reference in New Issue
Block a user