Skip to content
This repository was archived by the owner on Nov 18, 2024. It is now read-only.

labsletemps/immo-alert-bot

Repository files navigation

alt tag

Immo Alerte GE

@Immo_Alerte est un projet du quotidien suisse Le Temps. Ce TwitterBot repère et tweete tous les jeudis matin les transactions immobilières supérieures à 5 millions de francs suisses à Genève, en s'appuyant sur les données publiques du registre foncier cantonal. Il donne aussi la météo du jour, grâce à l'API de Wunderground.

Le TwitterBot: https://twitter.com/immo_alerte

scan.php & tweet.php

PHP scripts are launched via crontab,

  1. scan.php launched once at 8am on Thursday. . checks on http://www.ge.ch/registre_foncier/publications-foncieres.asp to get transactions with a price (Prix total de l'affaire) greater than X . build tweets and store them on DB
  2. tweet.php launched every 15mim from 8am on Thursday. scan DB and send tweets

SQLite Schema

CREATE TABLE 'immo_alert' (
 'sent' DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
 'message' TEXT NOT NULL,
 'itweet' INTEGER NOT NULL DEFAULT 0 ,
 'sent_status' BOOLEAN NOT NULL DEFAULT 0 ,
 'sent_error_msg' TEXT,
 PRIMARY KEY ('sent', 'message'))');

About

Immo_Alerte (TwitterBot) - Un projet Le Temps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •