juliomalegria / python-craigslist

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

Don't log warnings for listings that have been removed #114

Open incontestableness opened 2 years ago

incontestableness commented 2 years ago

Sometimes, listings that violate Craigslist's TOS will be removed, but remain searchable. This change stops logging warnings for these non-existent listings. Here's an example from the cars & trucks section which consistently displays in searches but whose listing page returns an HTTP 404. image

incontestableness commented 2 years ago

It may be worth noting that the "deleted" attribute is still set to false in these cases.