Skip to content

Commit

Permalink
Added PerformerScraper to AdultEmpire (stashapp#1556)
Browse files Browse the repository at this point in the history
* Added PerformerScraper to AdultEmpire
  • Loading branch information
AshoPash authored Dec 8, 2023
1 parent c43b9b2 commit 6c1b268
Showing 1 changed file with 48 additions and 2 deletions.
50 changes: 48 additions & 2 deletions scrapers/AdultEmpire.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ sceneByQueryFragment:
action: scrapeXPath
queryURL: "{url}"
scraper: sceneScraper

performerByURL:
-
action: scrapeXPath
url:
- adultdvdempire.com
- adultempire.com
scraper: performerScraper

xPathScrapers:
sceneSearch:
Expand Down Expand Up @@ -102,4 +108,44 @@ xPathScrapers:
- regex: ^
with: "https://www.adultdvdempire.com"
URL: //meta[@name='og:url']/@content
# Last Updated October 09, 2023
performerScraper:
common:
$infoPiece: //*[@id="profileModal"]/div/div/div[2]/div[1]/ul
performer:
Name: //*[@id="content"]/section/div/div[2]/h1/text()
Birthdate:
selector: $infoPiece/li[contains(text(), 'Born:')]/text()
postProcess:
- replace:
- regex: Born:\s+(.*)
with: $1
Height:
selector: $infoPiece/li[contains(text(), 'Height:')]/text()
postProcess:
- replace:
- regex: Height:\s+(.*)
with: $1
- feetToCm: true
Image: //*[@id="content"]/section/div/div[1]/a[1]|/img/@src|//*[@id="content"]/section/div/div[1]/img/@src
Country:
selector: $infoPiecel/li[contains(text(), 'From:')]/text()
postProcess:
- replace:
- regex: From:\s+(.*)
with: $1
Measurements:
selector: $infoPiece/li[contains(text(), 'Measurements:')]/text()
postProcess:
- replace:
- regex: Measurements:\s+(\d\d\w*)\D+(\d+)\D+(\d+).*
with: $1-$2-$3
Aliases:
selector: //*[@id="content"]/section/div/div[2]/div[contains(text(), "Alias:")]
concat: ", "
postProcess:
- replace:
- regex: "Alias: (.*)"
with: $1
Details: //*[@id="content"]/section/div/div[5]/aside/text()
URL: //link[@rel='canonical']/@href
# Last Updated December 07, 2023

0 comments on commit 6c1b268

Please sign in to comment.