aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 6bc9112e4914732805f8df32c55ae45dc5a33499 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
leboncoin-listener
==================

leboncoin-listener listen for changes at a given URL on the website leboncoin
and send mails with a detail whenever new ads come up.

Usage
-----

```
cabal sandbox init
cabal install --only-dependencies
cabal build
./dist/build/leboncoin-listener/leboncoin-listener
```

Configuration
-------------

Provide the url you want to listen to, the mail addresses that will be notified
in the configuration file (conf), the properties you want to get from the
detail page:

```
# Lines beginning with '#' are ignored"

# The url field is required
url = http://www.leboncoin.fr/locations/offres/ile_de_france/?f=a&th=1

# The mailTo field is an optional list
# mailTo = jean.dupont@mail.fr, john.smith@mail.com

# The properties field is an optional list
# properties = cp, city, surface, ges

# The waitInMinutes field is an optional integer, default to 1
# waitInMinutes = 60
```

Email
-----

leboncoin-listener uses the sendmail command for notifications.