I am trying to run a scraper/spider class locally, or on a server, but what's the correct command to launch it?
For example, if the spider's name is newyorkhomes.rb and has the following: module Spider module Feeds class NewYorkHomes < Spider::Feeds::Base
When I switch into the the directory containing the file, I tried to run the following: load 'newyorkhomes.rb' and ruby 'newyorkhomes.rb' but neither worked
bundle exec newyorkhomes.rb doesn't work either
should I execute it locally or on a server? I can change my directory into the file containing these scraper tasks on a server but the server doesn't support that many commands there
Aucun commentaire:
Enregistrer un commentaire