crawley icon indicating copy to clipboard operation
crawley copied to clipboard

shell does'nt work

Open MrTango opened this issue 13 years ago • 1 comments

I tryed to use the shell command to test my xpaths, but it does'nt work.

$ crawley shell http://somewebsite.com/index.html Traceback (most recent call last): File "/home/maik/.virtualenvs/crawley/bin/crawley", line 4, in manage() File "/home/maik/.virtualenvs/crawley/local/lib/python2.7/site-packages/crawley/manager/init.py", line 25, in manage run_cmd(sys.argv) File "/home/maik/.virtualenvs/crawley/local/lib/python2.7/site-packages/crawley/manager/init.py", line 18, in run_cmd cmd.checked_execute() File "/home/maik/.virtualenvs/crawley/local/lib/python2.7/site-packages/crawley/manager/commands/command.py", line 50, in checked_execute self.execute() File "/home/maik/.virtualenvs/crawley/local/lib/python2.7/site-packages/crawley/manager/commands/shell.py", line 30, in execute response = crawler._get_data(url) AttributeError: 'BaseCrawler' object has no attribute '_get_data'

MrTango avatar Jul 04 '12 13:07 MrTango

Hey Maik,

Thanks for the bug report, The shell command was broken on 0.2.4 and also on master. Now it is fixed. Just pull the new version from [email protected]: jmg/crawley.git And then run python setup.py install inside the root directory.

Regards!

2012/7/4 Maik Derstappen < [email protected]

I tryed to use the shell command to test my xpaths, but it does'nt work.

$ crawley shell http://somewebsite.com/index.html Traceback (most recent call last): File "/home/maik/.virtualenvs/crawley/bin/crawley", line 4, in manage() File "/home/maik/.virtualenvs/crawley/local/lib/python2.7/site-packages/crawley/manager/init.py", line 25, in manage run_cmd(sys.argv) File "/home/maik/.virtualenvs/crawley/local/lib/python2.7/site-packages/crawley/manager/init.py", line 18, in run_cmd cmd.checked_execute() File "/home/maik/.virtualenvs/crawley/local/lib/python2.7/site-packages/crawley/manager/commands/command.py", line 50, in checked_execute self.execute() File "/home/maik/.virtualenvs/crawley/local/lib/python2.7/site-packages/crawley/manager/commands/shell.py", line 30, in execute response = crawler._get_data(url) AttributeError: 'BaseCrawler' object has no attribute '_get_data'


Reply to this email directly or view it on GitHub: https://github.com/jmg/crawley/issues/11

Juan Manuel García Software Developer Crawley Cloud http://crawley-cloud.com

jmg avatar Jul 04 '12 16:07 jmg