Simple Command Line Interface (CLI)#68
Simple Command Line Interface (CLI)#68buren wants to merge 6 commits intopostmodern:masterfrom buren:cli
Conversation
|
I've created a
|
|
Sorry for not noticing this. If I were to add a CLI it would need to be a class called Not to plug my own code too much, but you might want to consider using command_kit for your spidr-cli gem? |
|
If you want to get this merged, checkout the |
Side note: First of all thank you for an awesome gem. Over the past years and I've reached for this gem numerous times for various purposes big and small, its always a joy to use - thank you! 🙌
Simple Command Line Interface (CLI)
Rationale
I've found myself wanting to do a "quick and dirty" crawl of different websites quite often. For example to find 4X, 5XX etc. So far I've written small Ruby scripts using
spidrwith the things I need.Many of these use cases could be solved with a fairly simple CLI.
Examples
it supports all
Spdir::Agentargumentsyou can output multiple values (CSV-style), the columns argument map to methods on
pageUsage
todo
--[no-]robotsoption requiresgem install robots?If you don't want to include this here then this could be a separate gem, something like
spidr_cli(with your blessingunless you object?). However it would probably be easier for others to find it if its here.Thanks!