Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scene and performer scrapers for ModelMediaAsia #2070

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 90 additions & 0 deletions scrapers/ModelMediaAsia.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
name: "ModelMediaAsia"
sceneByURL:
- action: scrapeXPath
url:
- modelmediaasia.com
scraper: sceneScraper

sceneByFragment:
action: scrapeXPath
queryURL: https://modelmediaasia.com/zh-CN/videos/{filename}
queryURLReplace:
# Assume beginning part contains the code
filename:
# Get the beginning part before the space
- regex: ^(\S+).*
with: $1
scraper: sceneScraper

performerByURL:
- action: scrapeXPath
url:
- modelmediaasia.com
scraper: performerScraper

xPathScrapers:
sceneScraper:
scene:
Title: //*[@id="__nuxt"]/main/div/div[2]/div/div/div/div[1]/div/div[1]/div[1]/h2/text()
Date:
# Some text may be in front of the date
selector: //*[@id="__nuxt"]/main/div/div[2]/div/div/div/div[1]/div/div[1]/div[3]/span/text()
postProcess:
- replace:
- regex: '.*(\d{4}/\d{1,2}/\d{1,2})'
with: $1
- parseDate: 2006/01/02
Details:
selector: //*[@id="description-01"]/div/p/text()
Performers:
Name: //*[@id="__nuxt"]/main/div/div[2]/div/div/div/div[3]/div/ul/li/a/div[2]/h6]/text()
# Directly set URL doesn't work?
Details:
selector: //*[@id="__nuxt"]/main/div/div[2]/div/div/div/div[3]/div/ul/li/a/@href
postProcess:
- replace:
- regex: ^
with: https://modelmediaasia.com
Studio:
Name:
fixed: "Model Media"
Tags:
Name: //li[@class="p-1 px-3"]/a[@class="title"]/text()
Image: //*[@id="__nuxt"]/main/div/div[1]/div/div/div/div/div[2]/img/@src
URL:
selector: //*[@id="__nuxt"]/main/div/div[2]/div/div/div/div[1]/div/div[1]/div[2]/a/text()
postProcess:
- replace:
- regex: ^
with: https://modelmediaasia.com/zh-CN/videos/
Code: //*[@id="__nuxt"]/main/div/div[2]/div/div/div/div[1]/div/div[1]/div[2]/a/text()
performerScraper:
performer:
Name: //*[@id="__nuxt"]/main/div/div/div/div[2]/div[1]/h4/text()
Gender:
fixed: Female
Ethnicity:
fixed: Asian
Country:
fixed: Taiwan
Height:
selector: //*[@id="__nuxt"]/main/div/div/div/div[1]/div[2]/p[1]/text()
postProcess:
- replace:
- regex: '(\d+)\D+cm'
with: $1
Weight:
selector: //*[@id="__nuxt"]/main/div/div/div/div[1]/div[2]/p[2]/text()
postProcess:
- replace:
- regex: '(\d+)\D+kg'
with: $1
Measurements:
selector: //*[@id="__nuxt"]/main/div/div/div/div[1]/div[2]/p[3]/text()
postProcess:
- replace:
- regex: '\s+(\d\d\w*)\D+(\d+)\D+(\d+)'
with: $1-$2-$3
Image: //*[@id="__nuxt"]/main/div/div/div/div[1]/img/@src
URL: //link[@rel='canonical']/@href
# Last Updated October 17, 2024