libcraigscrape gem

Gem details

libcraigscrape and craigwatch are a tightly-coupled, ruby solution for (largely) unix-based systems.

libcraigscrape is the supporting ruby library designed to do the heavy lifting between craigslist and your ruby programs.

craigwatch is an automated crontab-friendly script to monitor craigslist for new postings which match specific criteria.

Websitehttp://www.derosetechnologies.com/community/libcraigscrape Author Chris DeRose Tags craigslist, scraper, scraping, hpricot, Monitoring

Documentation

Install the Gem:
gem install libcraigscrape

require 'libcraigscrape'
require 'date'
require 'pp'

posts = CraigScrape.scrape_posts_since 'http://miami.craigslist.org/search/sss?query=apple', Time.parse('Apr 25')

posts.each do |post|
pp post
end

Edit Gem | (0 older versions) | Last edited by: Guest, about 1 year ago