added dataframe and example

This commit is contained in:
Eljakim Herrewijnen 2024-03-31 18:21:59 +02:00
parent 31aa471b3b
commit f930ebc9ea
2 changed files with 11 additions and 1 deletions

View File

@ -22,3 +22,13 @@ URL = "https://www.funda.nl/zoeken/koop?selected_area=%5B%22utrecht,15km%22%5D&p
```
Next you should be able to scrape the data from funda. See the RTD for more docs on how to setup OSRM and use the results.
## Panda
To just interact with the panda dataframe:
```python
data = pickle.load(open('panda_dump.bin', 'rb'))
type(data)
<class 'pandas.core.frame.DataFrame'>
data.descrip.get(0)
"Aan de rand van de populaire woonwijk 'De Hagen' te Vianen staat deze fijne tussenwoning met groenstrook en water voor de deur. De buurt straalt een gemoedelijke sfeer uit en[..]"
```

BIN
scrape/panda_dump.bin Normal file

Binary file not shown.