A service that checks apartment community websites for their up to date listings, availability and prices. Utilizes the Mechanize and Nokogiri libaries for webscraping
asdf install ruby 3.1.2
gem install bundler
bundle install
bundle exec rails db:create db:migrate
gem install foreman
bin/dev
The server should now be running on http://localhost:3005
If you're forking/running this project, you should update the target_date
inside the scrape:start
task so that it runs properly and additionally add any scrapers that you want there.
rake scrape:start
Currently runs automattically in Production
Use whenever
to run a task that calls the scrapers. The schedule is in config/schedule.rb
. Then you'll need to update your crontab:
bundle exec whenever --update-crontab
standard-changelog