Skip to main content

Tired of searching with your mouse ? Let's automate the process.

Project description

immosheets

Tired of searching with your mouse ? Let's automate the process.

This is meant to be used as a package for your bot.

I'm currently only supporting seloger.com and google sheets as third parties. I'm working on Leboncoin integration. For other integrations, feel free to write an issue.

Genereting credentials

Google sheets

To learn how to create credentials, go to Create credentials.

Once you create the credentials, make sure the downloaded JSON file is saved as credentials.json. Then move the file to your working directory and fill the path when instanciating the service.

SeLoger

An account on RapidAPI is needed to retrieve an API key.

https://rapidapi.com/apidojo/api/seloger/

Usage

Install

pip install immosheets

Write your script

from immosheets import (SelogerService, SelogerSearchQuery, SelogerRealEstateFilter, 
SelogerRealEstateType, SelogerTransactionType, RealEstate, GoogleSpreadsheetsService)


seloger = SelogerService(api_key='my_seloger_api_key')
google_sheets = GoogleSpreadsheetsService(credentials_file_path='./credentials.json')

query = SelogerSearchQuery(
    maximumPrice="800",
    zipCodes="76300,76800,76000",
    includeNewConstructions="false",
    transactionType=SelogerTransactionType.RENT,
    realtyTypes=SelogerRealEstateType.APPARTMENT,
    sortBy=SelogerRealEstateFilter.NEWEST
)

google_sheets.use("my_sheet_id").clear()

for result in seloger.search(query):
    google_sheets.insert(result)

Do your own integration

You can actually write your own integration based on defaults abstract classes located at the root of the package.

  • 'RealEstateService' for data acquisition
  • 'ReportingService' to display and manage data

Here's few integrations ideas:

  • Excel
  • MongoDB
  • MySQL
  • ElasticSearch
  • Persist data as a File (JSON, XML, CSV)
  • Explorimmo
  • meilleursagents.com
  • apimo.net

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

immosheets-1.0.8b0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file immosheets-1.0.8b0-py3-none-any.whl.

File metadata

  • Download URL: immosheets-1.0.8b0-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for immosheets-1.0.8b0-py3-none-any.whl
Algorithm Hash digest
SHA256 40ee04de8d39de6c7e3379921c9768203f69c5bfae76fd9148ed84fa1b9b2088
MD5 71bd820534c3608abb96e6389a2bca84
BLAKE2b-256 d45774ff0169f23acf01ded8093d738071e9c1b2c6dbc805c815bb56165dbb84

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