Skip to content

Commit f14189e

Browse files
authored
Extend HobbyPorn with multiple URLs (#2235)
* Fix xPathScrapers sceneSearch selectors for Pornhub * Extend HobbyPorn with multiple URLs
1 parent c9420c6 commit f14189e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

scrapers/HobbyPorn.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@ xPathScrapers:
2626
- parseDate: 01/02/2006
2727
Tags:
2828
Name: //a[@itemprop="genre"]/text()
29-
URL: //link[@itemprop="url"]/@href # gets the hobby.porn url
30-
# Possible update once XPath scraper handles multiple urls
31-
# //div[@class="player"]//a/@href gets the pornhub url
29+
URLs:
30+
selector: //link[@itemprop="url"]/@href | //iframe[contains(@src, 'pornhub.com')]/@src
31+
postProcess:
32+
- replace:
33+
- regex: https:\/\/www\.pornhub\.com\/embed\/
34+
with: "https://www.pornhub.org/view_video.php?viewkey="
3235
Image: //span[@itemprop="thumbnail"]/link/@href
3336
sceneSearch:
3437
common:
@@ -37,4 +40,4 @@ xPathScrapers:
3740
Title: $scenecard//div[@class="item-title"]
3841
URL: $scenecard//a/@href
3942
Image: $scenecard//img/@src
40-
# Last Updated January 05, 2024
43+
# Last Updated March 24, 2025

0 commit comments

Comments
 (0)