Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shell does'nt work #11

Open
MrTango opened this issue Jul 4, 2012 · 1 comment
Open

shell does'nt work #11

MrTango opened this issue Jul 4, 2012 · 1 comment

Comments

@MrTango
Copy link

MrTango commented Jul 4, 2012

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'

@jmg
Copy link
Owner

jmg commented Jul 4, 2012

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:
#11

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants