mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Fix Freeones search (#1230)
This commit is contained in:
@@ -31,10 +31,10 @@ xPathScrapers:
|
||||
selector: //div[@id="search-result"]//div[@data-test="teaser-subject"]/a/@href
|
||||
postProcess:
|
||||
- replace:
|
||||
- regex: ^
|
||||
with: https://www.freeones.com
|
||||
- regex: $
|
||||
with: /profile
|
||||
- regex: ^
|
||||
with: https://www.freeones.com
|
||||
- regex: /feed$
|
||||
with: /bio
|
||||
|
||||
performerScraper:
|
||||
performer:
|
||||
@@ -42,22 +42,17 @@ xPathScrapers:
|
||||
selector: //h1
|
||||
postProcess:
|
||||
- replace:
|
||||
- regex: \sBio\s*$
|
||||
with: ""
|
||||
URL:
|
||||
selector: //a[span[text()="Profile"]]/@href
|
||||
postProcess:
|
||||
- replace:
|
||||
- regex: ^
|
||||
with: https://www.freeones.com
|
||||
- regex: \sBio\s*$
|
||||
with: ""
|
||||
URL: //link[@rel="alternate" and @hreflang="x-default"]/@href
|
||||
Twitter: //a[contains(@href,'twitter.com/')]/@href
|
||||
Instagram: //a[contains(@href,'instagram.com/')]/@href
|
||||
Birthdate:
|
||||
selector: //span[contains(text(),'Born On')]
|
||||
postProcess:
|
||||
- replace:
|
||||
- regex: Born On
|
||||
with:
|
||||
- regex: Born On
|
||||
with:
|
||||
- parseDate: January 2, 2006
|
||||
Ethnicity:
|
||||
selector: //a[@data-test="link_ethnicity"]/span/text()
|
||||
@@ -73,8 +68,8 @@ xPathScrapers:
|
||||
selector: //span[text()='Height']/following-sibling::span/a
|
||||
postProcess:
|
||||
- replace:
|
||||
- regex: \D+[\s\S]+
|
||||
with: ""
|
||||
- regex: \D+[\s\S]+
|
||||
with: ""
|
||||
- map:
|
||||
Unknown: ""
|
||||
Measurements:
|
||||
@@ -88,8 +83,8 @@ xPathScrapers:
|
||||
postProcess:
|
||||
- map:
|
||||
Unknown: ""
|
||||
Fake: Yes
|
||||
Natural: No
|
||||
Fake: "Yes"
|
||||
Natural: "No"
|
||||
CareerLength:
|
||||
selector: //div[contains(@class,'timeline-horizontal')]//p[@class='m-0']
|
||||
concat: "-"
|
||||
@@ -108,7 +103,7 @@ xPathScrapers:
|
||||
selector: //div[contains(@class,'image-container')]//a/img/@src
|
||||
Gender:
|
||||
fixed: "Female"
|
||||
# Last updated January 31, 2021
|
||||
# Last updated March 24, 2021
|
||||
`
|
||||
|
||||
func getFreeonesScraper() config {
|
||||
|
||||
Reference in New Issue
Block a user