Skip to content

Instantly share code, notes, and snippets.

View JakeLabate's full-sized avatar
🖥️
Building AI SEO Tools

Jake Labate JakeLabate

🖥️
Building AI SEO Tools
View GitHub Profile
import fetch from 'node-fetch';
import { parseStringPromise } from 'xml2js';
export default class SitemapToURLs {
constructor(sitemapURL) {
this.sitemapURL = sitemapURL;
return this.getSitemapData();
}
async fetchAndParseSitemap(url) {
try {
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
<url>
<loc>https://www.hotelbennett.com/</loc>
<lastmod>2024-07-31T16:41:28+01:00</lastmod>
<priority>1.0</priority>
<image:image>
<image:loc>https://www.hotelbennett.com/images/content/nav-menu/mom-kids-nav.jpg</image:loc>
</image:image>
<image:image>
export default {
name: "The Sebastian - Vail",
type: "Resort",
homepage: "https://www.thesebastianvail.com",
slogan: "Vail Is Like Nothing on Earth.",
description: "Vail, Colorado is one-of-a-kind. For skiers, it is a mountain without equal. As a mountain village, there is no other in America as charming, colorful and international. In the heart of Vail Village, The Sebastian – Vail, a Timbers Resort, captures the magic of this storied place like nowhere else. From personalized experiences and services to our private slopeside Base Camp with ski valets, we attend to every detail, so you can focus on family and fun. Join us for a night or own with us forever. Either way, our Vail resort will beckon you home time and again.",
petsAllowedTrueFalse: true,
totalRoomCount: "36",
priceRange: "$$$",
export default {
"config": {
"UrlsWithLodgingBusinessFull": [
'https://www.timberskauai.com',
'https://www.timberskauai.com/about-us',
]
},
"name": "Timbers Kaua‘i – Ocean Club & Residences",
"type": "Resort",
"key": "timberskauai",
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
]
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
]
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
]
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
]
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
]
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "WebSite",
"@id": "https://hooray.agency#WebSite",
"url": "https://hooray.agency",
"name": "Hooray Agency",
"hasPart": { "@id": "https://hooray.agency#WebPage" }