Skip to content

Commit

Permalink
Fix image scraping for OnlyTarts
Browse files Browse the repository at this point in the history
Have to grab this from their script tag instead since they're using more JavaScript
  • Loading branch information
MaxJohansen committed Sep 10, 2023
1 parent 6ad7c50 commit 48ab227
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scrapers/OnlyTarts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ xPathScrapers:
sceneScraper:
scene:
Title: //h1[@class="video-detail__title"]
Details: //div[@data-id="description" and @class="hidden"]
Details: //div[@data-id="description" and @class="hidden"]/text()
Date:
selector: //div[@class="video-info__time"]
postProcess:
Expand All @@ -17,10 +17,10 @@ xPathScrapers:
with: $1
- parseDate: 2 January, 2006
Image:
selector: //div[@class="xp-poster"]/@style
selector: //script[contains(., "pluginSettings")]/text()
postProcess:
- replace:
- regex: .*url\("(.*)"\)
- regex: .*url":\s*"(.*poster[^"]*).*$
with: $1
Studio:
Name:
Expand All @@ -30,4 +30,4 @@ xPathScrapers:
Performers:
Name: //div[contains(@class, "video-info")]//a[contains(@href, "/model")]/text()
URL: //div[contains(@class, "video-info")]//a[contains(@href, "/model")]/@href
# Last Updated August 25, 2023
# Last Updated September 10, 2023

0 comments on commit 48ab227

Please sign in to comment.