Skip to main content

Get a ping when your dream home becomes available.

Project description

Bolig Ping

Get a ping when your dream home in Denmark becomes available on Boligsiden.dk.


Code Coverage Documentation License LastCommit Contributor Covenant

Developer:

Quickstart

The easiest way to use the package is as a uv tool. You can simply start searching for properties using the following command:

uvx bolig-ping --city københavn

This both installs the package and runs the command. All the available options are listed below, but you can always get these by running the following command:

uvx bolig-ping --help

To be able to send emails, you have to create a Google app password, and store both your Gmail email address and the app password in the environment variables GMAIL_EMAIL and GMAIL_PASSWORD, respectively. You can also simply store these in a .env file, as follows:

GMAIL_EMAIL=<your-email>@gmail.com
GMAIL_PASSWORD=<your-app-password>

With this set up, you can now use the --email option to receive an email with new properties that match your search criteria:

uvx bolig-ping --city københavn --email <your-email>

You can also set up a recurring search if you have a server available. In this case, you can add the following line to your crontab on a server, to run the search every hour:

0 * * * * <uvx-full-path> bolig-ping <search-arguments>

Here <uvx-full-path> is the full path to the uvx command, which you can find by running which uvx in your terminal.

All options

The following options are available:

  • --city/-c (required): The city you want to search in. This argument can be used several times to search in multiple cities, e.g., -c aarhus -c odense.
  • --min-price: The minimum price of the property, in DKK. Default is no minimum price.
  • --max-price: The maximum price of the property, in DKK. Default is no maximum price.
  • --min-monthly-fee: The minimum monthly fee of the property, in DKK. Default is no minimum monthly fee.
  • --max-monthly-fee: The maximum monthly fee of the property, in DKK. Default is no maximum monthly fee.
  • --min-rooms: The minimum number of rooms in the property. Default is no minimum number of rooms.
  • --max-rooms: The maximum number of rooms in the property. Default is no maximum number of rooms.
  • --min-size: The minimum size of the property, in square meters. Default is no minimum size.
  • --max-size: The maximum size of the property, in square meters. Default is no maximum size.
  • --query/-q: The query to search for in the property description. This argument can be used several times to search for multiple queries, e.g., -q badekar -q altan.
  • --property-type/-t: The type of property to search for. The available property types are ejerlejlighed, andelslejlighed and house. This argument can be used several times to search for multiple property types, e.g., -t ejerlejlighed -t house. Default is only searching for ejerlejlighed.
  • --email: The email address you want to receive the ping on. Note that this needs to have the GMAIL_EMAIL and GMAIL_PASSWORD environment variables set, as described above. Default is to use no email address, and instead print the properties to the console.
  • --cache/--no-cache: Whether to use the cache or not. Default is to use the cache, but you can disable it by using the --no-cache flag. This is useful if you want to see all the results, and not just the new ones. The cache is stored in the .boligping_cache file in the current directory.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bolig_ping-1.3.0.tar.gz (82.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bolig_ping-1.3.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file bolig_ping-1.3.0.tar.gz.

File metadata

  • Download URL: bolig_ping-1.3.0.tar.gz
  • Upload date:
  • Size: 82.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for bolig_ping-1.3.0.tar.gz
Algorithm Hash digest
SHA256 8089ffd5e50b24de5c602066e6d6b2976c05bc3ec173825c56c497cfeb4f31cf
MD5 ac4054851f547482ba07de34f82ddf97
BLAKE2b-256 96ddcb65789d944481a1979e54bb2c42f91b88998953caec9e06fce3d5047f92

See more details on using hashes here.

File details

Details for the file bolig_ping-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: bolig_ping-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for bolig_ping-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0f92b096de6a64fe82841b3e373ffe4483f94228f04f76389c3c7eea4fa0f20c
MD5 77d9681d196191b8d4b622ed9da7813e
BLAKE2b-256 814f6887141553147d71948060dc318f280361cb91356033b10d5830e566bbc4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page