Project

craiggy

0.0
No commit activity in last 3 years
No release in over 3 years
All you need is an item title and Craiggy will scrape Craigslist and return an array of Posts pertaining to the item.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.4
~> 3.0
~> 1.22

Runtime

~> 2.7
 Project Readme

craiggy

The closest you'll get to a Craigslist API in your lifetime.

Examples

# Craiggy.get returns an array of `Post` objects
jerseys = Craiggy.get("Authentic Raiders Jersey")
jerseys.select(&:has_image?) # Select posts that have an image

xboxes  = Craiggy.get("Xbox One", area: "losangeles", max_price: 200)
xboxes.select { |xbox| xbox.location =~ /Culver City/ } # Filter posts by location

# Namespaces
ruby_jobs = Craiggy::Jobs.get("Ruby on Rails", area: "sfbay")
ruby_jobs.reject { |job| job.description =~ /intern/ } # Be a badass rubyist