bnkai

ThePornDB_title

Nov 25th, 2020 (edited)
599
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. name: ThePornDB_title
  2. performerByName:
  3.   action: scrapeJson
  4.   queryURL: https://api.metadataapi.net/performers?q={}
  5.   scraper: performerSearch
  6. performerByURL:
  7.   - action: scrapeJson
  8.     url:
  9.      - https://api.metadataapi.net/performers/
  10.     scraper: performerScraper
  11. sceneByURL:
  12.   - action: scrapeJson
  13.     url:
  14.      - https://api.metadataapi.net/scenes/
  15.     scraper: sceneScraper
  16. sceneByFragment:
  17.   action: scrapeJson
  18.   queryURL: https://api.metadataapi.net/scenes?parse={title}&hash={oshash}&limit=1
  19.   scraper: sceneQueryScraper
  20.   queryURLReplace:
  21.     title:
  22.       - regex: "[^a-zA-Z\\d\\-._~]" # clean filename so that it can contruct a valid url
  23.         with: "." # "%20"
  24. jsonScrapers:
  25.   performerSearch:
  26.     performer:
  27.       Name: data.#.name
  28.       URL:
  29.         selector: data.#.id
  30.         postProcess:
  31.           - replace:
  32.               - regex: ^
  33.                 with: https://api.metadataapi.net/performers/
  34.  
  35.   performerScraper:
  36.     common:
  37.       $extras: data.extras
  38.     performer:
  39.       Name: data.name
  40.       Gender: $extras.gender
  41.       Birthdate: $extras.birthday
  42.       Ethnicity: $extras.ethnicity
  43.       Height:
  44.         selector: $extras.height
  45.         postProcess:
  46.           - replace:
  47.               - regex: cm
  48.                 with:
  49.       Measurements: $extras.measurements
  50.       Tattoos: $extras.tattoos
  51.       Piercings: $extras.piercings
  52.       Aliases: data.aliases
  53.       Image: data.image
  54.  
  55.   sceneScraper:
  56.     common:
  57.       $performers: data.performers
  58.     scene:
  59.       Title: data.title
  60.       Details: data.description
  61.       Date: data.date
  62.       URL: data.url
  63.       Image: data.background.small
  64.       Performers:
  65.         Name: data.performers.#.name
  66.       Studio:
  67.         Name: data.site.name
  68.       Tags:
  69.         Name: data.tags.#.tag
  70.  
  71.   sceneQueryScraper:
  72.     common:
  73.       $data: data.0
  74.       $performers: data.0.performers
  75.     scene:
  76.       Title: $data.title
  77.       Details: $data.description
  78.       Date: $data.date
  79.       URL: $data.url
  80.       Image: $data.background.small
  81.       Performers:
  82.         Name: $data.performers.#.name
  83.       Studio:
  84.         Name: $data.site.name
  85.       Tags:
  86.         Name: $data.tags.#.tag
  87. # Last Updated November 20, 2020
  88.  
RAW Paste Data