Websites
One per line. Full links or plain domains both work, like hotelexample.com.
Settings
The defaults work for most lists.
No link yet? Follow the 2-minute setup below the Extract button.
With Apps Script, the key improves owner names and room lists, and sites that block Apps Script are read by Claude automatically. The key stays in this tab.
OTA listings, prices and inclusions (optional)
Needs your Anthropic API key. Adds about 1 to 2 minutes and a small API cost per hotel. OTA prices change with dates and demand, so every price is shown with the dates it was checked for.
Set up your free Google Apps Script link (2 minutes, one time)
- Go to script.google.com and click New project .
- Delete everything in the editor and paste the code below. Change
MY_SECRETto any password you like. Already set up? Replace your old code with this new version, then use Deploy > Manage deployments > Edit > New version . Your link stays the same. - Click Deploy > New deployment . Pick type Web app . Set Execute as: Me and Who has access: Anyone . Click Deploy and allow the permissions.
- Copy the Web app URL (ends in
/exec), add?key=YOUR_PASSWORDat the end, and paste it into the Apps Script link box above. - Press Test connection . When it says Working, you are ready.
// Hotel Extractor fetcher v2 const SECRET ='MY_SECRET'; // your password const JINA_KEY =''; // optional: free key from jina.ai for faster backup reading const BROWSER = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0 Safari/537.36', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'Accept-Language': 'en-IN,en;q=0.9', 'Cache-Control': 'no-cache', 'Upgrade-Insecure-Requests': '1' }; function doGet(e) { const p = e.parameter || {}; if (p.key !== SECRET) return out('FETCH_ERROR: wrong key'); if (p.ping) return out('OK v2'); if (!p.url) return out('FETCH_ERROR: missing url'); let why =''; if (!p.render) { try { const res = UrlFetchApp.fetch(p.url, { muteHttpExceptions: true, followRedirects: true, validateHttpsCertificates: false, headers: BROWSER }); const code = res.getResponseCode(); const body = res.getContentText(); if (code < 400 && !isBlocked(body)) return out(body); why = code >= 400 ? 'site returned ' + code : 'site has bot protection'; } catch (err) { why ='direct read failed'; } } try { const h = { 'X-Respond-With': 'html', 'X-Return-Format': 'html', 'X-Timeout': '25' }; if (JINA_KEY) h['Authorization'] ='Bearer ' + JINA_KEY; const r = UrlFetchApp.fetch('https://r.jina.ai/' + p.url, { muteHttpExceptions: true, headers: h }); const body = r.getContentText(); if (r.getResponseCode() < 400 && body.length > 500) return out(body); return out('FETCH_ERROR: ' + (why || 'page empty') + '; backup reader returned ' + r.getResponseCode()); } catch (err) { return out('FETCH_ERROR: ' + (why ? why + '; ' : '') + 'backup reader failed'); } } function isBlocked(b) { if (b.length < 1500) return true; if (/<title>\s*(Just a moment|Attention Required|Access Denied|403 Forbidden|Pardon Our Interruption|Request unsuccessful)/i.test(b)) return true; return /_Incapsula_Resource|challenge-platform|px-captcha|cf-browser-verification/i.test(b) && b.length < 40000; } function out(text) { return ContentService.createTextOutput(text).setMimeType(ContentService.MimeType.TEXT); } | Website | Address | Status | Property type & services | Room categories | Room prices | Service prices | OTA listings & prices | Owner | Phones / WhatsApp | Emails | Social media |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Add websites above and press Extract details. Results show up here as each site finishes. | |||||||||||
Only details the website itself publishes are collected. Anything a site doesn't show is left blank, and everything it does show is kept, even when some pages fail. Sites with strong bot protection may still fail; Claude mode can often read those. Owner names are found only when the site mentions them.