diff options
author | jvech <jmvalenciae@unal.edu.co> | 2023-03-30 09:47:20 -0500 |
---|---|---|
committer | jvech <jmvalenciae@unal.edu.co> | 2023-03-30 09:47:20 -0500 |
commit | 53f1bbbd5d5f0d764ebd2f7011300e7e33f042d9 (patch) | |
tree | 0ba5b226bf4a7ac883c152e90ebb8c7b63215dbc /README.md |
init: initial commit and we already have cli and library done
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..14858e6 --- /dev/null +++ b/README.md @@ -0,0 +1,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') +``` |