Skip to content

A bot crawling xe.gr and informing you of new ads.

Notifications You must be signed in to change notification settings

ang3lkar/find-me-a-house

Repository files navigation

Find-me-a-house messenger bot

uses Python 3

Installation

pip install -r requirements.txt
source crawler-bot-env/bin/activate
// psql
create database find_me_a_house;

Setup facebook app/page

https://blog.hartleybrody.com/fb-messenger-bot/

Set the evironment variables

FACEBOOK_PAGE_ACCESS_TOKEN=

# Postgres configuration for local use
export FIND_ME_A_HOUSE_DATABASE_NAME='find_me_a_house'
export FIND_ME_A_HOUSE_DATABASE_USER='postgres'
export FIND_ME_A_HOUSE_DATABASE_PASSWORD=
export FIND_ME_A_HOUSE_DATABASE_HOST='localhost'

Example

# test that it runs
python bot.py --smoke

Arguments

  -h, --help      show this help message and exit
  -d, --dry-run   Display the results in terminal but do not actually send
                  them
  -r, --reset     Clean database
  -s, --smoke     Smoke test, verify that it returns a house object
  -f, --facebook  Send message to Facebook Messenger
  -s, --slack     Send message to Slack

About

A bot crawling xe.gr and informing you of new ads.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages