Home Hunter is a Python-based tool that automates the process of searching for and monitoring new home listings on the popular Japanese real estate website, SUUMO. It leverages Selenium for web scraping and Discord for notifications.
Installation and Configuration
- Install Docker and Docker Compose: Follow the official installation instructions for your operating system:
- Docker: https://docs.docker.com/get-docker/
- Docker Compose: https://docs.docker.com/compose/install/
Docker makes it easier to set up and run software, which is isolated from the host system and other containers.
-
Clone the repository:
git clone https://github.com/zaneriley/home-hunter.git cd home-hunter
Now you need to configure what SUUMO listings you want to monitor, and where to send notifications on Discord.
-
Add your SUUMO url in
websites.ini
[SUUMO] target_url = https://suumo.jp/...
Your URL needs to look like:
https://suumo.jp/jj/bukken/ichiran/JJ010FJ001/?ar=030&bknlistmodeflg=3&bs=030&initIdo=128505983&initKeido=502665119.5&pc=20&pj=1&po=0&ta=13&sc=13120
TIP: You can customize your suumo search using the website's filters, and it will be reflected in the notifications. Really useful if you only want results near your work, a specific train line, etc.
-
Set up other environment variables. Open up
docker-compose.yml
and update the following variables:WEBDRIVER_PATH: The absolute path to your ChromeDriver executable. NOTIFICATION_URL: Your Discord webhook URL. DISCORD_ROLE_ID=Your Discord role ID for notifications
-
Run the docker container:
docker-compose up --build
Check your discord channel and you should see a notification like so (the bot will be whatever your webhook is set at)
- Home Hunter loads your target SUUMO search results page.
- It extracts details of each available listing, including price, size, address, and access information.
- New listings are compared against a list of previously seen URLs to prevent duplicate notifications.
- If a new listing is discovered:
- Home Hunter constructs a Discord message embed with the listing's details.
- The formatted message is sent to your configured Discord webhook.
License
Home Hunter is licensed under the GNU General Public License v3.0. See the LICENSE file for details.