CURL couldn't connect to host in scrapy python

425 views
Skip to first unread message

shiva krishna

unread,
Jun 8, 2012, 5:06:49 AM6/8/12
to scrapy...@googlegroups.com

I am working on scrapy, i am scheduling a spider i had wrote with the following command

curl http://localhost:6800/schedule.json -d project=example -d spider=exampledotcom
I am using this by seeing in scrapy tutorial, but when i run above command i used to get the below error
curl: (7) couldn't connect to host
Why curl is unable to connect to host, is anything wrong in the command ? and also can anyone explain me the concept of why we are using "http://localhost:6800/schedule.json", because finally my intension is to run multiple spiders in a single project

Sergey

unread,
Jun 28, 2012, 5:27:46 PM6/28/12
to scrapy...@googlegroups.com
telnet localhost 6800
What do you see?

shiva krishna

unread,
Jun 29, 2012, 1:37:36 AM6/29/12
to scrapy...@googlegroups.com
Hi thanks for u r reply.......

I am getting the following 

Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused


Thanks in advance......

On Fri, Jun 29, 2012 at 2:57 AM, Sergey <serg...@gmail.com> wrote:
telnet localhost 6800
What do you see?

--
You received this message because you are subscribed to the Google Groups "scrapy-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/scrapy-users/-/llZzqtzk-skJ.

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.

Sergey

unread,
Jul 1, 2012, 4:19:05 AM7/1/12
to scrapy...@googlegroups.com
As I see there no any process on this port. Did you see in your log:
2012-07-01 12:01:40+0400 [scrapy] DEBUG: Telnet console listening on 0.0.0.0:6023
2012-07-01 12:01:40+0400 [scrapy] DEBUG: Web service listening on 0.0.0.0:6080
?
Maybe you need 6080, not 6800?

пятница, 29 июня 2012 г., 12:37:36 UTC+7 пользователь shiva krishna написал:
Reply all
Reply to author
Forward
0 new messages