Scraping full date

Changed way date is scraped to grab full date instead of just the year, after review by DogmaDragon.
This commit is contained in:
MortonBridges 2023-03-27 21:26:35 -04:00 committed by GitHub
parent 6714f950dc
commit c64912bf01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,12 +12,11 @@ xPathScrapers:
Image:
selector: //video[@id="product-img"]/@poster
Date:
selector: //li[contains(.,"Year:")]
selector: //script[@class="yoast-schema-graph"]
postProcess:
- replace:
- regex: ^\s*Year:\s*
with: ''
- parseDate: 2006
- regex: .+datePublished\"\:\"(\d{4}-\d{2}-\d{2}).+
with: $1
Director:
selector: //li[contains(.,"Director:")]
postProcess: