name: Cospuri
sceneByURL:
  - action: scrapeXPath
    url:
      - cospuri.com/sample
    scraper: sceneScraper
performerByURL:
  - action: scrapeXPath
    url:
      - cospuri.com/model/
    scraper: performerScraper
xPathScrapers:
  sceneScraper:
    scene:
      Title:
        selector: //div[@class="player fp-slim fp-edgy fp-mute"]/@style|//div[@class="sample-model"]
        concat: ": "
        postProcess:
          - replace:
              - regex: .*?https?:.+preview/(\d+).{4}/scene.+\.jpg.*(:.+)
                with: $1$2
              - regex: ^0
                with:
              - regex: ^
                with: "Cospuri #"
      Date:
        selector: //div[@class="date"]
        postProcess:
          - replace:
              - regex: ^(\d+)\D*(\d+)\D*(\d\d)$
                with: $1-$2-$3
          - parseDate: 2006-01-02
      Performers:
        Name: //div[@class="sample-model"]/a
        URL:
          selector: //div[@class="sample-model"]/a/@href
          postProcess:
            - replace:
                - regex: ^
                  with: https://www.cospuri.com
      Tags:
        Name: //a[@class="tag"]
      Details:
        selector: //div[@class="description"]
      Image:
        selector: //div[@class="player fp-slim fp-edgy fp-mute"]/@style
        postProcess:
          - replace:
              - regex: .*?(https?:\/\/\S*\.jpg).*
                with: $1
      Studio:
        Name:
          fixed: Cospuri
  performerScraper:
    performer:
      Name: //div[@class="name-en"]
      Country: //div[@class='item country']//span
      Height:
        selector: //div[@class='item height']//span
        postProcess:
          - replace:
              - regex: (\d+)(\D+)?
                with: $1
      Measurements: //div[@class='item measurements']//span
      Details: //div[@class="model-detail"]//p
      Image:
        selector: //div[@class='model-costume']/@style
        postProcess:
          - replace:
              - regex: (background:url\()(.+)(?:\).+)
                with: $2
      Gender:
        fixed: Female
# Last Updated August 06, 2022
