Automatically checks XIOR Student Housing for available rooms and sends a Telegram notification the moment one opens up.
By default:
- Antonia Veerstraat (Delft)
- Barbarasteeg (Delft)
You can monitor any XIOR property in the Netherlands by editing the PROPERTIES list in monitor.py. Just add the property name and its URL from the XIOR website.
Important: the monitor works by automatically clicking the Check Availability button on the property page. Make sure the URL you add follows this format:
https://www.xiorstudenthousing.eu/netherlands/[city]/[property-name]-student-accommodation/
For example:
https://www.xiorstudenthousing.eu/netherlands/delft/antonia-veerstraat-student-accommodation/
URLs ending in -student-accommodation/ are the individual property pages that have the Check Availability button.
PROPERTIES = [
{
"name": "Antonia Veerstraat (Delft)",
"url": "https://www.xiorstudenthousing.eu/netherlands/delft/antonia-veerstraat-student-accommodation/",
},
{
"name": "Your Property Name",
"url": "https://www.xiorstudenthousing.eu/netherlands/...",
},
]- Windows PC
- Python 3.10+
- Google Chrome installed
Install dependencies:
pip install undetected-chromedriver selenium httpx
- Open Telegram and search for @BotFather
- Send
/newbotand follow the instructions - Copy the Bot Token it gives you (looks like
123456789:ABCdef...)
- Send any message to your new bot
- Open this URL in your browser (replace
YOUR_TOKENwith your token):https://api.telegram.org/botYOUR_TOKEN/getUpdates - Find
"id"inside the"chat"section — that is your Chat ID
Open config.py and replace the placeholder values:
TG_TOKEN = "123456789:ABCdef..." # your Bot Token
TG_CHAT_ID = "987654321" # your Chat IDOpen a Command Prompt in the folder containing monitor.py and run:
python monitor.py --loop
A Chrome window will open and start checking automatically every 5 minutes. You will receive a Telegram message if a room becomes available.
The script controls a real Chrome window to bypass the website's bot protection. Some rules:
- Do not close the Chrome window — the script will stop working
- The window needs to remain open for the entire time the monitor is running
- If the window closes or crashes, restart the script
The best setup is a spare laptop or PC that you leave running 24/7. This way you don't have to worry about accidentally closing the window, and your main computer stays free.
Press Ctrl + C in the Command Prompt window.