I was playing around with scrapely cmdline tool, and I found out that it does not forgive an user error very much. =)
Here is my attempt to improve things a little bit.
Summary of the changes:
Changed all commands to a descriptive form, keeping previous command names as aliases. As the cmd module has some basic autocomplete, long descriptive names work better specially for the first-time user.
Alert the user when he forgets to provide a _templateid instead of exiting the session
Attempts to fix incomplete URLs like www.example.com instead of http://www.example.com
Removed test command method, keeping backwards compatibility using an alias for the annotate command (which does the same thing when no field name is given).
This is a bit rough, but it should help to improve things a little.
Please let me know if you have any suggestion for improvements.
I was playing around with scrapely cmdline tool, and I found out that it does not forgive an user error very much. =) Here is my attempt to improve things a little bit.
Summary of the changes:
cmd
module has some basic autocomplete, long descriptive names work better specially for the first-time user.www.example.com
instead ofhttp://www.example.com
This is a bit rough, but it should help to improve things a little. Please let me know if you have any suggestion for improvements.