whchien / funda-scraper

FundaScaper scrapes data from Funda, the Dutch housing website. You can find listings from house-buying or rental market, and historical data. 🏡
GNU General Public License v3.0
104 stars 48 forks source link

ModuleNotFoundError: No module named 'urllib3.packages.six.moves' #44

Closed iyearn-zhou closed 2 months ago

iyearn-zhou commented 2 months ago

Hi, I try to run the following code and got an error. I successfully install the funda-scraper. "Successfully installed PyYAML-6.0.1 diot-0.2.3 funda-scraper-1.2.1 inflection-0.5.1 tqdm-4.66.4 urllib3-1.26.0" BR

script: from funda_scraper import FundaScraper import os

scraper = FundaScraper( area="eindhoven", want_to="buy", find_past=False, page_start=1, n_pages=3, min_price=400000, max_price=700000, )

output_path = os.path.join(os.path.dirname(file), '..', 'data', 'test.csv')

df = scraper.run(raw_data=False, save=True, filepath=output_path) df.head()

error message: .venv/lib/python3.12/site-packages/urllib3/exceptions.py", line 3, in from .packages.six.moves.http_client import IncompleteRead as httplib_IncompleteRead ModuleNotFoundError: No module named 'urllib3.packages.six.moves'

iyearn-zhou commented 2 months ago

I upgrade the urllib3 and this issue is resolved.