Closed NelisV closed 3 months ago
As neighbourhoods in different cities can have the same name, the city has to be added to make it specific.
Did you try what happens if you add everything after selected_area=
up untill the next parameter / &
in the URL?
From the code it looks like the "area" parameter is directly inserted there, so I think it should work to just use that very long string directly. See here in code: https://github.com/whchien/funda-scraper/blob/5e592f47e0500a0199c1bd7c02ac27cb26d0d675/funda_scraper/scrape.py#L145
@NelisV @Riik Hi, sorry for the late reply. You can indeed pass multiple neighborhoods to construct the main URL, but I believe this approach is more error-prone. I suggest instantiating several FundaScraper objects and passing different area arguments in a for loop to achieve the same outcome.
When i'm browsing funda manually i have a custom query based on a list of multiple neighborhoods; all based on the 'CBS Wijken en Buurten' dataset.
Would it be possible to let the input of area be a list with neighbourhoods?
Much appreciated! your script is a lifesaver!