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.4.0.tar.gz (83.5 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.4.0-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bolig_ping-1.4.0.tar.gz
Algorithm Hash digest
SHA256 5d547339a3cab078d61755ae50f9b294e605a5a4f5291fe76340593212bd9f0d
MD5 030d6892b538ac69018274044eac2e11
BLAKE2b-256 b51aa10d6e4aab93516286ac60a9ddf1e2f9303d7015693da2918eeeda8aa72d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for bolig_ping-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ebcfdc56e5c3db722fe07598901081c92cd260560abebc64e04f1efd7929418
MD5 2c5e0a67a3e1477b7b80ca98d843749d
BLAKE2b-256 3692c2e445b89d431424c4c61d276036ea22103e65079ebcb6492ddfb9a95aa8

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