summaryrefslogtreecommitdiff
path: root/README.md
blob: c4eeea42c10237023c9ae6ffb927e3688f34909a (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
# Registro Civil Scraper

A small scraper I did with Selenium for the civil registry in Uruguay, a Telegram bot that sends me a message when there are new appointments.

## What do you need?

- `python3` and `pip3`
- A Telegram APP (talk to @BotFather for that).
- A way to run cronjobs.

## How to use it?

- Create a local copy of the `.env.example` file with your own credentials.

``` sh
cp .env.example .env
```

- Install your dependencies.

``` sh
pip3 install -r requirements.txt
```

- Run it!

``` sh
./app.py
```

- (Optional) Set a cronjob.

``` sh
crontab -e
...
*/30 * * * * /usr/bin/python3 my/script/location/app.py >> my/script/location/log.txt
```

# License
The files and scripts in this repository are licensed under the MIT License, which is a very permissive license allowing you to use, modify, copy, distribute, sell, give away, etc. the software.  In other words, do what you want with it.  The  only requirement with the MIT License is that the license and copyright notice must be provided with the software.