Sha256: fd10fcdce6ab74df19d08dfe1b0c581f9ecbea1f4ddd7b59b199999105a2aa08

Contents?: true

Size: 896 Bytes

Versions: 2

Compression:

Stored size: 896 Bytes

Contents

require 'nokogiri'
require 'curl'
require 'erb'
require 'ostruct'
require 'ext/string'
require 'ext/element'
require 'crags/fetcher'
require 'crags/country'
require 'crags/location'
require 'crags/category'
require 'crags/item'
require 'crags/search/search'
require 'crags/search/location'
require 'crags/search/country'

module Crags
  Config = OpenStruct.new({
    :defaults => {
      :keyword => 'bicycle',
      :category => Category.new('for sale', 'sss'),
      :country => Country.new('us'),
      :location => Location.new('sfbay.craigslist.org'),
      :interval => 1
    },
    :category_url => "http://sfbay.craigslist.org/",
    :country_url => "http://geo.craigslist.org/iso",
    :country_codes => ['jp', 'ar', 'bd', 'br', 'ca', 'cl', 'co', 'cr', 'cz', 'de', 'eg', 'gb', 'hu', 'id', 'ie', 'il', 'lb', 'my', 'nl', 'nz', 'no', 'pk', 'pa', 'ru', 'th', 'ae', 'us', 've', 'vn']
  })
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
crags-2.2.1 lib/crags.rb
crags-2.2.0 lib/crags.rb