1.0.12 • Published 5 months ago
@nxte-nl/content-checking-tool v1.0.12
Hotel Giftcard
Install package globally
npm install -g @nxte-nl/content-checking-tool
Scripts
# Start checking
check-content --filename test.yml
Example of yaml configuration file
configuration:
defaultContent: &defaultContent
type: 'contentSelector'
content: &content
- selector: 'title'
check:
- 'is-not-empty'
- selector: 'meta[name="description"]'
check:
- 'is-not-empty'
- selector: 'meta[name="keywords"]'
check:
- 'is-not-empty'
- selector: 'meta[name="twitter:card"]'
check:
- 'is-not-empty'
- selector: 'meta[name="twitter:description"]'
check:
- 'is-not-empty'
- selector: 'meta[name="twitter:image"]'
check:
- 'is-not-empty'
- 'is-url'
- selector: 'meta[name="twitter:site"]'
check:
- 'is-not-empty'
- selector: 'meta[name="twitter:title"]'
check:
- 'is-not-empty'
- selector: 'meta[property="og:title"]'
check:
- 'is-not-empty'
- selector: 'meta[property="og:description"]'
check:
- 'is-not-empty'
- selector: 'meta[property="og:image"]'
check:
- 'is-not-empty'
- 'is-url'
- selector: 'meta[property="og:url"]'
check:
- 'is-not-empty'
- 'is-url'
- selector: 'meta[property="og:image:secure_url"]'
check:
- 'is-not-empty'
- 'is-url'
- selector: 'meta[property="og:type"]'
check:
- 'is-not-empty'
- selector: 'meta[property="og:locale"]'
check:
- 'is-not-empty'
- selector: 'meta[property="og:site_name"]'
check:
- 'is-not-empty'
- selector: 'meta[property="article:author"]'
check:
- 'is-not-empty'
- selector: 'meta[property="article:section"]'
check:
- 'is-not-empty'
- selector: 'meta[http-equiv="content-language"]'
check:
- 'is-not-empty'
- selector: 'link[rel="canonical"]'
check:
- 'is-not-empty'
- 'is-url'
- selector: 'link[hreflang="x-default"]'
check:
- 'is-not-empty'
- 'is-url'
- selector: 'link[hreflang="de-de"]'
check:
- 'is-not-empty'
- 'is-url'
- selector: 'link[hreflang="en-be"]'
check:
- 'is-not-empty'
- 'is-url'
- selector: 'link[hreflang="en-de"]'
check:
- 'is-not-empty'
- 'is-url'
- selector: 'link[hreflang="en-es"]'
check:
- 'is-not-empty'
- 'is-url'
- selector: 'link[hreflang="en-fr"]'
check:
- 'is-not-empty'
- 'is-url'
- selector: 'link[hreflang="en-gb"]'
check:
- 'is-not-empty'
- 'is-url'
- selector: 'link[hreflang="en-it"]'
check:
- 'is-not-empty'
- 'is-url'
- selector: 'link[hreflang="en-nl"]'
check:
- 'is-not-empty'
- 'is-url'
- selector: 'link[hreflang="es-es"]'
check:
- 'is-not-empty'
- 'is-url'
- selector: 'link[hreflang="fr-be"]'
check:
- 'is-not-empty'
- 'is-url'
- selector: 'link[hreflang="fr-fr"]'
check:
- 'is-not-empty'
- 'is-url'
- selector: 'link[hreflang="it-it"]'
check:
- 'is-not-empty'
- 'is-url'
- selector: 'link[hreflang="nl-be"]'
check:
- 'is-not-empty'
- 'is-url'
- selector: 'link[hreflang="nl-nl"]'
check:
- 'is-not-empty'
- 'is-url'
- selector: 'meta[name=robots]'
check:
- 'is-follow/is-index'
checkSections:
urls:
- https://www.hotelgiftcard.com/de-de/
- https://www.hotelgiftcard.com/de-de/business/
- https://www.hotelgiftcard.com/de-de/buy/
- https://www.hotelgiftcard.com/de-de/check-balance/
urlsAfterDate:
date: 04/11/2023
urls:
- https://www.hotelgiftcard.com/de-de/business/
- https://www.hotelgiftcard.com/de-de/buy/
nonIndexableContent:
<<: *defaultContent
content:
- <<: *content
- selector: 'meta[name=robots]'
check:
- 'is-no-follow/is-no-index'
checkSections:
urls:
- https://www.hotelgiftcard.com/en-gb/hotel/park-plaza-westminster-bridge-london-974879336/
- https://www.hotelgiftcard.com/en-gb/hotel/park-plaza-county-hall-london-2533797640/
status404:
type: 'statusCode'
statusCode: 404
checkSections:
urls:
- https://www.hotelgiftcard.com/de-de/non-existing-url/
- https://www.hotelgiftcard.com/non-existing-url/
status301:
type: 'statusCode'
statusCode: 301
checkSections:
urls:
- https://www.hotelgiftcard.com # trailing slash
- https://www.hotelgiftcard.com/nl-nl #language redirect