Skip to content

Commit 8e2b818

Browse files
committed
Fix image scraping for OnlyTarts
Have to grab this from their script tag instead since they're using more JavaScript Incidentally fixed details scraping to omit the 'Read less' text
1 parent 6ad7c50 commit 8e2b818

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scrapers/OnlyTarts.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ xPathScrapers:
88
sceneScraper:
99
scene:
1010
Title: //h1[@class="video-detail__title"]
11-
Details: //div[@data-id="description" and @class="hidden"]
11+
Details: //div[@data-id="description" and @class="hidden"]/text()
1212
Date:
1313
selector: //div[@class="video-info__time"]
1414
postProcess:
@@ -17,10 +17,10 @@ xPathScrapers:
1717
with: $1
1818
- parseDate: 2 January, 2006
1919
Image:
20-
selector: //div[@class="xp-poster"]/@style
20+
selector: //script[contains(., "pluginSettings")]/text()
2121
postProcess:
2222
- replace:
23-
- regex: .*url\("(.*)"\)
23+
- regex: .*url":\s*"(.*poster[^"]*).*$
2424
with: $1
2525
Studio:
2626
Name:
@@ -30,4 +30,4 @@ xPathScrapers:
3030
Performers:
3131
Name: //div[contains(@class, "video-info")]//a[contains(@href, "/model")]/text()
3232
URL: //div[contains(@class, "video-info")]//a[contains(@href, "/model")]/@href
33-
# Last Updated August 25, 2023
33+
# Last Updated September 10, 2023

0 commit comments

Comments
 (0)