Mỗi file data/<slug>/<kênh>.json chứa toàn bộ sự thật đã xác minh của một căn trên một kênh, ở dạng máy đọc được.
Each file data/<slug>/<channel>.json holds all the verified facts of one property on one channel, in machine-readable form.
Khi JSON và Markdown lệch nhau, JSON đúng. File
.mdtrongproperties/là lớp trình bày cho người đọc, sinh ra từ cùng dữ liệu này.
When JSON and Markdown disagree, the JSON is correct. The
.mdfiles inproperties/are the presentation layer for people, generated from the same data.
Vì sao có lớp nàyWhy this layer exists
Trước 08/09/2026 mọi fact nằm trong văn xuôi Markdown. Ba hệ quả đo được:
Before 08/09/2026, every fact lived in Markdown prose. Three measured consequences:
- Không tra được bằng máy. Câu "Swimming pool → Outdoor · All year · Paid · 06:00–19:00" là chữ trong bảng; muốn biết bể bơi có thu phí không thì phải đọc hiểu.
- Cùng một con số viết hai kiểu. Giá buffet xuất hiện 3 lần dạng
285.000₫và 3 lần dạng285,000 VNDtrong cùng một bộ hồ sơ. Grep một dạng là hụt một nửa. - Không so được giữa các căn. Muốn biết 502 thiếu gì so với 305 thì phải mở hai file và đọc tay.
- Cannot be searched by machine. The sentence "Swimming pool → Outdoor · All year · Paid · 06:00–19:00" is text in a table; to know whether the pool charges, you have to read and interpret it.
- The same number written two ways. The buffet price appears 3 times as
285.000₫and 3 times as285,000 VNDin the same set of profiles. Grepping one form misses half of them. - Cannot compare between properties. To know what 502 lacks compared with 305, you have to open two files and read them by hand.
DùngUsage
python3 scripts/listing-data.py list # có những file nào
python3 scripts/listing-data.py check # kiểm khoá bắt buộc + trường còn trống
python3 scripts/listing-data.py show alacarte305 # in gọn một listing
python3 scripts/listing-data.py compare booking # bảng đối chiếu mọi căn cạnh nhau
python3 scripts/listing-data.py gaps alacarte305 # căn khác THIẾU gì so với căn mẫu
python3 scripts/listing-data.py get alacarte305 facilities.swimming_pool.paid
python3 scripts/listing-data.py list # which files exist
python3 scripts/listing-data.py check # check required keys + empty fields
python3 scripts/listing-data.py show alacarte305 # print one listing compactly
python3 scripts/listing-data.py compare booking # side-by-side table of all properties
python3 scripts/listing-data.py gaps alacarte305 # what the other properties are MISSING compared with the model property
python3 scripts/listing-data.py get alacarte305 facilities.swimming_pool.paid
gaps là lệnh đáng dùng nhất khi đã có ≥2 căn: lấy một căn làm chuẩn, liệt kê tiện ích căn kia chưa bật và mọi chỉ số thấp hơn căn chuẩn.
gaps is the most useful command once there are ≥2 properties: take one property as the baseline, then list the amenities the other has not switched on and every metric below the baseline property.
Bộ khoáKey set
| Khối | Chứa gì |
|---|---|
read |
ngày đọc, đọc bằng gì, trỏ tới _raw/ chứa dump thô |
identity |
tên, địa chỉ, toạ độ, trạng thái, URL công khai |
scores |
page score, review tổng + từng hạng mục, điểm công ty, điểm của đối thủ cùng toà |
photos |
tổng, số hiện public, số bị gắn cờ kém, smart ordering |
room |
loại phòng, diện tích, số phòng ngủ/tắm, cấu hình giường từng phòng, sức chứa |
fees_taxes |
VAT, phí dọn, giá bữa sáng cả ba nguồn, giá đỗ xe khai vs thật |
policies |
giờ nhận/trả, thanh toán, trẻ em, nội quy, từng chính sách huỷ kèm số liệu 90 ngày |
facilities |
từng tiện ích: on · paid · hours · features · price_vnd |
amenities_room |
danh sách tiện nghi trong phòng |
accessibility |
khai báo tiếp cận xe lăn |
messaging |
mẫu tin, lịch gửi, cờ cảnh báo như contains_door_code, asks_for_star_rating |
sustainability |
đã bắt đầu chưa, chứng nhận |
profile |
hồ sơ chủ nhà, độ dài từng ô chữ |
public_view |
thứ khách thật sự thấy: huy hiệu, chip, số nhóm tiện ích, câu phủ định đang chạy |
issues |
mã L-nn liên quan, tra chéo sang ../issues.md |
| Block | What it holds |
|---|---|
read |
read date, how it was read, points to the _raw/ folder holding the raw dump |
identity |
name, address, coordinates, status, public URL |
scores |
page score, overall review score + each category, company score, scores of competitors in the same building |
photos |
total, number currently public, number flagged as poor quality, smart ordering |
room |
room type, area, number of bedrooms/bathrooms, bed configuration of each room, capacity |
fees_taxes |
VAT, cleaning fee, breakfast price from all three sources, parking price declared vs actual |
policies |
check-in/out times, payment, children, house rules, each cancellation policy with its 90-day figures |
facilities |
each amenity: on · paid · hours · features · price_vnd |
amenities_room |
list of in-room amenities |
accessibility |
wheelchair-accessibility declaration |
messaging |
message templates, send schedule, warning flags such as contains_door_code, asks_for_star_rating |
sustainability |
whether started, certifications |
profile |
host profile, length of each text box |
public_view |
what the guest really sees: badges, chips, number of amenity groups, the negative phrases currently running |
issues |
related L-nn codes, cross-referenced to ../issues.md |
Quy ước: null = chưa đọc được, khác với false = đã đọc và đúng là không.
Mọi số tiền là số nguyên VND, không kèm ký tự — định dạng để lớp hiển thị lo.
Convention: null = not yet read, which differs from false = read, and it really is not there.
All money amounts are whole VND numbers, with no characters attached — formatting is left to the display layer.
Schema v2 — lưu đúng cấu trúc trang web (02/10/2026, đang áp: 25anthuong11 · Booking)Schema v2 — stores the exact structure of the web page (02/10/2026, applied to: 25anthuong11 · Booking)
User yêu cầu dữ liệu lưu chuẩn tầng như trang hiển thị để AI đọc nhanh. Mỗi căn × kênh đã khảo sát theo cây có:
The user asked for data stored at the same layer the page displays it, so AI can read it quickly. Each property × channel surveyed is organised as a tree that has:
platform-status/data/<căn>/
├─ <kênh>.json chỉ số dùng chung (`facts`: identity · scores · fees_taxes) + đường dẫn `platformstatus`
└─ platformstatus/<kênh>/
├─ _index.json ĐỌC TRƯỚC: dải nhanh (quick_facts) + danh sách mục lớn {id, title, read, file, subs[]}
├─ home.json · rates-availability.json · promotions.json · property.json · boost-performance.json
│ mỗi MỤC LỚN (menu cha) một file = đúng một khối trên trang
├─ messages.json trang nguyên văn từng tin nhắn
└─ legacy.json dữ liệu v1 cũ + mục "không có" đã lọc khỏi trang (không hiện, chỉ để tra)
platform-status/data/<property>/
├─ <channel>.json shared figures (`facts`: identity · scores · fees_taxes) + path to `platformstatus`
└─ platformstatus/<channel>/
├─ _index.json READ FIRST: quick strip (quick_facts) + list of main sections {id, title, read, file, subs[]}
├─ home.json · rates-availability.json · promotions.json · property.json · boost-performance.json
│ one file per MAIN SECTION (parent menu) = exactly one block on the page
├─ messages.json verbatim page for each message
└─ legacy.json old v1 data + "absent" sections filtered off the page (not shown, kept for lookup)
AI cần một mục thì đọc _index.json (4 KB) rồi mở đúng file mục đó, không phải đọc cả bộ. Web ghép các file lại thành cây page khi dựng.
When AI needs one section, it reads _index.json (4 KB) and then opens exactly that section's file, instead of reading the whole set. The web assembles the files into a page tree when it is built.
Cây (ghép từ _index.json + các file mục):
Tree (built from _index.json + the section files):
page
├─ quick_facts dải nhanh: status · hotel_id · read · tiles[] {key, label, value, sub}
├─ sections[] MỤC LỚN = menu cha Booking (Home · Rates & Availability · Promotions · Property · Boost performance)
│ {id, title, booking_menu, lead, source, read, children[]}
│ └─ children[] nút theo `type`:
│ sub MỤC CON = menu con Booking {id, title, booking_path, read, children[]}
│ group NHÓM có tiêu đề {title, notes[], cards[]} · cards = nhóm không tiêu đề
│ └─ cards[] THẺ {title, status?, items[]}
│ └─ items[] {label?, style: list|text|intro, values[]}
│ kv bảng nhãn–giá trị {rows[] {label, value, note?}}
│ table bảng {columns[], rows[][]}
│ split khung chia đôi {columns[[nút], [nút]]}
│ figure ảnh {image (đường dẫn _raw), url (/media/shots/…), alt, caption, data?}
│ note · para chữ chú thích / đoạn văn
└─ message_pages[] trang nguyên văn từng tin {slug, url, name, trigger, language, text{vi,en}}
page
├─ quick_facts quick strip: status · hotel_id · read · tiles[] {key, label, value, sub}
├─ sections[] MAIN SECTION = Booking parent menu (Home · Rates & Availability · Promotions · Property · Boost performance)
│ {id, title, booking_menu, lead, source, read, children[]}
│ └─ children[] button by `type`:
│ sub SUB-SECTION = Booking child menu {id, title, booking_path, read, children[]}
│ group GROUP with a title {title, notes[], cards[]} · cards = group without a title
│ └─ cards[] CARD {title, status?, items[]}
│ └─ items[] {label?, style: list|text|intro, values[]}
│ kv label–value table {rows[] {label, value, note?}}
│ table table {columns[], rows[][]}
│ split split frame {columns[[button], [button]]}
│ figure image {image (_raw path), url (/media/shots/…), alt, caption, data?}
│ note · para note text / paragraph
└─ message_pages[] verbatim page for each message {slug, url, name, trigger, language, text{vi,en}}
Quy ước chữ: mọi chuỗi hiển thị là {"vi": …, "en": …} (nút VI | EN chỉ chọn một bản); chuỗi không phải dict thì giống nhau ở hai bản;
**…** là in đậm, [chữ](url) là link — không nhúng HTML. Giá trị có thể là {text, href} (link) hoặc {text, strong, sub} (ô bảng).
Số liệu gốc để tính toán nằm trong data của nút (vd calendar.data.unbookable_ranges, search_card.data).
Mã khoá cửa / mật khẩu Wi‑Fi không nằm trong file (đã che). Web chỉ hiện mục CÓ — mục "không có" chỉ còn trong legacy.
Text convention: every displayed string is {"vi": …, "en": …} (the VI | EN button picks one version only); a string that is not a dict is the same in both versions;
**…** is bold, [text](url) is a link — no HTML is embedded. A value can be {text, href} (link) or {text, strong, sub} (table cell).
The raw figures for calculation sit in the data of the block (e.g. calendar.data.unbookable_ranges, search_card.data).
Door codes / Wi‑Fi passwords are not in the file (masked). The web shows only items that EXIST — "none" items remain only in legacy.
Sửa trang = sửa đúng file mục lớn trong platformstatus/<kênh>/ (thêm/bớt/đổi thứ tự nút; đổi thứ tự mục lớn ở _index.json) rồi dựng lại; build-ota-portal.py không tự thêm nội dung ngoài cây.
To edit a page, edit the exact large-section file in platformstatus/<channel>/ (add, remove or reorder buttons; reorder the large sections in _index.json), then rebuild. build-ota-portal.py does not add content on its own outside the tree.
Thêm một cănAdding a property
- Cào bằng
node scripts/chrome-grab.mjs --out vault/19-Harthliving-OTA/platform-status/properties/<slug>/_raw/<ngày>-<kênh>/ … - Tạo
data/<slug>/<kênh>.jsontheo đúng bộ khoá trên — thiếu khoá nào thìcheckbáo, không cần sửa script. python3 scripts/listing-data.py checkrồigaps alacarte305để thấy ngay căn mới hụt gì.
- Scrape with
node scripts/chrome-grab.mjs --out vault/19-Harthliving-OTA/platform-status/properties/<slug>/_raw/<date>-<channel>/ … - Create
data/<slug>/<channel>.jsonfollowing exactly the key set above — any missing key is reported bycheck, no script change needed. - Run
python3 scripts/listing-data.py check, thengaps alacarte305, to see at once what the new property is missing.
Trạng thái hiện tạiCurrent status
| Căn | Kênh | Ngày đọc |
|---|---|---|
alacarte305 |
booking | 2026-09-08 |
| Property | Channel | Date read |
|---|---|---|
alacarte305 |
booking | 2026-09-08 |
Sáu căn còn lại (alacarte404 · alacarte502 · 15nuocman5 · 181tohienthanh · 41lehycat · 25anthuong11) chưa có file dữ liệu — mới chỉ có hồ sơ Markdown.
The other six properties (alacarte404 · alacarte502 · 15nuocman5 · 181tohienthanh · 41lehycat · 25anthuong11) do not yet have a data file — only Markdown profiles exist.