blob: 14858e61b0591a3b9e5c313b05e593642a6947c3 (
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
|
# Scrap
Una herramienta para obtener informacion de viviendas usando la API the finca
raiz
## CLI
```shell
Usage:
scrap [options] <city>
Options:
-h --help Show this message
-v --verbose Be more verbose
-o FILE Redirect standard output to FILE.
-p INT Number of pages to get [default: 1]
Examples:
$ scrap MedellĂn -p 20
```
## Libreria
```python
get_json(city: str, pages: int = 1) -> list:
"""Get json data from fincaraiz.com.co
Parameters
----------
city : str
City to search houses
pages : int
Pages to download, each page has 100 offers.
Returns
-------
list[dict]:
json file with house results
"""
>>> from scrap.fincaraiz import get_json
>>> data = get_json('Bogota, d.c')
```
|