Skip to content

Commit 0420216

Browse files
authored
Merge pull request #2212 from stashapp/update-scraper-templates
Add/update xpath scraper templates
2 parents 7fab14e + c9104e9 commit 0420216

5 files changed

+120
-5
lines changed

templates/GalleryScraperTemplate.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Example gallery scraper
2+
galleryByURL:
3+
- action: scrapeXPath
4+
url:
5+
- example.com
6+
scraper: galleryScraper
7+
xPathScrapers:
8+
galleryScraper:
9+
gallery:
10+
Title:
11+
Code:
12+
Details:
13+
Photographer:
14+
URLs:
15+
Date:
16+
selector:
17+
postProcess:
18+
- parseDate: January 2, 2006
19+
Studio:
20+
Name:
21+
Tags:
22+
Name:
23+
Performers:
24+
Name:
25+
# Last Updated February XX, 2025

templates/GroupScraperTemplate.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Example group scraper
2+
groupByURL:
3+
- action: scrapeXPath
4+
url:
5+
- example.com
6+
scraper: groupScraper
7+
xPathScrapers:
8+
groupScraper:
9+
group:
10+
Name:
11+
Aliases:
12+
Duration:
13+
Date:
14+
selector:
15+
postProcess:
16+
- parseDate: January 2, 2006
17+
Director:
18+
URLs:
19+
Synopsis:
20+
Studio:
21+
Name:
22+
Tags:
23+
Name:
24+
FrontImage:
25+
BackImage:
26+
# Last Updated February XX, 2025

templates/ImageScraperTemplate.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Example image scraper
2+
imageByURL:
3+
- action: scrapeXPath
4+
url:
5+
- example.com
6+
scraper: imageScraper
7+
xPathScrapers:
8+
imageScraper:
9+
image:
10+
Title:
11+
Code:
12+
Details:
13+
Photographer:
14+
URLs:
15+
Date:
16+
selector:
17+
postProcess:
18+
- parseDate: January 2, 2006
19+
Studio:
20+
Name:
21+
Tags:
22+
Name:
23+
Performers:
24+
Name:
25+
# Last Updated February XX, 2025
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Example performer scraper
2+
performerByURL:
3+
- action: scrapeXPath
4+
url:
5+
- example.com
6+
scraper: performerScraper
7+
xPathScrapers:
8+
performerScraper:
9+
performer:
10+
Name:
11+
Disambiguation:
12+
# Gender only accepts the following case insensitive values: male, female, transgender_male, transgender_female, intersex, non_binary.
13+
Gender:
14+
URLs:
15+
Birthdate:
16+
selector:
17+
postProcess:
18+
- parseDate: January 2, 2006
19+
Ethnicity:
20+
Country:
21+
EyeColor:
22+
Height:
23+
Measurements:
24+
FakeTits:
25+
PenisLength:
26+
Circumcised:
27+
CareerLength:
28+
Tattoos:
29+
Piercings:
30+
Aliases:
31+
Details:
32+
DeathDate:
33+
selector:
34+
postProcess:
35+
- parseDate: January 2, 2006
36+
HairColor:
37+
Weight:
38+
# Last Updated February XX, 2025

templates/SceneScraperTemplate.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1-
name: "SiteName"
1+
name: Example scene scraper
22
sceneByURL:
33
- action: scrapeXPath
44
url:
5-
- siteurl.com
5+
- example.com
66
scraper: sceneScraper
77
xPathScrapers:
88
sceneScraper:
99
scene:
1010
Title:
1111
Code:
12-
Director:
1312
Details:
13+
Director:
14+
URLs:
1415
Date:
1516
selector:
1617
postProcess:
@@ -22,6 +23,6 @@ xPathScrapers:
2223
Name:
2324
Performers:
2425
Name:
25-
Movies:
26+
Groups:
2627
Name:
27-
# Last Updated June XX, 2024
28+
# Last Updated February XX, 2025

0 commit comments

Comments
 (0)