Commandline interface for morph
Matthew Landauer 82066ac2e2 thor no_commands was different before version 0.18. Fixes #6 | 10 gadi atpakaļ | |
---|---|---|
bin | 10 gadi atpakaļ | |
lib | 10 gadi atpakaļ | |
.gitignore | 10 gadi atpakaļ | |
Gemfile | 10 gadi atpakaļ | |
LICENSE.txt | 10 gadi atpakaļ | |
README.md | 10 gadi atpakaļ | |
Rakefile | 10 gadi atpakaļ | |
morph-cli.gemspec | 10 gadi atpakaļ | |
scraper.rb | 10 gadi atpakaļ |
Runs Morph scrapers from the commandline.
Actually it will run them on the Morph server identically to the real thing. That means not installing a bucket load of libraries and bits and bobs that are already installed with the Morph scraper environments.
To run a scraper in your local directory
morph
Yup, that's it.
It runs the code that's there right now. It doesn't need to be checked into git or anything.
For help
morph help
You'll need Ruby >= 1.9 and then
gem install morph-cli
It uploads your code everytime. So if it's big it might take a little while. Scrapers are not usually so I'm hoping this won't really be an issue
It doesn't yet return you the resulting sqlite database (or use the one you might have locally)
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)