Craigslist Scraper
2 hours trial then $25.00/month - No credit card required now
Craigslist Scraper
2 hours trial then $25.00/month - No credit card required now
Extract data from classified advertisements on Craigslist. Scrape contact details from jobs, housing, items wanted, items for sale, services, community service, gigs, events and resumes listed on Craigslist. Download listings data in JSON, XML, Excel, and other versatile
"location" field is often pulling a price value, and sometimes has a city name but no state/province
you can usually get the city name and state or province name from the addressLocality and addressRegion fields in the following section on listing screens:
{ "@type": "Product", "@context": "http://schema.org", "offers": { "priceCurrency": "...", "@type": "Offer", "availableAtOrFrom": { "address": { "addressLocality": "...", "streetAddress": "", "@type": "...", "addressRegion": "...", "postalCode": "...", "addressCountry": "..." } } } }
Hi,
Thank you for raising this error ticket. I will take a look.
I've improved method for location extraction for all housing categories.
Could you check if this helps you?
Any way to do this for non-housing categories?
here's an example of what i'm talking about
Ok, I will investigate if there is some way to get better location.
We could get location from longitude and latitude, but reverse geocoding tools are not free, they are paid by request. So I don't see them as an real option for this public scraper.
I put on the original ticket the fields you can use to get location. Let me know if you have questions on those!
Ok, I managed to do implementation of this. I just need to do some more testing. Tomorrow I will publish the version with this fix.
New version is available. In result you will have address filed with information with location. Not all posts have this information.
Okay, we're still not seeing it in the "Location" field in most results. Should we be looking in a different field?
The addressLocality and addressRegions are the fields we care most about
I've done some mapping:
postalCode -> postalCode streetAddress -> street addressLocality -> city addressRegion -> region addressCountry -> country
So you need to use region and city field in address object.
Not all ads have this information in it. Where there is, it will be extracted. Also not all categories have this data. This is currently only available on forSale, housing and jobs categories
- 16 monthly users
- 4 stars
- 100.0% runs succeeded
- 2.8 days response time
- Created in Sep 2022
- Modified 1 day ago