juliomalegria / python-craigslist

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

neighborhoods filter #59

Closed mbettan closed 5 years ago

mbettan commented 5 years ago

Hello guys,

Any ideas how we can filter using neighborhoods? It looks like not supported, correct?

Thanks

coperyan commented 5 years ago

You can't add a filter before you search. You can access the "where" attribute of the search result, this shows neighborhoods.

juliomalegria commented 5 years ago

Hey @mbettan, to filter by neighborhood you could either:

Those 2 would be pre-query filters. The other option, as @coperyan said, is to post-query filter the result based on the where attribute, that contains the name of the neighborhood.