Add xPath scene scraper for cockhero.info (#1174)

This commit is contained in:
o-fl0w 2022-11-24 21:44:24 +01:00 committed by GitHub
parent 582d022b75
commit 171566ac19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 0 deletions

View File

@ -245,6 +245,7 @@ clubelegantangel.com|ClubElegantAngel.yml|:heavy_check_mark:|:x:|:heavy_check_ma
clubinfernodungeon.com|Algolia_ClubInfernoDungeon.yml|:heavy_check_mark:|:x:|:x:|:x:|-|Gay
clubseventeen.com|ClubSeventeen.yml|:heavy_check_mark:|:heavy_check_mark:|:x:|:x:|-|-
clubsweethearts.com|ClubSeventeen.yml|:heavy_check_mark:|:heavy_check_mark:|:x:|:x:|-|-
cockhero.info|Cockhero.yml|:heavy_check_mark:|:x:|:x:|:x:|-|-
colette.com|Colette.yml|:heavy_check_mark:|:heavy_check_mark:|:x:|:x:|-|-
college-amateurs.com|ChickPass.yml|:heavy_check_mark:|:x:|:x:|:x:|-|-
college-uniform.com|CollegeUniform.yml|:heavy_check_mark:|:heavy_check_mark:|:x:|:x:|-|-

39
scrapers/Cockhero.yml Normal file
View File

@ -0,0 +1,39 @@
name: Cockhero
sceneByURL:
- action: scrapeXPath
url:
- cockhero.info
scraper: sceneScraper
sceneByName:
action: scrapeXPath
queryURL: https://www.cockhero.info/?s={}
scraper: chSearch
sceneByQueryFragment:
action: scrapeXPath
queryURL: "{url}"
scraper: sceneScraper
xPathScrapers:
chSearch:
common:
$card: //*[@id="main-content"]//article[contains(@class, "item-list")]
scene:
Title: $card/h2[@class="post-title"]/a
URL: $card/h2[@class="post-title"]/a/@href
Image: $card//div[@class="mlib-list-image"]/img/@src
sceneScraper:
common:
$id: //*[@id="the-post"]
scene:
Title: $id/div/h1/span
Date:
selector: $id/div/p/span[@class="tie-date"]
postProcess:
- parseDate: January _2, 2006
Image: $id//div[@class="mlib-list-image"]/img/@src
Studio:
Name: $id//li[div="Author"]/div[contains(@class,"value")]/a
Tags:
Name: //*[@id="main-content"]//p[@class="post-tag"]/a
# Last Updated November 11, 2022