Skip to content

Commit

Permalink
Fix description selector for ShesFreaky
Browse files Browse the repository at this point in the history
The number of <p> elements before the description varies so we use the text instead of a fixed offset
  • Loading branch information
Maista6969 committed Aug 31, 2024
1 parent 28cbede commit 78f3790
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions scrapers/ShesFreaky.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: ShesFreaky
sceneByURL:
- action: scrapeXPath
url:
- https://www.shesfreaky.com/video/
- shesfreaky.com/video/
scraper: sceneScraper
sceneByFragment:
action: scrapeXPath
Expand Down Expand Up @@ -42,12 +42,9 @@ xPathScrapers:
scene:
Title: //h2
Tags:
Name: $content/p/a/text()
Date:
selector: //div[@id="content-details"]/div/div/p/text()[3]
postProcess:
- parseDate: 2006-01-02
Details: $content/p[4]/text()
Name: $content//a
Date: //i[contains(@class, "fa-calendar")]/following-sibling::text()[1]
Details: $content//span[contains(., "Description:")]/../following-sibling::p
Image:
selector: //div[@id="content-thumbs"]/a[1]/img/@src
postProcess:
Expand All @@ -56,5 +53,3 @@ xPathScrapers:
with: "http:"
- regex: "-1.jpg$"
with: "-3.jpg"

# Last Updated August 27, 2024

0 comments on commit 78f3790

Please sign in to comment.