Closed Quresh95 closed 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.
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
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
No problem, @Quresh95 - happy to help.
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)
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.