Unknown command: crawl

2,391 views
Skip to first unread message

RockoCat

unread,
Oct 20, 2011, 5:43:11 PM10/20/11
to scrapy-users
Hello.
I am newbie. Here http://readthedocs.org/docs/scrapy/en/0.12/intro/tutorial.html
When I try crawling "scrapy crawl dmoz.org"
I got msg "Unknown command: crawl"
Ok. If I type a "scrapy"
I got:
Available commands:
fetch Fetch a URL using the Scrapy downloader
runspider Run a self-contained spider (without creating a
project)
settings Get settings values
shell Interactive scraping console
startproject Create new project
version Print Scrapy version
view Open URL in browser, as seen by Scrapy

Documentation is outdated?

Rolando Espinoza La Fuente

unread,
Oct 20, 2011, 8:49:45 PM10/20/11
to scrapy...@googlegroups.com
Did you created the example project? are you inside the example project?
> --
> You received this message because you are subscribed to the Google Groups "scrapy-users" group.
> To post to this group, send email to scrapy...@googlegroups.com.
> To unsubscribe from this group, send email to scrapy-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/scrapy-users?hl=en.
>
>

--
Sent from Gmail Mobile

ve...@zhitongba.com

unread,
Oct 21, 2011, 12:29:05 AM10/21/11
to scrapy...@googlegroups.com
You should run scrap crawl <spider_name> in the outside but not within the scrapy shell.

#scrapy crawl <spider name>
Instead of
#scrapy shell
>scrapy crawl <spider name>

//Verky

发自我的 iPhone

RockoCat

unread,
Oct 21, 2011, 12:35:42 AM10/21/11
to scrapy-users
1) Yes. I created the the example project.
2) I used command in a terminal "cd /Users/RockoCat/Documents/py-docs/
dmoz"
It's inside the project?

On Oct 20, 8:49 pm, Rolando Espinoza La Fuente <dark...@gmail.com>
wrote:
> Did you created the example project? are you inside the example project?
>

RockoCat

unread,
Oct 21, 2011, 12:39:46 AM10/21/11
to scrapy-users
Thank you. It's works!

On Oct 21, 12:29 am, ve...@zhitongba.com wrote:
> You should run scrap crawl <spider_name> in the outside but not within the scrapy shell.
>
> #scrapy crawl <spider name>
> Instead of
> #scrapy shell
>
> >scrapy crawl <spider name>
>
> //Verky
>
> 发自我的 iPhone
>
> 在 2011-10-21,上午8:50,"Rolando Espinoza La Fuente" <dark...@gmail.com> 写道:
>
>
>
>
>
>
>
> > Did you created the example project? are you inside the example project?
>
> > On Thursday, October 20, 2011, RockoCat <rokog...@gmail.com> wrote:
> > > Hello.
> > > I am newbie. Herehttp://readthedocs.org/docs/scrapy/en/0.12/intro/tutorial.html
> > > When I try crawling "scrapy crawl dmoz.org"
> > > I got msg "Unknown command: crawl"
> > > Ok. If I type a "scrapy"
> > > I got:
> > > Available commands:
> > >  fetch         Fetch a URL using the Scrapy downloader
> > >  runspider     Run a self-contained spider (without creating a
> > > project)
> > >  settings      Get settings values
> > >  shell         Interactive scraping console
> > >  startproject  Create new project
> > >  version       Print Scrapy version
> > >  view          Open URL in browser, as seen by Scrapy
>
> > > Documentation is outdated?
>
> > > --
> > > You received this message because you are subscribed to the Google Groups "scrapy-users" group.
> > > To post to this group, send email to scrapy...@googlegroups.com.
> > > To unsubscribe from this group, send email to scrapy-users...@googlegroups.com.
> > > For more options, visit this group athttp://groups.google.com/group/scrapy-users?hl=en.
Reply all
Reply to author
Forward
0 new messages