juliomalegria / python-craigslist

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

Get fields used to filter by #62

Closed ghost closed 4 years ago

ghost commented 5 years ago

Is there a way to get the fields the query filtered by in the result? For example, when searching for cars we can filter with min_miles and max_miles, however the result doesn't return the actual miles. Can this be done with customize_result function instead? If so can you add example usage in the read me? I've looked at the source code and from what I understand you have to change the flag of custom_result_fields to true in CraigslistBase. I'd be nice to have this done once an instance has been created.

Wizumz commented 4 years ago

I second this, it would be very useful to be able to set the results during query!

juliomalegria commented 4 years ago

I agree. I'm working on this as we speak :)

juliomalegria commented 4 years ago

I've finished implementing this! This was added in b1ca9b9. Now there's a lot of extra fields included to the results!