juliomalegria / python-craigslist

Simple Craigslist wrapper
MIT No Attribution
387 stars 165 forks source link

'housing_type' and 'laundry' filters #107

Closed jackdbastian closed 3 years ago

jackdbastian commented 3 years ago

Are the 'housing_type' and 'laundry' filters still supported? They both return "not a valid filter".

irahorecka commented 3 years ago

Hey @jackdbastian, could you provide the code snippet that raised this issue? I couldn't replicate it.

from craigslist import CraigslistHousing

apts_sfbay = CraigslistHousing(
    site="sfbay",
    category="apa",
    filters={"housing_type": "apartment", "laundry": "w/d hookups"},
)
print(next(apts_sfbay.get_results()))
jackdbastian commented 3 years ago

Hi @irahorecka, I'm not sure what I was doing wrong before but your snippet worked. Thank you for the help and for maintaining this awesome package!

irahorecka commented 3 years ago

@jackdbastian no problem, happy to help

irahorecka commented 3 years ago

Hey @jackdbastian, I created a new python craigslist api library that might be of interest (https://github.com/irahorecka/pycraigslist).