Fix Freeones search (#1230)

This commit is contained in:
bnkai
2021-03-25 01:01:56 +02:00
committed by GitHub
parent b39fe3ed2b
commit 4299f113e0

View File

@@ -33,8 +33,8 @@ xPathScrapers:
- replace:
- regex: ^
with: https://www.freeones.com
- regex: $
with: /profile
- regex: /feed$
with: /bio
performerScraper:
performer:
@@ -44,12 +44,7 @@ xPathScrapers:
- replace:
- regex: \sBio\s*$
with: ""
URL:
selector: //a[span[text()="Profile"]]/@href
postProcess:
- replace:
- regex: ^
with: https://www.freeones.com
URL: //link[@rel="alternate" and @hreflang="x-default"]/@href
Twitter: //a[contains(@href,'twitter.com/')]/@href
Instagram: //a[contains(@href,'instagram.com/')]/@href
Birthdate:
@@ -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 {