Tired of searching with your mouse ? Let's automate the process.
Project description
Tired of searching with your mouse ? Let's automate the process.
Usage
Install
pip install immosheets
Write your script
This is meant to be used as a package for your bot.
from immosheets import (SelogerService, SelogerSearchQuery, SelogerRealEstateFilter,
SelogerRealEstateType, SelogerTransactionType, 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)
Genereting credentials
Third party | Instructions |
---|---|
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. | |
Generate your API key here. An account on RapidAPI is needed to retrieve an API key. | |
Nothing to do. | |
Nothing to do. | |
Nothing to do. |
Check out examples for more.
Do your own integration
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.
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
Release history Release notifications | RSS feed
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
Close
Hashes for immosheets-1.0.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bef6a0e13af6a036e7435f241a288f73b7be23335a327713e0f315892bafdd1 |
|
MD5 | 47f4fb99ddbe10f623dc1ef0889a779c |
|
BLAKE2b-256 | fc1eec066ba9571e819dbdf2a9a78993846d26152920971ecb8d2d0963568691 |