name: trafficpimps
sceneByURL:
  - action: scrapeXPath
    url:
      - wildoncam.com/
    scraper: wildOnCamsScraper
xPathScrapers:
  wildOnCamsScraper:
    common:
      $infoblock: //div[@class="info-block"]
      $infodata: //div[@class="info-block_data"]
    scene:
      Title:
        selector: //h1[@class="trailer-block_title"]
        postProcess:
          - replace:
              - regex: "LIVE$"
                with: ""
      Date:
        selector: $infodata/p[@class="text"][1]/text()
        postProcess:
          - replace:
              - regex: (\w+\s)(\w+)(\s)(\d{1,2})(.+)(\d{4})(.+)
                with: $2 $4 $6
          - parseDate: January 2 2006
      Details: $infoblock/p[@class="text"][1]/text()
      Tags:
        Name: $infoblock/p[contains(text(), 'Categories:')]/a
      Performers:
        Name: $infodata/p[contains(text(), 'Featuring:')]/a
      Studio:
        Name:
          fixed: Wild on Cam
      Image:
        selector: //script[contains(., "contentthumbs")]/text()|//img[@class="lazyload update_thumb thumbs stdimage"]/@src
        postProcess:
          - replace:
              - regex: (.+)(https.+contentthumbs.+)(" width="100%)(.+)
                with: $2
# Last Updated June 27, 2022
