Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

scrapyd: log url where web console can be accesed

Pablo Hoffmana3d30c35fe08
diff --git a/scrapyd/app.py b/scrapyd/app.py
index 0cf573df5..7ae69ddf3 100644
--- a/scrapyd/app.py
+++ b/scrapyd/app.py
@@ -1,6 +1,7 @@
from twisted.application.service import Application
from twisted.application.internet import TimerService, TCPServer
from twisted.web import server
+from twisted.python import log
from .interfaces import IEggStorage, IPoller, ISpiderScheduler, IEnvironment
from .launcher import Launcher
@@ -28,6 +29,7 @@ def application(config):
launcher = Launcher(config, app)
timer = TimerService(5, poller.poll)
webservice = TCPServer(http_port, server.Site(Root(config, app)))
+ log.msg("Scrapyd web console available at http://localhost:%s/" % http_port)
launcher.setServiceParent(app)
timer.setServiceParent(app)