From 53f1bbbd5d5f0d764ebd2f7011300e7e33f042d9 Mon Sep 17 00:00:00 2001 From: jvech Date: Thu, 30 Mar 2023 09:47:20 -0500 Subject: init: initial commit and we already have cli and library done --- README.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 README.md (limited to 'README.md') 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] + +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') +``` -- cgit v1.2.3-70-g09d2