Skip to content

Instantly share code, notes, and snippets.

@bcamarda
Created July 12, 2012 19:34
Show Gist options
  • Save bcamarda/3100376 to your computer and use it in GitHub Desktop.
Save bcamarda/3100376 to your computer and use it in GitHub Desktop.
sinatra integration for craigslist crawler
require 'sinatra'
get '/' do
erb :index
end
get '/history' do
erb :history
end
post '/' do
p params
search_url = params[:search_parameters_url]
user_name = params[:user_name]
user_email = params[:user_email]
# begin_monitoring(search_url, user_name, user_email)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment