Closed jellis18 closed 8 years ago
Hi Justin,
That's a great idea. I had some free time this weekend, so I implemented this functionality. It's currently in branch list-filters
, I'll do a bit more testing and then merging it. Take a look at it if you get a chance.
Thanks for the feedback!
@juliomalegria, this looks good to me and it is even more flexible than what I suggested. However, I haven't really had a chance to test it out much yet.
I've merged the branch, and release a new version (v1.0.2) to PyPI! Thanks for the feedback :)
It would be useful to have a housing type filter. I have implemented this change simply by adding
to
extra_filters
dictionary in theCraigslistHousing
class. However, the types are designated by number and not a string like'condo'
or'house'
. I was thinking of making a function that would parse the filters dictionary so that the user could give the argumentand the parser would change it to
which is what Craigslist needs.
Let me know if this sounds ok and I can send a pull request.