Toyoko Inn Vacancy Tracker
Project description
Toyoko Inn Room Vacancy Tracker WebUI
A lovely room availability tracker for Toyoko Inn, powered by Flask + Selenium.
🌏 📖 中文说明书
📘 Toyoko Tracker User Guide
Ch.1 Installation & Getting Started
1.1 Introduction
Toyoko Tracker is a Flask + Selenium based desktop and web tool designed to automatically check Toyoko Inn hotel room availability, with support for:
- 🌐 Web interface for real-time room availability
- 🔔 Local notifications (⚠️ MacOS notifications currently not supported)
- 🤖 Telegram Bot push
- 📧 SMTP Email alerts
1.2 Installation
Requirements
- Python 3.9+ (Recommended 3.10 / 3.11)
- Chromium
Optional
- Installed Google Chrome Browser (Using Selenium Web Rendering Driver)
Install from PyPI
- Windows: Press Win + R, type cmd, then press Enter. This will open the Command Prompt window where you can enter commands. Alternatively, click the Start menu → search for PowerShell → open Windows PowerShell.
- MacOS: Open Launchpad, search for and click Terminal, then you can enter commands.
- Linux: Press Ctrl + Alt + T to automatically open the terminal. You can also search for Terminal in the applications menu.
Run the following commands to complete the installation:
pip install --upgrade pip
pip install toyoko-tracker
Install chromium from from playwright (Required)
playwright install chromium
1.3 Usage
After installation, run the following in your terminal:
toyoko-tracker
After launching:
- A local web server will run at: http://127.0.0.1:4170
- The program will try to automatically open the browser
- If it doesn’t, open the browser manually and enter
127.0.0.1:4170
1.4 Version Info
- Current version:
v0.4.17 - Author: JellyNeko (bilibili @果冻猫猫丶)
- License: MIT
🏨 Ch.2 Getting Hotel 5-Digit Codes
Before using Toyoko Tracker, you need the 5-digit hotel code.
This code is used on the Toyoko Inn official website to uniquely identify each hotel.
🔹 2.1 Search by Hotel Name on Google
- Search the full hotel name on Google, for example:
Toyoko Inn Shin-yokohama Ekimae Shinkan - You will usually see the official Toyoko Inn booking page, such as:
https://www.toyoko-inn.com/eng/search/detail/00061/ - In this link, 00061 is the hotel code.
🔹 2.2 From the Booking URL
When you search on the official Toyoko Inn website with check-in and check-out dates, you will see a booking results page like this:
https://www.toyoko-inn.com/eng/search/result/room_plan/?hotel=00061&start=2025-10-13&end=2025-10-14&room=1&people=1
Here, the parameter hotel=00061 indicates the hotel code.
🤖 Ch.3 Telegram Bot Setup
To receive availability alerts via Telegram, you need to configure a bot.
3.1 Create a Telegram Bot
- Search and open BotFather in Telegram
- Send the command:
/newbot - Follow the prompts:
- Bot name (e.g.
ToyokoBot) - Username (must end with
bot, e.g.toyokotracker_bot)
- Bot name (e.g.
- BotFather will provide a Bot Token:
1234567890:ABCdefGhIJklmNoPQRstuVWxyZ
3.2 Get Chat ID
Chat ID is the unique identifier for your Telegram account or group.
Method:
- Search and start @userinfobot in Telegram
- It will show your current account’s Chat ID, for example:
987654321
3.3 Configure in Toyoko Tracker
- Open the Toyoko Tracker web interface
- Locate the Telegram Bot section in the settings panel
- Enable it ✅
- Enter the Bot Token from BotFather
- Enter your Chat ID from @userinfobot
Once configured, Toyoko Tracker will automatically send messages via Telegram when rooms are available.
📧 Ch.4 Email Notification Setup
To receive alerts via email, you need to configure an SMTP account.
4.1 Enable SMTP Service
Steps vary by provider:
-
Gmail
- Log in → Manage account → Security
- Enable “Allow less secure apps” or use App Passwords
- Get a 16-digit App Password
-
QQ Mail
- Log in → Settings → Account
- Enable “SMTP Service”
- Get an authorization code (not your login password)
-
163/126 Mail
- Log in → Settings → POP3/SMTP/IMAP
- Enable “SMTP Service”
- Get an authorization code
4.2 Fill in Email Settings in Toyoko Tracker
In the Email Settings section:
- SMTP Server: e.g.
smtp.gmail.com/smtp.qq.com - SMTP Port: usually
465(SSL) or587(TLS) - Username: your email address, e.g.
example@gmail.com - Password: the authorization code or app password
- To Address: the recipient email address
4.3 Enable Email Alerts
- Check Enable Email ✅ in the web interface
- Save your configuration
- Click Start to begin monitoring
- When rooms are found, emails will be automatically sent
4.4 Tips
- Recommended: Gmail or QQ Mail for testing
- Check your spam/junk folder if emails don’t arrive
- Ensure you used the authorization code or app password, not your login password
💻 Ch.5 Web Interface Guide
This chapter explains the web interface after launching Toyoko Tracker.
5.1 Main Interface
- Default: opens at
http://127.0.0.1:4170 - Sections include:
- Run Settings
- Status
- Results Table
- Controls
5.2 Control Buttons
- Start: begin monitoring and save config to
auto_save.json - Stop: stop monitoring and close browser driver
- Default: reset to default config (today+tomorrow, 1 person, 1 room)
- Save: save config to
save.json(manual save) - Load: load config from
save.json
5.3 Settings Panel
- Check-in/Check-out Dates
- Guests / Rooms (1–5 people, 1–9 rooms)
- Smoking Options:
noSmoking(non-smoking)Smoking(smoking)all(any)
- Hotel Code(s): multiple 5-digit codes separated by comma or space
- Proxy Settings: e.g.
http://127.0.0.1:7890 - Telegram Settings: Bot Token & Chat ID
- Local Notifications: enable (⚠️ MacOS may not work)
- Email Notifications: SMTP server, port, account, password
5.4 Status Panel
Shows real-time status:
- Round: iteration count
- Progress Bar: current vs total
- Elapsed / Uptime: round time & total runtime
- Current Action: e.g. “Checking hotel 00061”
5.5 Results Table
Displays the latest scan results:
- Code: hotel code
- HotelName: hotel name
- Result: ✅ available / ❌ unavailable / ❓ unknown
- MinPrice: lowest non-member price
- Left: remaining rooms
- Type: room type
Special room types (such as heartful / accessible) are automatically ignored due to hotel reservation policies.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file toyoko_tracker-0.5.0.tar.gz.
File metadata
- Download URL: toyoko_tracker-0.5.0.tar.gz
- Upload date:
- Size: 89.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6dafd3a4ad91dd45d5832ead1a4d40ea6b0e15d6df6fd7767d4693fb25cc40d4
|
|
| MD5 |
4cb3fa426ce0042eae093d6190d18bed
|
|
| BLAKE2b-256 |
46bd239b5198d6cd9cd66faa8315cb9da1f7f16ee7fc3033b964fe63bc0319b3
|
File details
Details for the file toyoko_tracker-0.5.0-py3-none-any.whl.
File metadata
- Download URL: toyoko_tracker-0.5.0-py3-none-any.whl
- Upload date:
- Size: 85.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
752340306d2407f34c70f480d1e958685e8268d7407a1a77571d957a7fb5589e
|
|
| MD5 |
86177ab99cba11490ebf1a4b388426d2
|
|
| BLAKE2b-256 |
ee46dc249dc8e2810eb433a49d3fbe107e0d200292f3727dad1eecd70851c52f
|