aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: c8794df79e2002460f2029ec7dfd38cdb1835110 (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
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:

```
# 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
```

Email
-----

leboncoin-listener uses the sendmail command under the hood.