juliomalegria / python-craigslist

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

An idea: Add filter for owner or dealer listing for certain for sale categories #103

Closed Quresh95 closed 3 years ago

Quresh95 commented 3 years ago

In CraigslistForSale, there are several categories (e.g. 'CTA') that have the option to filter listings by dealer or owner on the website.

Adding that as a filter in this would be very useful.

irahorecka commented 3 years ago

Hey @Quresh95, rather than setting category='cta' when constructing CraigslistForSale, try category='cto' for listings by owner and category='ctd' for listings by dealer.

For future reference, take a look at the listings' page source - they'll have the correct initialisms for the owner/dealer categories.

Screen Shot 2020-12-20 at 9 02 04 PM
Quresh95 commented 3 years ago

Thank you @irahorecka for the insight! I will use that as a reference going forward. Apologies, I am a hobby coder and am overcoming a bit of an initial learning curve

Quresh95 commented 3 years ago

Thank you @irahorecka for the insight! I will use that as a reference going forward. Apologies, I am a hobby coder and am overcoming a bit of an initial learning curve

irahorecka commented 3 years ago

No problem, @Quresh95 - happy to help.

irahorecka commented 3 years ago

Hey, @Quresh95 - if you are practicing web scraping / data science with this library, I wrote another library to work closely with python-craigslist to allow high-throughput queries (https://github.com/irahorecka/python-craigslist-meta)